pmonGetStartTime()

The function pmonGetStartTime() returns the start time of a WinCC OA manager.

Synopsis

time pmonGetStartTime(int idx);

Parameters

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

Return value

The function pmonGetStartTime() returns the start time of a WinCC OA manager or in the event of errors, -1.

Description

The function pmonGetStartTime() returns the start time of a WinCC OA manager. A manager is started in the WinCC OA console.

Figure: WinCC OA console and manager start times

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 start times of WinCC_OA managers are returned and output.

  1. main(mapping event)
    
    
    {
    
    
      string pName;
    
    
      int i;
    
    
      time pTime;
    
    
      for (int i = 0; i < pmonGetCount(); i++)
    
    
      {
    
    
       pTime = pmonGetStartTime(i);
    
    
       pName = pmonGetName(i);
    
    
       DebugN("Manager name: ", pName, "Manager start time:", pTime);
    
    
      }
    
    
     }

The function outputs the names as well as the start times of the managers as follows:

WCCOAui2:["Manager name: "]["WCCILpmon"]["Manager start time:"][2017.08.16
                14:59:50.824000000]

WCCOAui2:["Manager name: "]["WCCILdata"]["Manager start time:"][2017.08.16 15:00:07.570000000]

WCCOAui2:["Manager name: "]["WCCOAvalarch"]["Manager start time:"][2017.08.16 15:00:09.567000000]

WCCOAui2:["Manager name: "]["WCCOAvalarch"]["Manager start time:"][2017.08.16 15:00:09.801000000]

WCCOAui2:["Manager name: "]["WCCOAvalarch"]["Manager start time:"][2017.08.16 15:00:10.051000000]

WCCOAui2:["Manager name: "]["WCCOAvalarch"]["Manager start time:"][2017.08.16 15:00:10.191000000]

WCCOAui2:["Manager name: "]["WCCOAvalarch"]["Manager start time:"][2017.08.16 15:00:10.409000000]

WCCOAui2:["Manager name: "]["WCCOAvalarch"]["Manager start time:"][2017.08.16 15:00:10.659000000]

WCCOAui2:["Manager name: "]["WCCILevent"]["Manager start time:"][2017.08.16 15:00:13.967000000]

WCCOAui2:["Manager name: "]["WCCILproxy"]["Manager start time:"][2017.08.16 15:00:15.231000000]

WCCOAui2:["Manager name: "]["WCCOActrl"]["Manager start time:"][2017.08.16 15:00:15.605000000]

WCCOAui2:["Manager name: "]["WCCILsim"]["Manager start time:"][2017.08.16 15:00:15.808000000]

Assignment

PMON functions.

Availability

UI