You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
Version 1
Next »
The OIDs for a particular Sonus Enterprise MIB can be retrieved by running snmpwalk
command in Linux. The OIDs can also be retrieved through MIB browser or any SNMP manager. SNMP uses five basic messages for communication between the manager and agent, one of which is the GET request that is used to query for information on or about a network entity. The snmpwalk
command uses Getnext request. SBC responds with a Get response that includes the index and the value of the next object.
Execute the snmpwalk
command in the following operating system to retrieve the OIDs:
Linux:
snmpwalk -v 2c -c <community string> <sbc ip> <oid>
Solaris:
/usr/sfw/bin/snmpwalk -v 2c -c <community string> <sbc ip> <oid>
SBC SWe is running on various hardware platforms. Thus, the timeout value must be adjusted based on the hardware type if snmpwalk
command is used for SBC SWe.
For more information on SNMP, refer to the RFC 3411 http://www.rfc-editor.org/rfc/rfc3411.txt.
Retrieving OIDs Using Sonus Insight EMS
To run the snmppwalk
command in EMS:
Retrieving OIDs Using a Linux Server
Copy the MIBs to the Linux server and execute the following commands in the server to retrieve the OIDs:
snmpwalk:
# snmpwalk -c <community> -v2c -M /path/to/mib/dir -mall SBC-HOST <OID>
Example:
# snmpwalk -c admin -v2c -On -M /home/user1/mymibs/std-mibs/:/home/user1/mymibs/sonus-mibs/ -mall 10.54.170.27 sonusAddressContextTable
.1.3.6.1.4.1.2879.2.10.2.1.1.1000.7.100.101.102.97.117.108.116 = INTEGER: 0
.1.3.6.1.4.1.2879.2.10.2.1.1.1000.14.65.68.68.82.95.67.79.78.84.69.88.84.95.49 = INTEGER: 0
# snmpwalk -c admin -v2c -M /home/user1/mymibs/std-mibs/:/home/user1/mymibs/sonus-mibs/ -mall 10.54.170.27 sonusAddressContextTable
SONUS-ADDRESS-CONTEXT::sonusAddressContextDummy."default" = INTEGER: 0
SONUS-ADDRESS-CONTEXT::sonusAddressContextDummy."ADDR_CONTEXT_1" = INTEGER: 0
snmpget:
# snmpget -c admin -v2c -M /path/to/mib/dir -mall SBC-HOST <OID>
Example:
# snmpget -c admin -v2c -M /home/user1/mymibs/std-mibs/:/home/user1/mymibs/sonus-mibs/ -mall 10.54.170.27 sysDescr.0
RFC1213-MIB::sysDescr.0 = STRING: "Sonus SBC 5200 version sbc-V05.00.00-A233.x86_64"
snmpgetnext:
# snmpgetnext -c admin -v2c -M /path/to/mib/dir -mall SBC-HOST <OID>
Example:
# snmpgetnext -c admin -v2c -M /home/user1/mymibs/std-mibs/:/home/user1/mymibs/sonus-mibs/ -mall 10.54.170.27 sysObjectID
RFC1213-MIB::sysObjectID.0 = OID: SONUS-SMI::sonusSBC5200
Retrieving OIDs Using SNMP Browser
SNMP browser is used to retrieve the OIDs. Following are the few examples showing the OIDs for Sonus Enterprise MIBs.
Example 1
Retrieving the OIDs for Address Context MIB
Most of the Sonus Enterprise MIB tables use strings for their indexes. A string in SNMP is a series of OID values. The first OID is the length of the string. The following OIDs are the characters encoded in ASCII. Therefore, a string is encoded as a length followed by ASCII characters. To decode the values, refer to ASCII table.
To retrieve the OID further, the GETNEXT request is used in SNMP browser. By using this request, the following OIDs can be retrieved:
- 1.3.6.1.4.1.2879.2.10.2.9.1.1.7.100.101.102.97.117.108.116.4.76.73.70.49
- 1.3.6.1.4.1.2879.2.10.2.9.1.1.7.100.101.102.97.117.108.116.4.76.73.70.50
By using the ASCII table, the OIDs can be decoded as follows:
- 1.3.6.1.4.1.2879.2.10.2.9.1.1.7(length of 7).100(d).101(e).102(f).97(a).117(u).108(l).116(t).4(length of 4).76(L).73(I).70(F).49(1)
- 1.3.6.1.4.1.2879.2.10.2.9.1.1.7(length of 7).100(d).101(e).102(f).97(a).117(u).108(l).116(t).4(length of 4).76(L).73(I).70(F).50(2)
Example 2
Retrieving the OIDs for System MIB
Most of the Sonus Enterprise MIB tables use strings for their indexes. A string in SNMP is a series of OID values. The first OID is the length of the string. The following OIDs are the characters encoded in ASCII. Therefore, a string is encoded as a length followed by ASCII characters. To decode the values, refer to ASCII table.
To retrieve the OIDs further, the GETNEXT request is used to retrieve the OID.
By using the ASCII table, the OID can be decoded as follows:
- 1.3.6.1.4.1.2879.2.8.5.1.5.1.3.5(length of 5).72(H).111(o).110(n).100(d).97(a).0(NUL)