Example 2, Example 3, Example 2 example 3 – HP Intelligent Management Center Licenses User Manual

Page 124

Advertising
background image

Example 2

Use the routing mode to automatically discover devices.

Request

POST http://imc_host:8080/imcrs/plat/res/autodiscover/start
accept: application/xml
Content-Type: application/xml; charset=UTF-8
...
<autoDiscoverConfig>
<mode>1</mode>
<discoverType>2</discoverType>
<loopBackAsManageIP>false</loopBackAsManageIP>
<discoverNonSnmpDevice>true</discoverNonSnmpDevice>
<pingAll>false</pingAll>
<sendTrap>true</sendTrap>
<seedIp>10.153.89.199</seedIp>
</autoDiscoverConfig>

Response

HTTP/1.1 200 OK
Content-Type: application/xml

Example 3

Use the segment mode to automatically discover devices.

Request

POST http://imc_host:8080/imcrs/plat/res/autodiscover/start
accept: application/xml
Content-Type: application/xml; charset=UTF-8
...
<autoDiscoverConfig>
<mode>1</mode>
<discoverType>1</discoverType>
<ipSection>
<begin>10.153.88.10</begin>
<end>10.153.88.20</end>
</ipSection>
<loopBackAsManageIP>false</loopBackAsManageIP>
<discoverNonSnmpDevice>true</discoverNonSnmpDevice>
<pingAll>false</pingAll>
<sendTrap>true</sendTrap>
</autoDiscoverConfig>

Response

HTTP/1.1 200 OK
Content-Type: application/xml

124

Network Resource Management

Advertising