Friday, July 3, 2009

File/Data retrive from NE

In some case to get the data, we have to retrieve it from NE directly.
Below will be some sample of how to get data from NE, specially performance data.

SNMP Data.
any data for SNMP protocol will store at OID (Object ID) in MIB Files, to get it we should used SNMP Browser. From SNMP Browser (i.e. Advannet) we should add the MIB files and than go to the specific OID. When retrieve command click the MIB Browser will do snmpwalk to NE and get the Data for those particular OID (this is how the MIB browser worked). Manually we are also can do snmpwalk directly using bellow command:
snmpwalk -v 1 -c public 192.161.x.xxx 1.3.6.1.4.1.9.2.1.57
desc:
-v = using SNMP Version
1 = is the version value
-c = using community string
public = community string value
1.3.6.1.4.1.9.2.1.57 = OID (Object ID)


Sample snmpwalk command
  • snmpwalk -v 1 -c public 192.161.x.xxx
  • Will get all the data from those ip under public community string
  • snmpwalk -v 1 -c public 192.161.x.xxx 1.3.6.1.4.1.9.2.1.57
  • Will get all the data under this 1.3.6.1.4.1.9.2.1.57 OID
  • snmpwalk -v 1 -c public 192.161.x.xxx 1.3.6.1.4.1.9.2.1.57.1
  • Will get all the data only from this 1.3.6.1.4.1.9.2.1.57 OID

0 comments:

Post a Comment