Page 1 of 1

SNMP data from IBM IMM

Posted: Tue Oct 27, 2015 9:45 am
by fabric
Hi everyone, I want to get the data displayed on the IBM IMM as temperature, voltage and so on via SNMP.
For example I ran the following command:

Code: Select all

snmpget -O n -v 2c -c public IP_address .1.3.6.1.4.1.2.3.51.3.1.1.2.1.1
where IP_address is the address of the IMM. I get

Code: Select all

Timeout: No response from 
Instead if IP_address is the server IP I get

Code: Select all

no such object available on this agent at this oid
Obviously the SNMP is active on both the IMM and the server.

I also tried the plugin check_snmp_ibm_imm

Code: Select all

./check_snmp_ibm_imm.sh -H IP -C public -T health
It answers again Timeout: No response, both using the server address or the IMM address.

Can anyone suggest me what is the right way to get this data and what could be wrong (SNMP configuration, firewall, anything else)?

Thank you very much.

Re: SNMP data from IBM IMM

Posted: Tue Oct 27, 2015 4:22 pm
by JLT
If you have not configured SNMP on the IMM, try these steps:

Go to IMM Management > Network

Click "Enable SNMPv1".
Disable SNMPv3.
Enable SNMP traps

On the Communities tab:

Community name:
public
Access type: Get
Allow specific hosts:
Add host IP address.

On the Traps tab:
Select Critical and Attention events.

Then click Apply button.

Re: SNMP data from IBM IMM

Posted: Wed Oct 28, 2015 1:43 am
by Box293
fabric wrote:Hi everyone, I want to get the data displayed on the IBM IMM as temperature, voltage and so on via SNMP.
For example I ran the following command:

Code: Select all

snmpget -O n -v 2c -c public IP_address .1.3.6.1.4.1.2.3.51.3.1.1.2.1.1
I learnt one thing at the Nagios World Conference this year and it was that OID's ending in .1 are tables and hence have a subnet of information.

What happens when you try and walk the device?

Code: Select all

snmpwalk -v 2c -c public IP_address -m all 1.3.6.1.4.1.2.3.51

Re: SNMP data from IBM IMM

Posted: Wed Oct 28, 2015 4:03 am
by fabric
Box293 wrote: What happens when you try and walk the device?

Code: Select all

snmpwalk -v 2c -c public IP_address -m all 1.3.6.1.4.1.2.3.51
I get

Code: Select all

IBM-SYSTEM-MIB::ibm.3.51 = No Such Object available on this agent at this OID
if IP_address is the server IP.

It seems that the OID is missing somewhere.
JLT wrote: On the Traps tab:
Select Critical and Attention events.
about this, this IMM doesn't have a Trap tab (the server is an X3650 M2). The only similar option is in IMM Control > Alerts - SNMP Alerts Settings, where I can select the alerts that will be sent to SNMP among Critical, Warning and System alerts.

Re: SNMP data from IBM IMM

Posted: Wed Oct 28, 2015 2:29 pm
by tgriep
Can you post your IBM-SYSTEM-MIB MIB file so we can review it?

Re: SNMP data from IBM IMM

Posted: Thu Oct 29, 2015 3:27 am
by fabric
Here is the file

Re: SNMP data from IBM IMM

Posted: Thu Oct 29, 2015 11:32 am
by tgriep
That MIB file doesn't contain the OID that you are checking for. I translated it and included it in the post. If the data that you are looking for isn't shown below, you may have to get a different MIB file that has it.

Code: Select all

"org"                   "1.3"
"dod"                   "1.3.6"
"internet"                      "1.3.6.1"
"directory"                     "1.3.6.1.1"
"mgmt"                  "1.3.6.1.2"
"experimental"                  "1.3.6.1.3"
"private"                       "1.3.6.1.4"
"enterprises"                   "1.3.6.1.4.1"
"ibm"                   "1.3.6.1.4.1.2"
"ibmProd"                       "1.3.6.1.4.1.2.6"
"ibmServer"                     "1.3.6.1.4.1.2.6.159"
"ibmSystemAgentVersion"                 "1.3.6.1.4.1.2.6.159.0"
"ibmSystem"                     "1.3.6.1.4.1.2.6.159.1"
"ibmSystemMIB"                  "1.3.6.1.4.1.2.6.159.1.1"
"ibmSystemTrap"                 "1.3.6.1.4.1.2.6.159.1.1.0"
"win32"                 "1.3.6.1.4.1.2.6.159.1.1.2"
"win32Event"                    "1.3.6.1.4.1.2.6.159.1.1.2.0"
"win32WMI"                      "1.3.6.1.4.1.2.6.159.1.1.2.10"
"win32SMBIOS"                   "1.3.6.1.4.1.2.6.159.1.1.2.20"
"ibmSystemAgent"                        "1.3.6.1.4.1.2.6.159.1.1.10"
"ibmSystemAgentUpObjs"                  "1.3.6.1.4.1.2.6.159.1.1.10.0"
"ibmSystemMgmtHwIPEndPointUp"                   "1.3.6.1.4.1.2.6.159.1.1.10.0.3"
"ibmSystemEventSubsystem"                       "1.3.6.1.4.1.2.6.159.1.1.20"
"ibmSystemHealth"                       "1.3.6.1.4.1.2.6.159.1.1.30"
"ibmSystemHealthUp"                     "1.3.6.1.4.1.2.6.159.1.1.30.0"
"ibmSystemStorageUp"                    "1.3.6.1.4.1.2.6.159.1.1.30.0.1"
"ibmSystemPhysicalDiskUp"                       "1.3.6.1.4.1.2.6.159.1.1.30.0.1.1"
"ibmSystemLogicalDiskUp"                        "1.3.6.1.4.1.2.6.159.1.1.30.0.1.2"
"ibmSystemVitalProductData"                     "1.3.6.1.4.1.2.6.159.1.1.40"
"ibmSystemSMART"                        "1.3.6.1.4.1.2.6.159.1.1.50"
"ibmSystemAssetID"                      "1.3.6.1.4.1.2.6.159.1.1.60"
"ibmSystemAlertOnLAN"                   "1.3.6.1.4.1.2.6.159.1.1.70"
"ibmSystemLMSensor"                     "1.3.6.1.4.1.2.6.159.1.1.80"
"ibmSystemLMSensorUp"                   "1.3.6.1.4.1.2.6.159.1.1.80.0"
"ibmSystemVoltageUp"                    "1.3.6.1.4.1.2.6.159.1.1.80.0.1"
"ibmSystemTemperatureUp"                        "1.3.6.1.4.1.2.6.159.1.1.80.0.2"
"ibmSystemTachometerUp"                 "1.3.6.1.4.1.2.6.159.1.1.80.0.3"
"ibmSystemITDirector"                   "1.3.6.1.4.1.2.6.159.1.1.90"
"ibmSystemSmbios"                       "1.3.6.1.4.1.2.6.159.1.1.100"
"ibmSystemNetwork"                      "1.3.6.1.4.1.2.6.159.1.1.110"
"ibmSystemNetworkUp"                    "1.3.6.1.4.1.2.6.159.1.1.110.0"
"ibmSystemMemory"                       "1.3.6.1.4.1.2.6.159.1.1.120"
"ibmSystemMemoryUp"                     "1.3.6.1.4.1.2.6.159.1.1.120.0"
"ibmSystemPower"                        "1.3.6.1.4.1.2.6.159.1.1.130"
"ibmSystemPowerUp"                      "1.3.6.1.4.1.2.6.159.1.1.130.0"
"ibmSystemProcessor"                    "1.3.6.1.4.1.2.6.159.1.1.140"
"ibmSystemProcessorUp"                  "1.3.6.1.4.1.2.6.159.1.1.140.0"
"ibmSystemSmartDisk"                    "1.3.6.1.4.1.2.6.159.1.1.150"
"ibmSystemSmartDiskUp"                  "1.3.6.1.4.1.2.6.159.1.1.150.0"
"ibmSystemRaid"                 "1.3.6.1.4.1.2.6.159.1.1.200"
"ibmSystemRaidUp"                       "1.3.6.1.4.1.2.6.159.1.1.200.0"
"ibmSystemAgentPlatform"                        "1.3.6.1.4.1.2.6.159.1.1.2000"
"ibmSystemAgentPlatformInfo"                    "1.3.6.1.4.1.2.6.159.1.1.2000.0"
"ibmSystemAgentV2"                      "1.3.6.1.4.1.2.6.159.1.1.2010"
"ibmSystemAssetIDV2"                    "1.3.6.1.4.1.2.6.159.1.1.2060"
"ibmSystemLMSensorV2"                   "1.3.6.1.4.1.2.6.159.1.1.2080"
"ibmSystemNetworkV2"                    "1.3.6.1.4.1.2.6.159.1.1.2110"
"ibmSystemMemoryV2"                     "1.3.6.1.4.1.2.6.159.1.1.2120"
"ibmSystemPowerV2"                      "1.3.6.1.4.1.2.6.159.1.1.2130"
"ibmSystemProcessorV2"                  "1.3.6.1.4.1.2.6.159.1.1.2140"
"ibmQLogic"                     "1.3.6.1.4.1.2.6.159.1.1.2310"
"ibmBrocade"                    "1.3.6.1.4.1.2.6.159.1.1.2320"
"ibmStorage"                    "1.3.6.1.4.1.2.6.159.3"

Re: SNMP data from IBM IMM

Posted: Thu Oct 29, 2015 1:27 pm
by fabric
Thank you for the answer.

I have some questions more (sorry for this but these are my first approaches to SNMP).

1.
Some OIDs show a right data, for example the temperature thresholds, but other OIDs show a wrong data, for example the temperature OID shows 18° while the IMM shows 20°.
Is it normal I see this difference?

2.
Some OIDs are very long, for example the OID for the temperature is: .1.3.6.1.4.1.2.6.159.1.1.80.1.1.2.27.97.109.98.105.101.110.116.32.116.101.109.112.58.50.102.50.98.48.49.102.52.53.48.49.102.53.99
Is this normal?

3.
Other OIDs doesn’t give me any answers, as "ibmSystemRaidUp" "1.3.6.1.4.1.2.6.159.1.1.200.0"
while other OIDs give me Timeout: No Response, as "ibmSystemRaid" "1.3.6.1.4.1.2.6.159.1.1.200"
Is also this a normal behaviour of the system?

4.
About the MIB file, I get it from the installation path of the IBM System Director.
Is it supposed to be the right MIB file?
When I asked about the X3650M2 MIB on the IBM forum, I get this answer, but to be honest I don't know how use the files they linked.

5.
In the end, how did you translate the MIB file? Is there any tool for this?

Sorry for so many questions and thank your for your patience.

Re: SNMP data from IBM IMM

Posted: Fri Oct 30, 2015 9:41 am
by tgriep
1. If you are measuring the actual temperature, it could be different because of when the temperature was measured at that time.
2. Yes, some OIDs can be large.
3. Think of the OID as a path to the data, you will get the data from the last number in the OID but not the previous number.
4. I don't know if that MID file is correct for your device. If you downloaded from the device, I would assume it is.
5. There is a tool that should be installed on your Linux system called snmptranslate and this is how I ran it to translate your MIB snmptranslate -m IBM-SYSTEM-MIB.txt -Tz
You can search and find a lot of tools to translate OID's.