Chapter2Cisco IOS Commands for the Catalyst 4500 Series Switches
snmp ifindex clear
2-413
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
78-16201-01
snmp ifindex clear
To clear any previously configured snmp ifindex commands that were entered for a specific interface,
use the snmp ifindex clear command.
snmp ifindex clear
Syntax Description This command has no arguments or keywords.
Defaults This command has no default settings.
Command Modes Interface configuration mode
Command History
Usage Guidelines Interface index persistence occurs when ifIndex values in the interface MIB (IF-MIB) persist across
reboots and allow for consistent identification of specific interfaces using SNMP.
Use the snmp ifindex clear command on a specific interface when you want that interface to use the
global configuration setting for ifIndex persistence. This command clears any ifIndex configuration
commands previously entered for that specific interface.
Examples This example shows how to enable ifIndex persistence for all interfaces:
Router(config)# snmp-server ifindex persist
This example shows how to disable IfIndex persistence for FastEthernet 1/1 only:
Router(config)# interface fastethernet 1/1
Router(config-if)# no snmp ifindex persist
Router(config-if)# exit
This example shows how to clear the ifIndex configuration from the FastEthernet 1/1 configuration:
Router(config)# interface fastethernet 1/1
Router(config-if)# snmp ifindex clear
Router(config-if)# exit
As a result of this sequence of commands, ifIndex persistence is enabled for all interfaces that are
specified by the snmp-server ifindex persist global configuration command.
Related Commands snmp ifindex persist
snmp-server ifindex persist
Release Modification
12.1(19)EW Support for this command was introduced on the Catalyst4500 series switches.