Try to create HP iLO discovery pattern without much success

anko_wolf
Tera Contributor

Hi All,

I am trying to create a Discovery Pattern for HP iLO devices. I amanged to create a Classifier that classifies IP address as iLO devices and call my new pattern.

From the pattern, I submit a GET request (to "https://xxx.xxx.xxx.xxx/rest/v1" )  and I get back a JSON response. When I try to parse variables out of this response, I get an error message:

CUSTOM PARSING parsing strategy of output text failed due to an unsupported text format. Please choose another parsing strategy to continue.

Most likely due to finding "@" and "." in the JSON attribute names. After replacing "@" and "." in the Custom Parsing strategy script "JSON File", that error message no longer appears. I can now highlight items in the JSON response and assign them to variables. But on run time, I still get an error message about an XML file that cannot be processed. This approach appears to b a dead end, so I am now looking at using regex to extract values from the response. Not sure where that will lead.

Has anybody build a discovery pattern for ilO and encountered (or even better: dealt with) similar issues? 

Many thanks in advance.

Anko

8 REPLIES 8

Honestly you will probably need a HI ticket to figure that error message out fully.

Still waiting to get access to HI. but will indeed submit I ticket once that is arranged.

doug_schulze
ServiceNow Employee
ServiceNow Employee

Know its been a while but take a look at this post...Perhaps it can be of service if you still need it.

Patrick DeCarl1
ServiceNow Employee
ServiceNow Employee

Have you checked out https://developer.servicenow.com/app.do#!/share/contents/4470940_ilo_discovery_pattern?t=PRODUCT_DETAILS