Example, Request, Response – HP Intelligent Management Center Licenses User Manual

Page 317

Advertising
background image

log sub-elements

Severity level.

severity

Integer type.

Log digest.

digest

String type.

Repeat time.

repeats

Integer type.

Log content.

content

String type.

Example

Query and list syslogs. The first ten entries are listed by default.

Request

GET http://imc_host:8080/imcrs/fault/syslog/log/
accept: application/xml
...

Response

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

</list>
<log>
<id>1>/id>
<recvTime>2011-08-29 16:39:11</recvTime>
<deviceId>12</deviceId>
<deviceName>L07069A</deviceName>
<deviceIp>10.153.129.35</deviceIp>
<sysName>H3C </sysName>
<module>DHCP-SNP</module>
<severity>5</severity>
<digest>dhcp-snooping server guard</digest>
<repeats>3</repeats>
<content><182>Oct 12 11:02:52 19.82.2.20 Apr 2 00:04:42 2000 H3C %%DHCP-SNP/5/dhcp-snooping server guard:- 1 -Port 0
detect DHCP server in VLAN 1 MAC is 00e0-fc05-53b1 IP is 10.153.89.1!
</content>
</log>
...
<log>
<id>10</id>
<recvTime>2011-08-29 16:39:11</recvTime>
<deviceId>12</deviceId>
<deviceName>L07069A</deviceName>
<deviceIp>10.153.129.35</deviceIp>
<sysName>Monza_IRF </sysName>
<module>10PORTSEC</module>
<severity>2</severity>
<digest>LOGINFAILURE(l)</digest>
<repeats>3</repeats>
<content><182>Oct 12 11:02:52 19.82.2.20 Apr 3 03:23:53 2000 Monza_IRF %%10PORTSEC/2/LOGINFAILURE(l):- 8 - OID:
1.3.6.1.4.1.2011.10.2.26.1.3.3(h3cSecureLoginFailure) A user login failure occurs due to the user not being successfully
authorised IfIndex: 503316834 Port:Ethernet8/0/42 MAC Addr: 0010-5ce8-89fa VLAN id:999 PortNum:503316834
UserName: local@local
</content>
</log>
<link href="http://localhost:8080/imcrs/syslog/log/?start=10&size=10" op="GET" rel="next"/>
</list>

Query Syslog Information List

317

Advertising