How To configure and get SNMP information on Lenovo XClarity Controller

I had to manage and check the state of drives and power supply of brand new Lenovo servers.

I didn't find it that simple neither well documented, so I will put here all the steps to follow to set the SNMP Agent works and give you some SNMP GET requests.

Accessing the XClarity Controller web interface

Connect your computer to the XClarity Controller dedictated port. The default static IPv4 address assigned is 192.168.70.125.

Open Mozilla Firefox and go to http://192.168.70.125.

  • The following webpage should appear :
Lenovo XClarity Controller | login webpage
  • Type default user name and Password in the XClarity Controller Login window :
    • User Name : USERID
    • Password : PASSW0RD
  • You should access to the XClarity Controller home page :
Lenovo XClarity Controller | XClarity Controller home page

Configure SNMPv3 Agent

Now we have to enable SNMP Agent in order to be able to retrieve SNMP information.

  • Go to Server Configuration > Server Properties and configure contact and location :
Lenovo XClarity Controller | XClarity Controller Server Properties
  • Go to BMC Configuration > Network and enable SNMPv3 Agent :
Lenovo XClarity Controller | XClarity Controller Server Properties
  • Go to BMC Configuration > Users/LDAP, edit the USERID account and set Authentication and Privacy protocol to None (as I haven't been able to get the authentication to work yet…) :
Lenovo XClarity Controller | XClarity Controller Users Ldap page

Retrieve SNMP information

I will use Net-SNMP suite to retrieve SNMP information. You can download it from this link.

Install

  • Install SNMP applications (Debian or Ubuntu) :
root@host:~# apt-get install snmp

Retrieve information

  • General information :
root@host:~# snmpwalk -v 3 -u USERID -Os 192.168.70.125
iso.3.6.1.2.1.1.1.0 = STRING: "Linux XCC-7X99-S9DQL415 3.14.39-xcc #1 SMP PREEMPT Mon Apr 22 23:24:14 EDT 2019 armv7l"
iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.19046.11.1
iso.3.6.1.2.1.1.3.0 = Timeticks: (80190094) 9 days, 6:45:00.94
iso.3.6.1.2.1.1.4.0 = STRING: "std"
iso.3.6.1.2.1.1.5.0 = STRING: "XCC-7X99-S9DQL415"
iso.3.6.1.2.1.1.6.0 = STRING: "SLTS"
iso.3.6.1.2.1.1.7.0 = INTEGER: 72
  • Power Supply information :
root@host:~# snmpwalk -v 3 -u USERID 192.168.70.125 1.3.6.1.4.1.19046.11.1.1.11.2
iso.3.6.1.4.1.19046.11.1.1.11.2.1.1.1 = INTEGER: 1
iso.3.6.1.4.1.19046.11.1.1.11.2.1.1.2 = INTEGER: 2
iso.3.6.1.4.1.19046.11.1.1.11.2.1.2.1 = STRING: "Power Supply 1"
iso.3.6.1.4.1.19046.11.1.1.11.2.1.2.2 = STRING: "Power Supply 2"
iso.3.6.1.4.1.19046.11.1.1.11.2.1.3.1 = STRING: "SP57A93414"
iso.3.6.1.4.1.19046.11.1.1.11.2.1.3.2 = STRING: "SP57A13141"
iso.3.6.1.4.1.19046.11.1.1.11.2.1.4.1 = STRING: "01PA615"
iso.3.6.1.4.1.19046.11.1.1.11.2.1.4.2 = STRING: "01PB623"
iso.3.6.1.4.1.19046.11.1.1.11.2.1.5.1 = STRING: "A1DB91611EX"
iso.3.6.1.4.1.19046.11.1.1.11.2.1.5.2 = STRING: "A1DB96711YN"
iso.3.6.1.4.1.19046.11.1.1.11.2.1.6.1 = STRING: "Normal"
iso.3.6.1.4.1.19046.11.1.1.11.2.1.6.2 = STRING: "Warning"
  • Drives information :
root@host:~# snmpwalk -v 3 -u USERID -Os 192.168.70.125 1.3.6.1.4.1.19046.11.1.1.12
iso.3.6.1.4.1.19046.11.1.1.12.1.0 = Gauge32: 2
iso.3.6.1.4.1.19046.11.1.1.12.2.1.1.0 = INTEGER: 0
iso.3.6.1.4.1.19046.11.1.1.12.2.1.1.1 = INTEGER: 1
iso.3.6.1.4.1.19046.11.1.1.12.2.1.2.0 = STRING: "Drive 0"
iso.3.6.1.4.1.19046.11.1.1.12.2.1.2.1 = STRING: "Drive 1"
iso.3.6.1.4.1.19046.11.1.1.12.2.1.3.0 = STRING: "Normal"
iso.3.6.1.4.1.19046.11.1.1.12.2.1.3.1 = STRING: "Normal"

References

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Contact :