Hi All,
This is my first post to this list. I've been using OpenSER at my new job for only two months. I've been having a bit of a problem with the snmpstats module, though.
I've configured openser 1.2.1 to load the snmpstats module and I can pull info like so:
$ snmpwalk -v 1 -c gl_tor_151_globser2 204.11.120.77 enterprises.27483
SNMPv2-SMI::enterprises.27483.3.1.1.1.1.1.0 = STRING: "SIP/2.0" SNMPv2-SMI::enterprises.27483.3.1.1.1.1.2.0 = Timeticks: (0) 0:00:00.00 SNMPv2-SMI::enterprises.27483.3.1.1.1.1.4.0 = STRING: "(" SNMPv2-SMI::enterprises.27483.3.1.1.1.1.5.1.4.1.4.204.11.120.77.5060 = STRING: "`" [snip]
$ snmpget -v 1 -c gl_tor_151_globser2 204.11.120.77 enterprises.27483.3.1.1.1.1.7.1.2.14
SNMPv2-SMI::enterprises.27483.3.1.1.1.1.7.1.2.14 = STRING: "METHOD_PUBLISH"
But, when I try to use one of the example commands given in the snmpstats documentation, I always get an error:
$ snmpwalk -v 2c -c gl_tor_151_globser2 204.11.120.77 openserSIPEntityType.0
openserSIPEntityType.0: Unknown Object Identifier (Sub-id not found: (top) -> openserSIPEntityType)
$snmptranslate -TBd openserSIPEntityType Unable to find a matching object identifier for "openserSIPEntityType"
Why is that happening? Why can't I use the names? I've found one other message in the archives from someone having the same problem, but the thread didn't go anywhere.
Any tips/suggestions would be appreciated.
Regards,
Ranbir
Hi Kanwar,
Have you made sure that the MIB files (OPENSER-MIB, OPENSER-REG-MIB, etc.) included as part of the OpenSER distribution, have been copied to the same folder as the rest of your MIBs?
On my system, the other mib files were located in one of:
/usr/local/share/snmp/mibs /usr/share/snmp/mibs
Though on your system, it may be different. If you are unsure of the location of your existing MIBS (the ones installed with NetSNMP), you can search for them with:
find / -name "SNMPv2-TC".
I believe that file is installed by default with NetSNMP.
I hope this helps, let me know how it goes!
- Jeffrey Magder
Kanwar Ranbir Sandhu wrote:
Hi All,
This is my first post to this list. I've been using OpenSER at my new job for only two months. I've been having a bit of a problem with the snmpstats module, though.
I've configured openser 1.2.1 to load the snmpstats module and I can pull info like so:
$ snmpwalk -v 1 -c gl_tor_151_globser2 204.11.120.77 enterprises.27483
SNMPv2-SMI::enterprises.27483.3.1.1.1.1.1.0 = STRING: "SIP/2.0" SNMPv2-SMI::enterprises.27483.3.1.1.1.1.2.0 = Timeticks: (0) 0:00:00.00 SNMPv2-SMI::enterprises.27483.3.1.1.1.1.4.0 = STRING: "(" SNMPv2-SMI::enterprises.27483.3.1.1.1.1.5.1.4.1.4.204.11.120.77.5060 = STRING: "`" [snip]
$ snmpget -v 1 -c gl_tor_151_globser2 204.11.120.77 enterprises.27483.3.1.1.1.1.7.1.2.14
SNMPv2-SMI::enterprises.27483.3.1.1.1.1.7.1.2.14 = STRING: "METHOD_PUBLISH"
But, when I try to use one of the example commands given in the snmpstats documentation, I always get an error:
$ snmpwalk -v 2c -c gl_tor_151_globser2 204.11.120.77 openserSIPEntityType.0
openserSIPEntityType.0: Unknown Object Identifier (Sub-id not found: (top) -> openserSIPEntityType)
$snmptranslate -TBd openserSIPEntityType Unable to find a matching object identifier for "openserSIPEntityType"
Why is that happening? Why can't I use the names? I've found one other message in the archives from someone having the same problem, but the thread didn't go anywhere.
Any tips/suggestions would be appreciated.
Regards,
Ranbir
On Wed, 2007-08-22 at 13:33 -0400, Jeffrey Magder wrote:
Have you made sure that the MIB files (OPENSER-MIB, OPENSER-REG-MIB, etc.) included as part of the OpenSER distribution, have been copied to the same folder as the rest of your MIBs?
On my system, the other mib files were located in one of:
/usr/local/share/snmp/mibs /usr/share/snmp/mibs
Yep - the existing MIBs are in /usr/share/snmp/mibs, and that's where I copied the OpenSER MIBs to. However, I had to rename the OpenSER MIB files to add a ".txt" extension to them. Without it, snmp wouldn't work at all (the existing MIBs all end in ".txt", too).
BTW, I'm running openser on a CentOS 5 box.
Regards,
Ranbir
Could you elaborate on what you mean by "wouldn't work at all"? I'm not sure why you needed the .txt extension. Can you show me the contents of your snmp.conf file? (not the snmpd.conf file). Also, what version of NetSNMP are you using? (snmpget --version).
- JM
Kanwar Ranbir Sandhu wrote:
On Wed, 2007-08-22 at 13:33 -0400, Jeffrey Magder wrote:
Have you made sure that the MIB files (OPENSER-MIB, OPENSER-REG-MIB, etc.) included as part of the OpenSER distribution, have been copied to the same folder as the rest of your MIBs?
On my system, the other mib files were located in one of:
/usr/local/share/snmp/mibs /usr/share/snmp/mibs
Yep - the existing MIBs are in /usr/share/snmp/mibs, and that's where I copied the OpenSER MIBs to. However, I had to rename the OpenSER MIB files to add a ".txt" extension to them. Without it, snmp wouldn't work at all (the existing MIBs all end in ".txt", too).
BTW, I'm running openser on a CentOS 5 box.
Regards,
Ranbir
On Wed, 2007-08-22 at 13:50 -0400, Jeffrey Magder wrote:
Could you elaborate on what you mean by "wouldn't work at all"? I'm not sure why you needed the .txt extension.
I don't get any output. That is, issuing this:
$ snmpwalk -v 1 -c gl_tor_151_globser2 204.11.120.77 enterprises.27483
returns absolutely nothing. As soon as I add the ".txt" extension to the openser MIB files, I get this:
SNMPv2-SMI::enterprises.27483.3.1.1.1.1.1.0 = STRING: "SIP/2.0" SNMPv2-SMI::enterprises.27483.3.1.1.1.1.2.0 = Timeticks: (0) 0:00:00.00 SNMPv2-SMI::enterprises.27483.3.1.1.1.1.4.0 = STRING: "(" SNMPv2-SMI::enterprises.27483.3.1.1.1.1.5.1.4.1.4.204.11.120.77.5060 = STRING: "`" SNMPv2-SMI::enterprises.27483.3.1.1.1.1.7.1.2.1 = STRING: "METHOD_INVITE" SNMPv2-SMI::enterprises.27483.3.1.1.1.1.7.1.2.2 = STRING: "METHOD_CANCEL" SNMPv2-SMI::enterprises.27483.3.1.1.1.1.7.1.2.3 = STRING: "METHOD_ACK"
[snip]
Can you show me the contents of your snmp.conf file? (not the snmpd.conf file).
defVersion 2c defCommunity gl_tor_151_globser2 mibdirs /usr/share/snmp/mibs
Also, what version of NetSNMP are you using? (snmpget --version).
NET-SNMP version: 5.3.1
Regards,
Ranbir
After your mibdirs directive in your snmp.conf file, can you try adding:
mibs +ALL
Its possible that it is not reading all MIBS by default.
- JM
Kanwar Ranbir Sandhu wrote:
On Wed, 2007-08-22 at 13:50 -0400, Jeffrey Magder wrote:
Could you elaborate on what you mean by "wouldn't work at all"? I'm not sure why you needed the .txt extension.
I don't get any output. That is, issuing this:
$ snmpwalk -v 1 -c gl_tor_151_globser2 204.11.120.77 enterprises.27483
returns absolutely nothing. As soon as I add the ".txt" extension to the openser MIB files, I get this:
SNMPv2-SMI::enterprises.27483.3.1.1.1.1.1.0 = STRING: "SIP/2.0" SNMPv2-SMI::enterprises.27483.3.1.1.1.1.2.0 = Timeticks: (0) 0:00:00.00 SNMPv2-SMI::enterprises.27483.3.1.1.1.1.4.0 = STRING: "(" SNMPv2-SMI::enterprises.27483.3.1.1.1.1.5.1.4.1.4.204.11.120.77.5060 = STRING: "`" SNMPv2-SMI::enterprises.27483.3.1.1.1.1.7.1.2.1 = STRING: "METHOD_INVITE" SNMPv2-SMI::enterprises.27483.3.1.1.1.1.7.1.2.2 = STRING: "METHOD_CANCEL" SNMPv2-SMI::enterprises.27483.3.1.1.1.1.7.1.2.3 = STRING: "METHOD_ACK"
[snip]
Can you show me the contents of your snmp.conf file? (not the snmpd.conf file).
defVersion 2c defCommunity gl_tor_151_globser2 mibdirs /usr/share/snmp/mibs
Also, what version of NetSNMP are you using? (snmpget --version).
NET-SNMP version: 5.3.1
Regards,
Ranbir
On Wed, 2007-08-22 at 14:41 -0400, Jeffrey Magder wrote:
After your mibdirs directive in your snmp.conf file, can you try adding:
mibs +ALL
Its possible that it is not reading all MIBS by default.
That did it!
[ksandhu@globser2 mibs]$ snmpwalk localhost openserSIPProtocolVersion.0 OPENSER-SIP-COMMON-MIB::openserSIPProtocolVersion.0 = STRING: SIP/2.0
I actually saw that option in the snmp.conf man page, and thought about listing the openser MIBs, but that would have excluded all of the other MIB files. The dumb man page doesn't mention the +ALL for "mibs" at all.
Thanks a lot for your help. Hopefully this thread helps someone else out in the future!
Regards,
Ranbir
No problem, I'm glad I could help! Let me know if you have any other problems.
Cheers!
- Jeffrey Magder
Kanwar Ranbir Sandhu wrote:
On Wed, 2007-08-22 at 14:41 -0400, Jeffrey Magder wrote:
After your mibdirs directive in your snmp.conf file, can you try adding:
mibs +ALL
Its possible that it is not reading all MIBS by default.
That did it!
[ksandhu@globser2 mibs]$ snmpwalk localhost openserSIPProtocolVersion.0 OPENSER-SIP-COMMON-MIB::openserSIPProtocolVersion.0 = STRING: SIP/2.0
I actually saw that option in the snmp.conf man page, and thought about listing the openser MIBs, but that would have excluded all of the other MIB files. The dumb man page doesn't mention the +ALL for "mibs" at all.
Thanks a lot for your help. Hopefully this thread helps someone else out in the future!
Regards,
Ranbir