Skip to Main Content
How to Cheat at Managing Microsoft Operations Manager 2005
book

How to Cheat at Managing Microsoft Operations Manager 2005

by Anthony Piltzecker
March 2006
Intermediate to advanced content levelIntermediate to advanced
400 pages
17h 36m
English
Syngress
Content preview from How to Cheat at Managing Microsoft Operations Manager 2005
var l_objArgs = WScript.Arguments;
g_objTelnetAutomation.AutoStart(l_objArgs(0), WScript.FullName, true, true);
g_objWMIInstance = GetObject("winmgmts://./root/cimv2:" +
eXc_nonWindows_OperatingSystem.Name='" + l_objArguments(0) + "'");
Once you have successfully connected and logged in to the host (via AutoStart),
you will be able to start passing commands and capturing the results.The following
is an example of using the TelnetAutomation object to invoke a command and grab
the results.
var l_ulongCommandLine1 = g_objTelnetAutomation.key("df -h");
var l_stringData1 = g_objTelnetAutomation.getData(l_ulongCommandLine1);
With the command’s output in a standard ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Managing OS/400 with Operations Navigator V5R1 Volume 6: Networking

Managing OS/400 with Operations Navigator V5R1 Volume 6: Networking

Jim Cook, Alejandro D'Amato, Steve Dillen
Implementing Citrix XenDesktop on IBM Flex System

Implementing Citrix XenDesktop on IBM Flex System

Ilya Krutov, Andreas Groth, Gica Livada, Diego Pereira, Jean-Baptiste Valette, Brad Wasson

Publisher Resources

ISBN: 9781597492515