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


Configure SNMP

To configure SNMP, include the following statements at the [edit snmp] hierarchy level of the configuration.

snmp {
    access {
        context context-name {
            description description;
            group group-name {
                model usm;
                read-view view-name;
                security-level (none | authentication | privacy);
                write-view view-name;
            }
        }
        group group-name {
            model usm;
            user [ user-names ];
        }
        user user-name {
            authentication-password authentication-password;
            authentication-type (none | md5 | sha};
            privacy-password privacy-password;
            privacy-type (none | des);
            clients {
                address restrict;
            }
        }
    }
    community community-name {
        authorization authorization; 
        clients {
            address restrict;
        }
        view view-name;
    }
    contact contact; 
    description description; 
    engine-id {
        local engine-id;
    }
    interface [ interface-names ]; 
    location location; 
    name name;
    traceoptions {
        file size size files number;
        flag flag;
    }
    rmon {
        alarm index {
            description text-description;
            falling-event-index index;
            falling-threshold integer;
            interval seconds;
            rising-event-index index;
            rising-threshold integer;
            sample-type type;
            startup-alarm alarm;
            variable oid-variable;
        }
        event index {
            community community-name;
            description text-description;
            sample-type (for RMON Events) 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]