The pmon_query function works locally and with the desktop ui.
But with the mobile ui (Android) i get the following error in the tcpOpen function which is called inside the pmon_query.
Re: tcpOpen on mobile device to pmon connection refused
Postby leoknipp »
When the Mobile UI is used on a mobile device only a UI instance is running.
There is no other WinCC OA process running on this device. Therefore, it is not possible to use the pmon_query() command as there is no PMon running which will return information.
Even if a Desktop-UI is used normally there is no PMon used. A PMon is only running if it started explicitely.
Best Regards
Leopold Knipp
Senior Support Specialist
Re: tcpOpen on mobile device to pmon connection refused
Postby gschijndel »
The best way to check the state of a manager is by using (internal) datapoints as not all manager do not have to run on a single server.
For example to check if a manager is connected the '_Connections' datapoint can be used. More specific information of that manager can usually be found in the datapoint of the manager itself.
In case the required information is not already provided by default, then a control script can be run on the server(s) to provide this. As you already noticed there are more tools available for this and they can be used to write the needed information to a datapoint element.
BTW: the pmon_query might also work from Android, but the fully qualified domain name (FQDN) of the host running the pmon needs to be specified.