Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to access xml parameters from input ecc queue payload through post processing script

sahithg
Tera Contributor

HI,

I want to capture parameters from input horizontalDiscoveryProbe in post processing script. How can i do it?

I know payload we use in script is from <result><output>amsdbfmbafasmdbfm ashdfkjaksf .....</output></result>

but I also want to capture parameter key values from <parameters></parameters> from same payload.

 

I see this is the format in ecc queue input record payload:

<results probe_time="85793" result_code="0">
<result>
...
</result>
<parameters>
...
</parameters>
</results>



 

3 REPLIES 3

Mannapuram
Tera Guru

@sahithg What exactly are you trying to do? If the XML is from OOB HorizontalDiscoveryProbe - input, then the parameters are already exists as shown below:

 

Mannapuram_0-1759513343101.png

Click on XML

Mannapuram_1-1759513380819.png

If you scroll down, the parameters are already populated. 

Mannapuram_2-1759513439287.png

 

I want to compare ip_address from linux_server object with deviceHistory parameter in post processing script.

sahithg
Tera Contributor

I want to write a post processing script to compare ip address from output payload to the parameter(devicehistory).