snmp-server enable

Configures SNMP access only to specific clients.
Syntax
snmp-server enable ethernet stack/slot/port [ to stack/slot/port | [ ethernet stack/slot/port to stack/slot/port | ethernet stack/slot/port ] ... ]
no snmp-server enable ethernet stack/slot/port [ to stack/slot/port | [ ethernet stack/slot/port to stack/slot/port | ethernet stack/slot/port ] ... ]
snmp-server enable vlan vlan-id
no snmp-server enable vlan vlan-id
Command Default

SNMP access is not restricted.

Parameters
ethernet stack/slot/port
Specifies the Ethernet interface on which web management should be enabled.
to stack/slot/port
Specifies the range of Ethernet interfaces.
vlan vlan-id
Specifies that web management should be enabled on the clients of the specified VLAN.
Modes

Global configuration mode

Usage Guidelines

The no form of the command removes the SNMP access restriction.

Examples

The following example configures the SNMP access only to a client in VLAN 40.

device(config)# snmp-server enable vlan 40

The following example configures SNMP access to a range of Ethernet interfaces.

device(config)# snmp-server enable ethernet 1/1/1 to ethernet 1/1/5