Configuring SNMP
To configure the Simple Network Management Protocol (SNMP), include the following statements at the
[edit snmp]hierarchy level of the configuration:snmp {communitycommunity-name{authorizationauthorization;clients {addressrestrict;}viewview-name;}contactcontact;descriptiondescription;engine-id {(localengine-id| use-mac-address | use-default-ip-address);}filter-duplicates;interface [interface-names];locationlocation;namename;nonvolatile {commit-delayseconds;}rmon {alarmindex{descriptiontext-description;falling-event-indexindex;falling-thresholdinteger;intervalseconds;rising-event-indexindex;falling-thresholdinteger;sample-typetype;startup-alarmalarm;variableoid-variable;}eventindex{communitycommunity-name;descriptiontext-description;typetype;}}traceoptions {file sizesizefilesnumber;flagflag;}trap-groupgroup-name{categories [categories];destination-port <port-number>;targets {address;}version (all | v1 | v2);}trap-options {agent-address outgoing-interface;source-addressaddress;}viewview-name; {oidobject-identifier(include | exclude);)}For information about configuring Remote Monitoring (RMON) alarms and events, see Configuring RMON Alarms and Events and Summary of RMON Alarm and Event Configuration Statements.
This chapter describes the minimum required configuration and discusses the following tasks for configuring SNMP:
- Minimum SNMP Configuration
- Configuring the System Contact
- Configuring the System Location
- Configuring the System Description
- Filtering Duplicate SNMP Requests
- Configuring the Commit Delay Timer
- Configuring the System Name
- Configuring the SNMP Community String
- Configuring SNMP Trap Options and Groups
- Configuring the Interfaces on Which SNMP Requests Can Be Accepted
- Configuring MIB Views
- Tracing SNMP Activity
- Configuring the Local Engine ID