Results 1 to 6 of 6
How do I get the system UUID information from the MIB ?
Which MIB value points to the UUID info of the machine.
I have seen that its possible to ...
- 08-24-2011 #1Just Joined!
- Join Date
- Aug 2011
- Posts
- 4
Help in How to Get System UUID from SNMP MIB ?
How do I get the system UUID information from the MIB ?
Which MIB value points to the UUID info of the machine.
I have seen that its possible to get this details as some software does that.
Need some help on this ?
- 08-24-2011 #2Just Joined!
- Join Date
- Aug 2011
- Posts
- 4
How to find the below MIBS values :-
(1.3.6.1.1.x)
I am interested in knowing value for "1.3.6.1.1.16"
x MIB Description References
0 reserved.
1 nisSchema Network Info Service Schema. RFC 2307
2 NameForm Naming Plan. RFC 2377, RFC 4519
3 AuxObject Auxiliary Object Class. RFC 2377
4 vendorName Vendor Name. RFC 3045
5 vendorVersion Vendor Version. RFC 3045
6 pcimSchema Policy Core Information Model LDAP Schema. RFC 3703
7 LCUP LDAP Client Update Protocol. RFC 3928
8 cancelOp LDAP Cancel Operation. RFC 3909
9 pcelsSchema PCELS Schema. RFC 4104
10 uddi Universal Description, Discovery & Integration. RFC 4403
11 vPIM Voice Messaging Directory Service. RFC 4237
12 assertion. Assertion Control. RFC 4528
13 ReadEntry. Read Entry Controls. RFC 4527
14 increment. LDAP Modify-Increment. RFC 4525
15 x509 x.509 Certificates. RFC 4523
16 uuid entryUUID. RFC 4530
17 LBURP LDAP Bulk Update/Replication Protocol. RFC 4373
18 ASN1 module LDAP ASN.1 Module. RFC 4511
19 turn LDAP Turn Operation. RFC 4531
20 entryDN LDAP entryDN Operational Attribute. RFC 5052
21 txn LDAP Transactions. RFC 5805
- 08-25-2011 #3Just Joined!
- Join Date
- Aug 2011
- Posts
- 4
I am unable to find the MIB related to the UUID. But after searching I was able to get a OID 1.3.6.1.1.16.1
This OID is related for RFC 4122. But I am unable to get the value from this OID.
Command :# snmpget -v 1 -c public <System IP Address> iso.3.6.1.1.16.1
Got an error :- Failed object: SNMPv2-SMI::directory.16.1
I don't know how to get this value?
Need your help on this.
- 08-25-2011 #4Linux Guru
- Join Date
- May 2011
- Posts
- 1,842
I'm not sure exactly what UUID you are referring to, but you made me curious about getting the UUID from the BIOS of a Linux box via SNMP. I was able to do it, but only by using the "exec" feature, which I defined in my snmpd.conf file. So in my /etc/snmp/snmpd.conf file, I have:
and in /tmp/uuid.sh I have:Code:rocommunity public exec .1.3.6.1.4.1.2021.50 shelltest /bin/sh /tmp/uuid.sh
Then on a remote box, I ran:Code:#!/bin/sh dmidecode|grep UUID
And it returned, amongst some other stuff:Code:snmpwalk -v1 -c public <IPADDR_OF_FIRST_PC> .1.3.6.1.4.1.2021.50
Probably not what you want, though....Code:UCD-SNMP-MIB::ucdavis.50.100.1 = STRING: " UUID: 000000000-0001-0002-0003-000400080009"
- 08-25-2011 #5Just Joined!
- Join Date
- Aug 2011
- Posts
- 4
Thanks for your reply atreyu.
This solution will work for a linux system where I can make these changes which you ave mentioned.
I am trying to find a solution which will work for any system.
Like a storage box, a linux system, etc.
Every system does have a UUID which I want to capture. But your solution will be applied on the linux system but not on a storage or other systems.
Please help me in finding this solution which will be a generic solution for all the system in the datacenter.
- 08-26-2011 #6Linux Guru
- Join Date
- May 2011
- Posts
- 1,842
That may be a tall order. It depends entirely on your SNMP agents, and what they choose to make available via SNMP queries. Have you already walked the entire tree of one of your devices and looked for the UUID and not found it? If so, then I'm afraid I can't be much more help.
When you do the snmpwalk command, try playing with the "-O" flag to modify the output.
E.g., this will print full OIDs on output:
Or if you already know a UUID for a given device some other way:Code:snmpwalk -c public -v2c <DEVICE_IPADDR> -Of|grep -i uuid
Code:snmpwalk -c public -v2c <DEVICE_IPADDR> -Of|grep -i <KNOWN_UUID>


Reply With Quote
