[Contents] [Prev] [Next] [Index] [Report an Error]


Configure SNMP

To configure the Simple Network Management Protocol (SNMP), include the following statements at the [edit snmp] hierarchy level of the configuration.

snmp {
    community community-name {
        authorization authorization ; 
        clients {
            address restrict;
        }
        view view-name;
    }
    contact contact ; 
    description description ; 
    engine-id {
        (local engine-id | use-fxp0-mac-address | use-default-ip-address);
    }
    interface [ interface-names ]; 
    location location ; 
    name name;
    nonvolatile {
        commit-delay seconds;
    }
    rmon {
        alarm index {
            description text-description;
            falling-event-index index;
            falling-threshold integer;
            interval seconds;
            rising-event-index index;
            falling-threshold integer;
            sample-type type;
            startup-alarm alarm;
            variable oid-variable;
        }
        event index {
            community community-name;
            description text-description;
            sample-type type;
        }
    }
    traceoptions { 
        file size size files number;
        flag flag; 
    }
    trap-group group-name {
        categories [ categories ]; 
        destination-port <port-number>;
        targets {
            address;
        }
        version (all | v1 | v2);
    }
    trap-options {
        agent-address outgoing-interface;
        source-address address;
    }
    view view-name; {
        oid object-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.

By default, SNMP is disabled.

This chapter describes the minimum required configuration and discusses the following tasks for configuring SNMP:


[Contents] [Prev] [Next] [Index] [Report an Error]