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.

Solution<br />

For the chassis events, first configure the trap notification:<br />

[edit snmp v3]<br />

aviva@router1# set notify chassis-notification-list type trap<br />

aviva@router1# set notify chassis-notification-list tag chassis-trap-receivers<br />

Next, define the traps to send:<br />

[edit snmp v3]<br />

aviva@router1# set notify-filter chassis-traps oid jnxChassisTraps include<br />

aviva@router1# set notify-filter chassis-traps oid jnxChassisOKTraps include<br />

Identify the NMS systems (the targets) to receive the traps:<br />

[edit snmp v3]<br />

aviva@router1# edit target-address nms1<br />

[edit snmp v3 target-address nms1]<br />

aviva@router1# set address 10.0.10.1<br />

aviva@router1# set tag-list chassis-trap-receivers<br />

aviva@router1# set target-parameters nms1-parameters<br />

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

sending the traps:<br />

[edit snmp v3]<br />

aviva@router1# edit target-parameters nms1-parameters<br />

[edit snmp v3 target-parameters nms1-parameters]<br />

aviva@router1# set parameters message-processing-model v3<br />

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

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

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

aviva@router1# set notify-filter chassis-traps<br />

To set up traps that correspond to the JUNOS configuration management MIB<br />

extension we showed in Recipe 4.14, configure them in a similar way. First, set up<br />

the trap notification:<br />

[edit snmp v3]<br />

aviva@router1# set notify config-notification-list type trap<br />

aviva@router1# set notify config-notification-list tag config-trap-receivers<br />

Next, define the trap to send:<br />

[edit snmp v3]<br />

aviva@router1# set notify-filter config-traps oid jnxCmNotifications include<br />

Specify the NMS systems to receives the traps:<br />

[edit snmp v3]<br />

aviva@router1# set target-address nms2 address 192.168.15.27<br />

aviva@router1# set target-address nms2 tag-list config-trap-receivers<br />

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

158 | Chapter 4: SNMP<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!