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.

Finally, configure which traps the NMS systems receive and the security used when<br />

sending the traps:<br />

[edit snmp v3]<br />

aviva@router1# set target-parameters nms2-parameters notify-filter config-traps<br />

aviva@router1# set target-parameters nms2-parameters parameters message-processingmodel<br />

v3<br />

aviva@router1# set target-parameters nms2-parameters parameters security-model usm<br />

aviva@router1# set target-parameters nms2-parameters parameters security-level<br />

privacy<br />

aviva@router1# set target-parameters nms2-parameters parameters security-name nms2<br />

<strong>Discussion</strong><br />

The configuration of SNMPv3 traps is much more involved than for SNMPv2, so<br />

let’s look at each step of the process. The first part of this recipe sets up traps for the<br />

objects related to the hardware chassis components.<br />

First, configure a notification. SNMPv3 defines two types of notifications: informational<br />

and trap. You want to set type trap. You’ll also want to name the notification<br />

with the tag statement (here, chassis-trap-receivers) so that later in the configuration,<br />

you can associate the trap type with the NMS system that will be receiving the<br />

traps.<br />

Second, create a filter that identifies which traps are sent to the NMS. Here, the filter<br />

named chassis-traps sends all traps from the Juniper chassis MIB.<br />

Next, define the NMS systems to receive the trap notifications in the target-address<br />

statement hierarchy. Each target has a name, here nms1, which is the username of the<br />

NMS (also referred to as the security name). Then set the NMS system’s address and<br />

associate a tag list and security parameters with it. Here, we associate the chassistrap-receivers<br />

tag and the nms1-parameters security parameters, which we define<br />

next.<br />

Finally, associate a trap notification filter with the target NMS system (here, the<br />

chassis-traps filter) and define the security to use in all trap message exchanges.<br />

SNMPv3 security has three components: the message-processing model, the security<br />

model, and the security level. The processing model is SNMPv1, SNMPv2, or SNMPv3,<br />

which corresponds to the v1, v2, and v3 options of the message-processing-model statement.<br />

The security model is SNMPv1, SNMPv2, or USM, corresponding to the v1,<br />

v2c, and usm options of the security-model statement. Finally, the security level can<br />

be noAuthnoPriv, authNoPriv, orauthPriv, which match the none, authentication, and<br />

privacy options of the security-level statement. Bundled in with defining the security<br />

parameters is the username (security name) of the receiving NMS system. Here,<br />

the security-name nms1 statement associates the security parameters with the system<br />

we defined in the target-address nms1 statement hierarchy.<br />

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

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

Setting Up SNMPv3 Traps | 159

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

Saved successfully!

Ooh no, something went wrong!