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?
Pmon_query MGRLIST:STATI return empty
- Gertjan van Schijndel
- Posts:634
- Joined: Mon Aug 02, 2010 10:37 am
Re: Pmon_query MGRLIST:STATI return empty
What was the return value of the function (in your example stored in 'error')?
Was there an error written in the log file?
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
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
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
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
Thanks