C i s c o C o n f i d e n t i a l - B e t a R e v i e w R 3 . 7. 1
SNMP Server Commands on Cisco IOS XR Software
snmp-server target list
SMR-625
Cisco ASR 14000 Series Router System Management Command Reference
OL-17231-01
snmp-server target list
To create an Simple Network Management Protocol (SNMP) target list, use the
snmp-server target list
command in global configuration mode. To remove a target list, use the
no
form of this command.
snmp-server target list
target-list
{
vrf
vrf-name
|
host
hostname
}
no snmp-server target list
target-list
Syntax Description
Defaults
No default behavior or values
Command Modes
Global configuration
Command History
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes the proper
task IDs.
Use this command to create an SNMP target list and assign hosts to the list. When a target list is mapped
to a community name using the
command, SNMP access is restricted to
the hosts in the target list (for that community name).
Task ID
Examples
The following example, a new target list “sample3” is created, and assigned to the vrf server “server2”:
RP/0/RP0/CPU0:Router(config)#
snmp-server target list sample3 vrf server2
Related Commands
target-list
Name of the target list.
vrf
vrf-name
Specifies the name of the VRF hosts included in the target list.
host
hostname
Assigns a hostname to the target list. The
hostname
variable is a name or
IPv4 address.
Release
Modification
Release 3.7.1
This command was introduced on the Cisco ASR 14000 Series Router.
Task ID
Operations
snmp
read, write
Command
Description
Associates an SNMP community with an SNMP context, security name, or
a target list.