pmonGetOptions()

The function pmonGetOptions() returns the manager options of a WinCC OA manager.

Synopsis

string pmonGetOptions(int idx);

Parameters

Parameter Description
idx The WinCC OA manager index. See chapter Details on the Pmon

Return value

The function pmonGetOptions() returns the manager options of a WinCC OA manager or in the event of errors, -1.

Description

The function pmonGetOptions() returns the manager options of a WinCC OA manager. The options are assigned to a manager in the WinCC OA console.

Figure: The WinCC OA Console and the manager options

NOTE that the function can only be used on a local computer. A remote UI cannot query the PMON of a server.

EXAMPLE

In the following example, the names as well as the manager options of WinCC_OA managers are returned and output.

  1. main(mapping event)
    
    
    {
    
    
      string pOpt, pName;
    
    
      int i;
    
    
      for (int i = 0; i < pmonGetCount(); i++)
    
    
      {
    
    
       pOpt = pmonGetOptions(i);
    
    
       pName = pmonGetName(i);
    
    
       DebugN("Manager name: ", pName, "Manager options:", pOpt);
    
    
      }
    
    
     }

The function outputs the names as well as the options of the managers as follows:

WCCOAui2:["Manager name: "]["WCCILpmon"]["Manager options:"][""]

WCCOAui2:["Manager name: "]["WCCILdata"]["Manager options:"][""]

WCCOAui2:["Manager name: "]["WCCOAvalarch"]["Manager options:"]["-num 0"]

WCCOAui2:["Manager name: "]["WCCOAvalarch"]["Manager options:"]["-num 1"]

WCCOAui2:["Manager name: "]["WCCOAvalarch"]["Manager options:"]["-num 2"]

WCCOAui2:["Manager name: "]["WCCOAvalarch"]["Manager options:"]["-num 3"]

WCCOAui2:["Manager name: "]["WCCOAvalarch"]["Manager options:"]["-num 4"]

WCCOAui2:["Manager name: "]["WCCOAvalarch"]["Manager options:"]["-num 5"]

WCCOAui2:["Manager name: "]["WCCILevent"]["Manager options:"][""]

WCCOAui2:["Manager name: "]["WCCILproxy"]["Manager options:"][""]

WCCOAui2:["Manager name: "]["WCCOActrl"]["Manager options:"]["-f pvss_scripts.lst"]

WCCOAui2:["Manager name: "]["WCCILsim"]["Manager options:"][""]

WCCOAui2:["Manager name: "]["WCCOAui"]["Manager options:"]["-m gedi -lang \"en_US.utf8\""]

Assignment

PMON functions.

Availability

UI