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.

snmp {<br />

community public {<br />

authorization read-only;<br />

}<br />

}<br />

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

To make the router an SNMP agent, configure one or more communities to authorize<br />

the NMS to access your router. Each community has a name, which must be the<br />

same name used by the NMS, and an authorization level (read-only or read-write).<br />

Here, we have configured one community called public with read-only access, which<br />

means that the router responds only to Get requests from the NMS system.<br />

Use the following command to check that SNMP is up and running, that requests are<br />

being properly transmitted, and that the number of requests is incrementing over time:<br />

aviva@router1> show snmp statistics<br />

SNMP statistics:<br />

Input:<br />

Packets: 24044, Bad versions: 0, Bad community names: 0,<br />

Bad community uses: 0, ASN parse errors: 0,<br />

Too bigs: 0, No such names: 0, Bad values: 0,<br />

Read onlys: 0, General errors: 0,<br />

Total request varbinds: 24041, Total set varbinds: 0,<br />

Get requests: 3, Get nexts: 24041, Set requests: 0,<br />

Get responses: 0, Traps: 0,<br />

Silent drops: 0, Proxy drops: 0, Commit pending drops: 0,<br />

Throttle drops: 0, Duplicate request drops: 0<br />

V3 Input:<br />

Unknown security models: 0, Invalid messages: 0<br />

Unknown pdu handlers: 0, Unavailable contexts: 0<br />

Unknown contexts: 0, Unsupported security levels: 0<br />

Not in time windows: 0, Unknown user names: 0<br />

Unknown engine ids: 0, Wrong digests: 0, Decryption errors: 0<br />

Output:<br />

Packets: 24044, Too bigs: 0, No such names: 3,<br />

Bad values: 0, General errors: 0,<br />

Get requests: 0, Get nexts: 0, Set requests: 0,<br />

Get responses: 24044, Traps: 0<br />

The output shows the number and types of packets the router has received from and<br />

sent to the NMS. If you see any bad (invalid) community names, or if the number of<br />

names increases, this can indicate that one or more community names are configured<br />

incorrectly, or that an unauthorized manager, possibly a malicious user, is trying<br />

to access the agent.<br />

134 | 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!