It says it requires CPQHOST-MIB
Main Topics
Browse All TopicsHi,
I'm having a bit of an issue with snmp. I'm tryin gto get temperature info from a HP blade enclosure and I got the mib files containing the necessary OIDs from the management disk that came with the enclosure.
I want to get this reported into our nagios setup but so far I can't even get an snmptranslate or snmpget to work.
The command I'm using with snmp get is this;
snmpget -t 1 -r 5 -M /usr/local/share/snmp/mibs
This is returning the following error;
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: CPQRACK-MIB::cpqRackCommon
I've add a ".0" on the end as I've used this when specifying the sysUpTime OID for cisco switches in the nagios config. I don't quite understand the syntax tho so that was just a stab in the dark.
I've added the mib files into the directory stated above, in the snmpget command, and I've entered each mib in the snmp.conf file (mibs +CPQRACK-MIB).
I'm sure its seeing the mib files but what am I doing wrong here? Why won't it find the OID? Its not a typo, I copied it directly out of the mib. Have I gotten the OID name wrong?
I've attached the mib file if that helps.
Rory
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I've made some little progress with this. I've cleared up some problems with unrelated mib files which took a little bit of hacking.
(To the guys in HP who wrote the mibs, net-snmp doesn't like underscores and give syntax errors)
At them moment I can get snmp translate to work;
[root]# snmptranslate -On -IR cpqRackCommonEnclosureTemp
.1.3.6.1.4.1.232.22.2.3.1.
But snmpget won't work using the same variable name;
[root]# snmpget -t 1 -r 5 -IR -v 1 -c <string> <ip-address>:161 cpqRackCommonEnclosureTemp
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: CPQRACK-MIB::cpqRackCommon
So its not a typo and snmp seems to be finding it in the mib file as it has the correct mib in the "Failed object:" line.
Can anybody see what I'm doing wrong here? There must be something that I've screwed up.
Business Accounts
Answer for Membership
by: Red-KingPosted on 2009-05-29 at 08:57:26ID: 24503702
I just got snmptranslate to give me the correct OID name (I think) by using the numeric OID. It gave me this;
EnclosureT empTable.6
Current)?
EnclosureT empTable.6
CPQRACK-MIB::cpqRackCommon
Does that mean it can only see as far as the table entry? I'm guessing the .6 at the specifies the 6th entry in the table (which is cpqRackCommonEnclosureTemp
with snmpget, when i use the OID name that snmptranslate returned, it gives this error;
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: CPQRACK-MIB::cpqRackCommon
I get the same result if I use the numeric OID.
Can anybody help me understand whats going on here?