Vyatta Network OS Documentation

Learn how to install, configure and operate the Vyatta NOS, which helps drive our virtual networking & physical platforms portfolio.

service snmp community <community>

Defines an SNMP community.

set service snmp community community [ authorization auth | client addr | network net ]
delete service snmp community community [ authorization | client | network ]
show service snmp community community [ authorization | client | network ]

By default, no community is defined.

community
Multi-node. An SNMP community. The argument is the community string to be used to authorize SNMP managers making requests of this system. Letters, numbers, and hyphens are supported.

You can define more than one community by creating multiple community configuration nodes.

auth
Optional. The privileges for the community. The privileges are as follows:
ro
The community can view system information, but not change it. This is the default privilege.
rw
The community can read and write information.

The default privileges are ro.

addr
Optional. Multi-node. The IPv4 or IPv6 address of an SNMP client in the community that is authorized to access the system.

You can define more than one client by creating the client configuration node multiple times.

net
Optional. Multi-node. The IPv4 or IPv6 network of SNMP networks in the community that are authorized to access the server.

You can define more than one network by creating the network configuration node multiple times.

Configuration mode

service {
    snmp {
        community community {
            authorization auth 
            client addr 
            network net
        }
    }
}

Use this command to define an SNMP community.

If no SNMP clients or networks are explicitly defined, then any client presenting the correct community string is granted the access privilege specified by the authorization option. If a client or network is defined, then only explicitly listed clients or networks are granted access to the system.

Use the set form of this command to define an SNMP community.

Use the delete form of this command to remove SNMP community configuration or to restore the default value of an option.

Use the show form of this command to view SNMP community configuration.