I'm new to Linux. I'm writing an SNMP extension agent using the MIB for
Dummies (http://www.net-snmp.org/wiki/index.php/MIB_for_Dummies) config
file (mib2c.mfd.conf). I successfully created my executable,
adeSensorsTable, using my own adeSensorsTable.MIB (mib2c util
auto-generated the C source code from adeSensorsTable.MIB, using
mib2c.mfd.conf config file, which I compiled into an executable). I then
ran my executable:
On my 1st terminal, I typed:
./adeSensorsTable -f -L -DadeSensorsTable -M localhost:1161
It returns:
No log handling enabled - turning on stderr logging
registered debug token adeSensorsTable, 1
adeSensorsTable:init_adeSensorsTable: Registering adeSensorsTable as a
mibs-for-dummies table.
-----------------------------------------------------------------------------------------------------------------
On my 2nd terminal of the same PC:
I then tried to use snmpget to reach one of my extension agent objects:
To do that I first got the object OID using snmptranslate:
snmptranslate -On xxxxx-MIB::adeSensorsTable.aDESensorsEntry.vrms
and got:
.1.3.6.1.4.1.43905.1.1.1.1.2
I then ran:
snmpget -v 1 -c public localhost:1161 .1.3.6.1.4.1.43905.1.1.1.1.2
It returns:
Timeout: No Response from localhost:1161.
-----------------------------------------------------------------------------------------------------------------
Back on the 1st terminal where my snmp extension agent binary is running,
adeSensorsTable, I have :
Connection from UDP: [127.0.0.1]:55176->[127.0.0.1]
Connection from UDP: [127.0.0.1]:55176->[127.0.0.1]
Connection from UDP: [127.0.0.1]:55176->[127.0.0.1]
Connection from UDP: [127.0.0.1]:55176->[127.0.0.1]
Connection from UDP: [127.0.0.1]:55176->[127.0.0.1]
I'm stumped here! I'd appreciate if you someone can provide some pointers
on this. Thanks in advance!
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders