Pmon_query MGRLIST:STATI return empty

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
5 posts • Page 1 of 1
AliBou
Posts:25
Joined: Wed Mar 28, 2018 3:57 pm

Pmon_query MGRLIST:STATI return empty

Post by AliBou »

I'm trying to get status for all managers in local host using this:
error=pmon_query(command,shostname,iport,result,ShowError,OpenTcp);
and it return an empty dyn_dyn_string ?

any help?

Gertjan van Schijndel
Posts:634
Joined: Mon Aug 02, 2010 10:37 am

Re: Pmon_query MGRLIST:STATI return empty

Post by Gertjan van Schijndel »

What was the return value of the function (in your example stored in 'error')?
Was there an error written in the log file?

AliBou
Posts:25
Joined: Wed Mar 28, 2018 3:57 pm

Re: Pmon_query MGRLIST:STATI return empty

Post by AliBou »

It returns True (for my error result)
and the log:

Module: _QuickTest_
Panel: C:\\Siemens\\Automation\\Wincc_OA_Projects\\Projects\\TestProject\\panels\\objects\\WinccOAServer.pnl [objects\\WinccOAServer.pnl]
Script: Initialize
Library: C:\\Siemens\\Automation\\Wincc_OA_Projects\\Projects\\TestProject\\scripts\\libs\\pn.ctl
Line: 465, tcpOpen, connect(:63000): No error (0)
WCCOAui1:["--------Error= TRUE----------------"]
WCCOAui1:[dyn_dyn_string 0 items
WCCOAui1:]
WCCOAui1:["*****************Pmon Stopped*******************"]

thank you in advance

Gertjan van Schijndel
Posts:634
Joined: Mon Aug 02, 2010 10:37 am

Re: Pmon_query MGRLIST:STATI return empty

Post by Gertjan van Schijndel »

It looks like you are using an empty string as the host parameter. Try it with 'localhost' or the actual hostname instead.

AliBou
Posts:25
Joined: Wed Mar 28, 2018 3:57 pm

Re: Pmon_query MGRLIST:STATI return empty

Post by AliBou »

Thanks

5 posts • Page 1 of 1