Configure 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-fxp0-mac-address | use-default-ip-address);}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;sample-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 Configure 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
- Configure the System Contact
- Configure the System Location
- Configure the System Description
- Configure the Commit Delay Timer
- Configure the System Name
- Configure the SNMP Community String
- Configure SNMP Trap Options and Groups
- Configure the Interfaces on Which SNMP Requests Can Be Accepted
- Configure MIB Views
- Trace SNMP Activity
- Configure the Local Engine ID