hello
¿where I can find documentation of the function "pmonGetState" ?
Pmon Function
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Pmon Function
Hello,
this an internal function and not all of these functions are documented.
Why do you need a documentation for it?
Where do you want to use this function?
Best Regards
Leopold Knipp
Senior Support Specialist
this an internal function and not all of these functions are documented.
Why do you need a documentation for it?
Where do you want to use this function?
Best Regards
Leopold Knipp
Senior Support Specialist
- jeissonsierrac
- Posts:62
- Joined: Wed Jun 03, 2015 9:37 pm
Re: Pmon Function
I need a function or any way to know the status of a Ctrl Manager
- mpoint
- Posts:49
- Joined: Thu Oct 28, 2010 11:28 am
Re: Pmon Function
Have a look at the WinCC OA Online Help, under "Project administration > Process monitor > Details on the Pmon". You will find a description of a telnet-like protocol with which you can query the Pmon. This is the same protocol that the Project Console uses, so if the status you want to monitor is visible there, you can also get it through that protocol.
Depending on where you need this information, you can even use the Pmon itself to send the command, with "WCCILpmon -command". This is also described in the Online Help.
Depending on where you need this information, you can even use the Pmon itself to send the command, with "WCCILpmon -command". This is also described in the Online Help.
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Pmon Function
Hello,
if you want to read the status of the managers from the process monitor you can use the (undocumented) function pmon_query. This function is defined in the CTRL-library pmon.ctl.
An example how this function can be used can be found in the following lab example:
https://portal.etm.at/index.php?option= ... &Itemid=79
Best Regards
Leopold Knipp
Senior Support Specialist
if you want to read the status of the managers from the process monitor you can use the (undocumented) function pmon_query. This function is defined in the CTRL-library pmon.ctl.
An example how this function can be used can be found in the following lab example:
https://portal.etm.at/index.php?option= ... &Itemid=79
Best Regards
Leopold Knipp
Senior Support Specialist
- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: Pmon Function
The pmon* CTRL functions were introduced for internal testing purpose, therefore they were never documented.
The issue with them is just that they only work on the local computer where pmon is running, since pmon creates a shared memory and semaphore for the managers it handles.
It means you can never use the pmon* functions from a User Interface manager running somewhere on a remote computer.
The generic way to query pmon is by using the TCP protocol, since you can access it from anywhere, but this of course is a bit more complicated.
If you know what you're doing, I see no problem in simply using the pmon* functions. They should be self-explaining. They just give you information about a specific line in the shared memory table. You pass the line (idx) as argument. The number of lines you can get with pmonGetCount()
The issue with them is just that they only work on the local computer where pmon is running, since pmon creates a shared memory and semaphore for the managers it handles.
It means you can never use the pmon* functions from a User Interface manager running somewhere on a remote computer.
The generic way to query pmon is by using the TCP protocol, since you can access it from anywhere, but this of course is a bit more complicated.
If you know what you're doing, I see no problem in simply using the pmon* functions. They should be self-explaining. They just give you information about a specific line in the shared memory table. You pass the line (idx) as argument. The number of lines you can get with pmonGetCount()
- fmulder
- Posts:330
- Joined: Wed Feb 03, 2010 9:46 am
Re: Pmon Function
it might be much easier to introduce a watchdog. Simply introduce a datapoint that you write from the ctrl manager.
In general, communicating to the pmon should be done only locally. Your IT manager wont like it when you open up the port of the pmon.
In general, communicating to the pmon should be done only locally. Your IT manager wont like it when you open up the port of the pmon.