16.01.2013 Views

Ipswitch WhatsUp Gold User Guide - Ipswitch Documentation Server

Ipswitch WhatsUp Gold User Guide - Ipswitch Documentation Server

Ipswitch WhatsUp Gold User Guide - Ipswitch Documentation Server

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Ipswitch</strong> <strong>WhatsUp</strong> <strong>Gold</strong> <strong>User</strong> <strong>Guide</strong><br />

To configure a WMI active script performance monitor:<br />

1 On the Add Active Script Performance Monitor dialog, type a Name and Description for<br />

the monitor as you want it to appear in the Performance Monitor Library.<br />

2 Type a number for the timeout (in seconds), and for the device-specific Active Script<br />

Performance Monitor, type a number (in minutes) for the Collection interval.<br />

3 Choose the type of script (JScript or VBScript) you are using to write the monitor from<br />

the Script type drop down menu.<br />

4 Add a new variable to the Reference Variables list by clicking Add.<br />

Important: You can add up to 10 reference variables.<br />

Reference variables simplify your scripting code and enable you to write scripts<br />

efficiently, without having to grab a list of device properties, as with the Script Action and<br />

Script Active Monitor. They manage the underlying SNMP or WMI mechanisms that you<br />

would normally manage to access SNMP or WMI counters on a remote device.<br />

By using the Context.GetReferenceVariable (variable name), you only need to<br />

specify the name of a pre-defined variable. <strong>WhatsUp</strong> <strong>Gold</strong> uses device credentials and<br />

connects to the target device using SNMP or WMI to retrieve the requested information.<br />

This information is stored in a variable you can use later in your script.<br />

Important: The use of reference variables in the Active Script Performance Monitor is<br />

optional. If you do use them, you must use Context.GetReferenceVariable,for<br />

reference variables to be polled and their data graphed.<br />

5 On the Add reference variables dialog, type a name and description for the variable.<br />

6 Select the type of object (WMI) from the Object type drop-down menu.<br />

7 Click the browse (...) button next to the Instance box. The Performance Counters dialog<br />

appears.<br />

8 Type the computer name or IP address of the computer to which you want to connect.<br />

9 Select a credential from a list of Windows credentials (pulled from the Credentials<br />

Library), then click OK to connect to the computer.<br />

10 Use the Performance counter tree to navigate to the performance counter you want to<br />

monitor.<br />

11 Once you select the performance counter, select the specific instance you want to<br />

monitor.<br />

12 Click OK to add the variable to the Reference variable list on the Add active script<br />

performance monitor dialog.<br />

13 Write or paste your monitor code in the Script text box.<br />

14 Click OK to save changes and to add the monitor to the Performance Monitor Library.<br />

Warning: The first time that you poll a WMI reference variable that requires two polls in order<br />

to calculate an average (such as "Processor\% Processor Time"), it returns "Null."<br />

253

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!