Hello Mayamatakeshi,
The error is from snmpget. It is basically saying that it doesn't know how to translate the openserSIPEntityType into a numerical OID. There are two possibilities for this error.
Firstly, have you copied the MIB files (OPENSER-MIB, OPENSER-REG-MIB, OPENSER-SIP-COMMON-MIB, OPENSER-SIP-SERVER-MIB) to the same location as NetSNMP's other MIB files? They are usually located in /usr/local/share/snmp/mibs or /usr/share/snmp/mibs. You can find which directory your system is using with "locate SNMPv2-TC.txt". Also, make sure your snmp.conf (not the snmpd.conf) file contains:
mibs +ALL
This instructs the snmp command line utilities (snmpget, snmpwalk, etc.), to load all MIB files before trying to convert between openserSIPEntityType and its numerical OID equivalent.
Let me know if that works!
- Jeffrey Magder
mayamatakeshi wrote:
It seems the doc page has an error. It says to set this at snmpstats.conf: agentXSocket tcp:localhost:705 And this when starting snmpd: snmpd -f -Dagentx -x localhost:705 2>&1 | less
This will not work because snmpd will use udp by default. So I added 'tcp:' before 'localhost' and after that, I could see some messages like this: agentx/master: handle pdu (req=0x68ab0cd4,trans=0x0,sess=0x7) agentx/master: send response, stat 0 (req=0x68ab0cd4,trans=0x0,sess=0x7) agentx_build: packet built okay
But after that, I'm still not able to get anything with snmpget:
snmpget -v2c -c public tcp:localhost:705 openserSIPEntityType.0 snmpget: Session abort failure (Sub-id not found: (top) -> openserSIPEntityType)
On Thu, Jul 3, 2008 at 6:15 PM, mayamatakeshi <mayamatakeshi@gmail.com mailto:mayamatakeshi@gmail.com> wrote:
Hello, I'm trying to test with snmpstats following instruction from http://www.openser.org/docs/modules/1.3.x/snmpstats.html From snmpd output, I can see openser is connecting to it, but i don't see openser uploading any info (I'm running "snmpd -f -Dagentx -x localhost:705 2>&1 | less"). Then, when I try to get any openser info using snmpget or snmpwalk, nothing shows up. Maybe I am missing something (I confirmed snmpd finds and loads openser MIBs). Regards, takeshi
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users