Removing Interface Sublayers from the ifTable, ifStackTable, and ipAddrTable
You can use the snmp-server interfaces compress command to remove interface sublayers either from all interface tables or from specific table types, such as interface tables and interface stack tables, in the SNMP interface configuration. If you use the snmp-server interfaces compress command on an interface without specifying a table type, it compresses the interface in all the tables. If you compress an interface using the table-type keyword for the first time, subsequent uses of the snmp-server interfaces compress command without the table-type keyword compress the interface only in the ipNetToMediaTable (not in interface tables or interface stack tables).
To remove interface sublayers from interface tables:
- Compress all interfaces on an interface layer, PPP.host1(config)#snmp-server interfaces compress ppp
- Compress the Ds1 interface
in interface stack tables using the table-type keyword. Compress the Atm interface only
in the ipNetToMedia table by subsequently using the snmp-server
interfaces compress command without the table-type keyword.host1(config)#snmp-server interfaces compress Ds1 table-type interface-stack-tableshost1(config)#snmp-server interfaces compress Atm
- Compress interfaces based on the table types by using interface-tables and interface-stack-tables options with the table-type keyword.
The Atm interface is compressed in interface
tables (ifTables) and the Ds1 interface
is compressed in interface stack tables (ifStackTables), but none
of the interfaces are compressed in the ipNetToMediaTable.host1(config)#snmp-server interfaces compress atm table-type interface-tableshost1(config)#snmp-server interfaces compress Ds1 table-type interface-stack-tablesRouter#show snmp interfaces
Compressed(Removed) Interface Types :
From ipNetToMediaTable:
From ifTables : Atm
From ifStackTables : Ds1
Armed Interface Numbering Mode: Sparse ifIndex
Interface Description Setting: Proprietary
You can use the no version of the snmp-server interfaces compress command to add interface sublayers to the interface tables.