28.06.2014 Views

Discussion

Discussion

Discussion

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Juniper Networks provides several dozen enterprise MIBs for the JUNOS software.<br />

For a complete list, see http://www.juniper.net/techpubs/software/junos/mibs.html.<br />

From this page, you can download the individual MIBfiles or a complete MIBpackage<br />

that contains the relevant standard MIBs and all the enterprise MIBs. For JUNOS<br />

7.4, this file is called juniper-mibs-7.4R1.tgz (there is a separate file for each JUNOS<br />

release). You can load this complete MIBpackage or the individual MIBfiles onto<br />

your NMS system or MIBbrowser. MIBs often have dependencies because they reference<br />

other MIBs, so when you load them onto the NMS, you need to load them in<br />

the correct sequence. The complete JUNOS MIBpackage places all objects into an<br />

SMI, which is loaded first. All the other information in the MIBfiles reference the<br />

SMI, so the files load correctly.<br />

SNMP Security<br />

SNMPv2 uses a simple security scheme to control the access between managers and<br />

servers. Security is controlled by a community string, which is a password that the<br />

NMS system uses to access the agent’s MIBs. The community string is a very weak<br />

password because it is not encrypted but rather is sent as clear text across the network.<br />

All SNMP requests from the manager to the agent must be configured with the<br />

same community name for the manager to be able to collect information from the<br />

agent. Because the password is not encrypted, the JUNOS SNMP implementation<br />

does not support most SNMP Set operations and read-write MIBobjects, even<br />

those specified as read-write in the MIBRFCs. The exceptions are the ping and the<br />

traceroute MIBs, for which JUNOS supports Set operations. Some additional security<br />

is provided by the fact that you can limit the MIBs and specific objects that the<br />

NMS systems can access on the agent by configuring SNMP views on the router and<br />

granting access to specific views by community (see RFC 3415).<br />

SNMPv3 defines a USM to provide authentication and data encryption. It uses the<br />

HMAC with either MD5 or SHA1 to authenticate users, and CBC-DES to encrypt<br />

the message payload.<br />

4.1 Configuring SNMP<br />

Problem<br />

You want to set the router up to be an SNMP agent so your network SNMPv2 NMS<br />

system can monitor the router.<br />

Solution<br />

Use the following commands to configure the router to be an SNMP agent:<br />

[edit]<br />

aviva@router1# set snmp community public authorization read-only<br />

aviva@router1# show<br />

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

Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.<br />

Configuring SNMP | 133

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

Saved successfully!

Ooh no, something went wrong!