You can compress interfaces by interface type and by the administrative status of the interface. Compressing interfaces removes them from the ifTable, the ifStackTable, and the ipAddrTable, which increases table retrieval performance. For example, if you want statistics kept only on IP interfaces, then you can compress all interfaces except IP; subsequently, only IP interfaces will appear in the ifTable, the ifStackTable, and the ipAddrTable.
To compress interfaces that have an administrative status of down, use the snmp-server interfaces compress-restriction command.
To compress interfaces according to type, use the snmp-server interfaces compress command. To see the list of interfaces that you can remove, use the CLI help:
- host1(config)#snmp-server interfaces compress
?
- Atm Atm interface layer
- Atm1483 Atm1483 interface layer
- AtmAal5 AtmAal5 interface layer
- . . .
SonetVT SonetVT
interface layer
- VlanMajor VlanMajor interface layer
- VlanSub VlanSub interface layer <cr>
If you enter the snmp-server interfaces compress command without keywords, the following interface types are removed from the interface tables:
snmp-server interfaces compress
- host1(config)#snmp-server interfaces compress
atmAal5
snmp-server interfaces compress-restriction
- host1(config)#snmp-server interfaces compress-restriction
ifadminstatusdown