snmp-server interface subset 10 regular-expression "^Gig[a-zA-Z]+(0/[0-9]/0/[0-1] $)"
notification linkupdown
!
snmp-server interface subset 100 regular-expression "^Gig[a-zA-Z]+[0-9/]+."
notification linkupdown disable
!
snmp-server interface subset 110 regular-expression "^Mgmt[a-zA-Z]+[0-9/]+."
notification linkupdown disable
!查看比對結果:
show snmp interface regular-expression "^Gig[a-zA-Z]+(0/[0-9]/[0-1]/[
Wed Dec 19 14:40:34.358 CST
ifName : GigabitEthernet0/0/0/0 ifIndex: 105
ifName : GigabitEthernet0/0/0/1 ifIndex: 106
ifName : GigabitEthernet0/0/1/0 ifIndex: 124
ifName : GigabitEthernet0/0/1/1 ifIndex: 125
ifName : GigabitEthernet0/7/1/0 ifIndex: 144
ifName : GigabitEthernet0/7/1/1 ifIndex: 145
ifName : GigabitEthernet0/7/0/0 ifIndex: 164
ifName : GigabitEthernet0/7/0/1 ifIndex: 165
沒有留言:
張貼留言