RunNumber Method of the MIIS_ManagementAgent Class

The RunNumber method is a counter that returns the sequence number for the current run, which indicates the number of times all the run profiles in the management agent were run. The first run is numbered 1, the second run is numbered 2, and so on. If the MA has never been run or if previous runs have been cleared, then the value is an empty string. To use this method, you must be logged on as a member of the MIISBrowse, MIISOperators, or MIISAdmins security group.

Syntax

string RunNumber();

Parameters

This method has no parameters.

Return Value

Returns a string that contains either the number of times all the run profiles in the management agent were run or one of the values listed in Return Strings. If this method is called after a new management agent is created or the previous management agent runs were cleared, the return value will be an empty string.

Examples

The example given in the Methods topic shows you how to use Visual Basic Scripting Edition (VBScript) to get the number of times the management agent was run.

Requirements

Product ILM 2007 FP1
MOF Mmswmi.mof

See Also

MIIS_ManagementAgent
Return Strings

Send comments about this topic to Microsoft

Build date: 2/16/2009