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

Adding a Group of Clients to an SNMP Community

The JUNOS software 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 on the prefix-list statement, see the JUNOS Policy Framework 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.

Example: Defining a Client List

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

Example: Adding a Client List to an SNMP Community

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

Example: Adding 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;
}
}

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