Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All
     

    Related Documentation

     

    Adding a Group of Clients to an SNMP Community

    Junos OS enables you to add one or more groups of clients to an SNMP community. You can include the client-list-name name statement at the [edit snmp community community-name] hierarchy level to add all the members of the client list or prefix list to an SNMP community.

    To define a list of clients, include the client-list statement followed by the IP addresses of the clients at the [edit snmp] hierarchy level:

    [edit snmp]client-list client-list-name {ip-addresses;}

    You can configure a prefix list at the [edit policy options] hierarchy level. Support for prefix lists in the SNMP community configuration enables you to use a single list to configure the SNMP and routing policies. For more information about the prefix-list statement, see the Routing Policy Configuration Guide.

    To add a client list or prefix list to an SNMP community, include the client-list-name statement at the [edit snmp community community-name] hierarchy level:

    [edit snmp community community-name]client-list-name client-list-name;

    Note: The client list and prefix list must not have the same name.

    The following example shows how to define a client list:

    [edit]
    snmp {client-list clentlist1 {10.1.1.1/32;10.2.2.2/32;}}

    The following example shows how to add a client list to an SNMP community:

    [edit]
    snmp {community community1 {authorization read-only;client-list-name clientlist1;}}

    The following example shows how to add a prefix list to an SNMP community:

    [edit]
    policy-options {prefix-list prefixlist {10.3.3.3/32;10.5.5.5/32;}}
    snmp {community community2 {client-list-name prefixlist;}}
     

    Related Documentation

     

    Published: 2013-08-09