06-24-2019 07:40 AM
We have SolarWinds monitoring solution in our environment. I was trying to configure SIP trunk session monitoring on SolarWinds VNQM, however I did not see any SIP trunks populated in SolarWinds. I opened a ticket with SolarWinds and they did postman query using AXL user to see whether CUCM sending the Trunk details to VNQM, however they could not get proper info from CUCM. API always return 500 Internal Server error. if any one have experience on Postman please check the result output and let me know where is the issue.
Attached POST URL and Code.
CUCM version 11.5
06-24-2019 11:53 AM - edited 06-24-2019 12:02 PM
Hi,
I have very little knowledge of Postman and API but I am able to pull the status of SIP Trunks using Postman and API queries. I have tried this on CUCM version 12.0. I have followed RisPort70 API Reference guide to get this working. Below is the code that I used. You can see the information of terms in API reference guide.
POST Query URL: https://<CUCM IP Address>:8443/realtimeservice2/services/RISService70?wsdl
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://schemas.cisco.com/ast/soap"> <soapenv:Header/> <soapenv:Body> <soap:selectCmDevice> <soap:StateInfo></soap:StateInfo> <soap:CmSelectionCriteria> <soap:MaxReturnedDevices>1000</soap:MaxReturnedDevices> <soap:DeviceClass>SIPTrunk</soap:DeviceClass> <soap:Model>255</soap:Model> <soap:Status>Any</soap:Status> <soap:NodeName></soap:NodeName> <soap:SelectBy>Name</soap:SelectBy> <soap:SelectItems> <soap:item> <soap:Item>*</soap:Item> </soap:item> </soap:SelectItems> <soap:Protocol>Any</soap:Protocol> <soap:DownloadStatus>Any</soap:DownloadStatus> </soap:CmSelectionCriteria> </soap:selectCmDevice> </soapenv:Body> </soapenv:Envelope>
POST Query Result:
<?xml version='1.0' encoding='UTF-8'?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <ns1:selectCmDeviceResponse xmlns:ns1="http://schemas.cisco.com/ast/soap"> <ns1:selectCmDeviceReturn> <ns1:SelectCmDeviceResult> <ns1:TotalDevicesFound>2</ns1:TotalDevicesFound> <ns1:CmNodes> <ns1:item> <ns1:ReturnCode>Ok</ns1:ReturnCode> <ns1:Name>CUCM-PUB.lab.com</ns1:Name> <ns1:NoChange>false</ns1:NoChange> <ns1:CmDevices> <ns1:item> <ns1:Name>CWMS-PRI-Application</ns1:Name> <ns1:DirNumber xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" /> <ns1:DeviceClass>SIPTrunk</ns1:DeviceClass> <ns1:Model>131</ns1:Model> <ns1:Product>0</ns1:Product> <ns1:BoxProduct>0</ns1:BoxProduct> <ns1:Httpd>Unknown</ns1:Httpd> <ns1:RegistrationAttempts>0</ns1:RegistrationAttempts> <ns1:IsCtiControllable>false</ns1:IsCtiControllable> <ns1:LoginUserId xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" /> <ns1:Status>Rejected</ns1:Status> <ns1:StatusReason>0</ns1:StatusReason> <ns1:PerfMonObject>0</ns1:PerfMonObject> <ns1:DChannel>0</ns1:DChannel> <ns1:Description xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" /> <ns1:H323Trunk> <ns1:ConfigName xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" /> <ns1:TechPrefix xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" /> <ns1:Zone xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" /> <ns1:RemoteCmServer1 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" /> <ns1:RemoteCmServer2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" /> <ns1:RemoteCmServer3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" /> <ns1:AltGkList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" /> <ns1:ActiveGk xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" /> <ns1:CallSignalAddr xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" /> <ns1:RasAddr xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" /> </ns1:H323Trunk> <ns1:TimeStamp>0</ns1:TimeStamp> <ns1:Protocol>Any</ns1:Protocol> <ns1:NumOfLines>0</ns1:NumOfLines> <ns1:LinesStatus /> <ns1:ActiveLoadID xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" /> <ns1:InactiveLoadID xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" /> <ns1:DownloadStatus>Unknown</ns1:DownloadStatus> <ns1:DownloadFailureReason xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" /> <ns1:DownloadServer xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" /> <ns1:IPAddress> <ns1:item> <ns1:IP>10.0.0.1</ns1:IP> <ns1:IPAddrType>ipv4</ns1:IPAddrType> <ns1:Attribute>Unknown</ns1:Attribute> </ns1:item> </ns1:IPAddress> </ns1:item> <ns1:item> <ns1:Name>SIPTrunk-To-EXPWY-WebEX</ns1:Name> <ns1:DirNumber xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" /> <ns1:DeviceClass>SIPTrunk</ns1:DeviceClass> <ns1:Model>131</ns1:Model> <ns1:Product>0</ns1:Product> <ns1:BoxProduct>0</ns1:BoxProduct> <ns1:Httpd>Unknown</ns1:Httpd> <ns1:RegistrationAttempts>0</ns1:RegistrationAttempts> <ns1:IsCtiControllable>false</ns1:IsCtiControllable> <ns1:LoginUserId xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" /> <ns1:Status>Registered</ns1:Status> <ns1:StatusReason>0</ns1:StatusReason> <ns1:PerfMonObject>0</ns1:PerfMonObject> <ns1:DChannel>0</ns1:DChannel> <ns1:Description>SIP Trunk for WebEx Hybrid Calling</ns1:Description> <ns1:H323Trunk> <ns1:ConfigName xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" /> <ns1:TechPrefix xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" /> <ns1:Zone xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" /> <ns1:RemoteCmServer1 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" /> <ns1:RemoteCmServer2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" /> <ns1:RemoteCmServer3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" /> <ns1:AltGkList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" /> <ns1:ActiveGk xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" /> <ns1:CallSignalAddr xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" /> <ns1:RasAddr xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" /> </ns1:H323Trunk> <ns1:TimeStamp>0</ns1:TimeStamp> <ns1:Protocol>Any</ns1:Protocol> <ns1:NumOfLines>0</ns1:NumOfLines> <ns1:LinesStatus /> <ns1:ActiveLoadID xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" /> <ns1:InactiveLoadID xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" /> <ns1:DownloadStatus>Unknown</ns1:DownloadStatus> <ns1:DownloadFailureReason xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" /> <ns1:DownloadServer xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" /> <ns1:IPAddress> <ns1:item> <ns1:IP>10.0.0.1</ns1:IP> <ns1:IPAddrType>ipv4</ns1:IPAddrType> <ns1:Attribute>Unknown</ns1:Attribute> </ns1:item> </ns1:IPAddress> </ns1:item> </ns1:CmNodes> </ns1:SelectCmDeviceResult> <ns1:StateInfo><StateInfo><Node Name="CUCM-PUB.lab.com" SubsystemStartTime="1548467860" StateId="48" TotalItemsFound="16" TotalItemsReturned="16"/><Node Name="CUCM-SUB01.lab.com" SubsystemStartTime="1548475375" StateId="48" TotalItemsFound="16" TotalItemsReturned="16"/><Node Name="IMPS-PUB.lab.com" SubsystemStartTime="0" StateId="0" TotalItemsFound="0" TotalItemsReturned="0"/><Node Name="IMPS-SUB01.lab.com" SubsystemStartTime="0" StateId="0" TotalItemsFound="0" TotalItemsReturned="0"/></StateInfo></ns1:StateInfo> </ns1:selectCmDeviceReturn> </ns1:selectCmDeviceResponse> </soapenv:Body> </soapenv:Envelope>
You can use specific POST queries to get the results you needed.
04-12-2024 02:44 PM
Thanks, this solved my trunk monitoring, I was able to take the data and manage it with a programming language!
I did the test with CUCM V11.5.1.23900-30
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide