I've registered my own oid with IANA. For this post we'll call it 99999.
so in my snmpd.conf file (Ubuntu 14)
I added the following line
extend .22.214.171.124.4.1.99999.1 test /bin/echo hello
When I get a snmpget with the oid .126.96.36.199.4.1.99999.1, expecting a reply of hello I got not found.
So decided to do a snmpwalk from .188.8.131.52.4.1.99999 and I got the following
.184.108.40.206.4.1.999220.127.116.11 = 1 .18.104.22.168.4.1.99922.214.171.124.126.96.36.199.115.116 = /bin/echo .188.8.131.52.4.1.999184.108.40.206.220.127.116.11.115.116 = hello .18.104.22.168.4.1.99922.214.171.124.126.96.36.199.115.116 = hello .188.8.131.52.4.1.999184.108.40.206.220.127.116.11.115.116 = 5 .18.104.22.168.4.1.99922.214.171.124.126.96.36.199.115.116 = 1 .188.8.131.52.4.1.999184.108.40.206.220.127.116.11.115.116 = 1 .18.104.22.168.4.1.99922.214.171.124.126.96.36.199.115.116 = 4 .188.8.131.52.4.1.999184.108.40.206.220.127.116.11.115.116 = 1 .18.104.22.168.4.1.99922.214.171.124.126.96.36.199.115.116 = hello .188.8.131.52.4.1.999184.108.40.206.220.127.116.11.115.116 = hello .18.104.22.168.4.1.99922.214.171.124.126.96.36.199.115.116 = 1 .188.8.131.52.4.1.999184.108.40.206.220.127.116.11.115.116 = 0 .18.104.22.168.4.1.99922.214.171.124.126.96.36.199.115.116 = hello
Ok that's not what I was expecting. On my old Ubuntu 8 server I would get a reply from oid .188.8.131.52.4.1.99999.1 as hello
So the question is what's the stuff after my oid? (.184.108.40.206.220.127.116.11, etc)
I assume there is some sort of meaning/logic to the numbers after "my" oid.
which is the correct oid to use in a snmpget to get the "hello" back
Any pointers would be useful.
Many thanks in advance.
* Added comments after my original post *
Ok, I've worked out some of the numbers added to my oid.
Looking at the oid .18.104.22.168.4.1.99922.214.171.124.126.96.36.199.115.116
The last section is ascii 188.8.131.52 equals "test"
so what's the stuff in the middle
184.108.40.206 220.127.116.11 18.104.22.168 22.214.171.124 and so on...
I'm still confused as to why this is all added to my OID in the first place.
On my old Ubuntu 8 SNMP I could simple do a snmpget on the oid number (.126.96.36.199.4.1.99999.1) I had test in the snmpd.conf exec line and get the result 'hello' back
With all these added numbers to the old how do I know what oid I need to go a snmpget on?
Likewise how on earth would you create a meaning full MIB file to match it all?
ARGH!!! SNMP Overload....