Add device, Interface uri, Access method – HP Intelligent Management Center Licenses User Manual

Page 81: Interface uri access method, Message body, Element description

Advertising
background image

Add Device

Add a device to iMC.

Interface URI

/plat/res/device

Access Method

HTTP

POST

Message body

<device>
<nameOrIp>192.168.1.100</nameOrIp>
<label>Dev Label1</label>
<mask></mask>
<loginType>1</loginType>
<registerTrap>true</registerTrap>
<supportPing>true</supportPing>
<forceAdd>false</forceAdd>
<loopbackAsMgrIp>false</loopbackAsMgrIp>
<snmpTmplId>10</snmpTmplId>
<telnetTmplId>11</telnetTmplId>
<sshTmplId>12</sshTmplId>
<snmpParameter>
......
</snmpParameter>
<telnetParameter>
......
</telnetParameter>
<sshParameter>
......
</sshParameter>
</device>

Element description

device sub-elements

Host or IP address.

nameOrIp

String type. Required. No default value.

Device label.

label

String type. Optional. The default value is empty.

Mask.

mask

String type. Optional. The default value is empty.

Login method. 0: None. 1: Telnet. 2: SSH.

loginType

Integer type.

Send traps to the network management system.

registerTrap

Boolean type. Optional. The default value is true. It is valid only when the alarm component
is installed.

Support for the ping operation.

supportPing

Boolean type. Optional. The default value is true.

Add the device even if the device cannot be pinged successfully.

forceAdd

Add Device

81

Advertising