28.06.2014 Views

Discussion

Discussion

Discussion

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

You might want to give access to all MIBbranches except the two in which the<br />

JUNOS software allows SNMP Set operations, the ping and traceroute MIB<br />

branches:<br />

[edit snmp]<br />

aviva@router1# set view ping-traceroute-exclude oid jnxPingMIB exclude<br />

aviva@router1# set view ping-traceroute-exclude oid jnxTraceRouteMIB exclude<br />

aviva@router1# set community public view ping-traceroute-exclude<br />

4.7 Extracting Software Inventory Information<br />

with SNMP<br />

Problem<br />

You want to use SNMP to retrieve software version information from the router.<br />

Solution<br />

From an NMS system, use the snmpwalk command:<br />

aviva-server1% snmpwalk 192.168.15.1 public .1.3.6.1.2.1.25.6.3<br />

...<br />

host.hrSWInstalled.hrSWInstalledTable.hrSWInstalledEntry.hrSWInstalledName.2 = "JUNOS<br />

Base OS Software Suite [7.4R1.7.0]"<br />

host.hrSWInstalled.hrSWInstalledTable.hrSWInstalledEntry.hrSWInstalledName.3 = "JUNOS<br />

Kernel Software Suite [7.4R1.7.0]"<br />

host.hrSWInstalled.hrSWInstalledTable.hrSWInstalledEntry.hrSWInstalledName.4 = "JUNOS<br />

Packet Forwarding Engine Support (M20/M40) [7.4R1.7.0]"<br />

host.hrSWInstalled.hrSWInstalledTable.hrSWInstalledEntry.hrSWInstalledName.5 = "JUNOS<br />

Routing Software Suite [7.4R1.7.0]"<br />

host.hrSWInstalled.hrSWInstalledTable.hrSWInstalledEntry.hrSWInstalledName.6 = "JUNOS<br />

Online Documentation [7.4R1.7.0]"<br />

host.hrSWInstalled.hrSWInstalledTable.hrSWInstalledEntry.hrSWInstalledName.7 = "JUNOS<br />

Crypto Software Suite [7.4R1.7.0]"<br />

host.hrSWInstalled.hrSWInstalledTable.hrSWInstalledEntry.hrSWInstalledName.9 = "JUNOS<br />

Support Tools Package [7.4R1.7.0]"<br />

From the router, use the following equivalent command:<br />

aviva@router1> show snmp mib walk .1.3.6.1.2.1.25.6.3<br />

hrSWInstalledName.2 = JUNOS Base OS Software Suite [7.4R1.7.0]<br />

hrSWInstalledName.3 = JUNOS Kernel Software Suite [7.4R1.7.0]<br />

hrSWInstalledName.4 = JUNOS Packet Forwarding Engine Support (M20/M40) [7.4R1.7.0]<br />

hrSWInstalledName.5 = JUNOS Routing Software Suite [7.4R1.7.0]<br />

hrSWInstalledName.6 = JUNOS Online Documentation [7.4R1.7.0]<br />

hrSWInstalledName.7 = JUNOS Crypto Software Suite [7.4R1.7.0]<br />

hrSWInstalledName.9 = JUNOS Support Tools Package [7.4R1.7.0]<br />

Extracting Software Inventory Information with SNMP | 141<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!