Specifications
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
snmp ifindex clear
2-793
Catalyst 4500 Se ries S wit ch C is co IO S C om mand R efer ence —Re lease I OS XE 3 .3.0 XO(1 5.1 (1)XO)
OL_28738 -01
2.2
snmp ifindex clear
To clear any previously configured snmp ifindex commands that we re entered for a spec ific 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 configur ation mode
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 c ommand 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 a ll interfaces:
Router(config)# snmp-server ifindex persist
This example shows how to disable IfIndex per sistence for FastEthe rnet 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 co nfiguration from the FastEthernet 1/1 configura tion:
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 Command Description
snmp ifindex persist Enables ifIndex values in the Interfaces MIB (IF-MIB) that
persist across reboots (ifInde x persistence) on a specif ic
interface.
snmp-server ifindex persist Enables ifIndex values that will remain co nstant across
reboots for use by SNMP.