is there any IOS command to count active interface connection. like to know how many t1 connection I have on my router. I'm trying to write a script. instead of showing all connection(show int desc) just
let say have 20 active connection on routers.thanks
Or, try this - "sh int summary" where "*" means the interface is UP:
NETFTLWRT01#sh int summ | incl \* | excl rfac
* FastEthernet0/0 0 0 0 0 1000 2 1000 2 0
* FastEthernet0/0.100 - - - - - - - - -
* FastEthernet0/0.200 - - - - - - - - -
* Serial0/0 0 0 0 0 2000 4 2000 3 0
Normally u can filter the output of the issued show command using |.
For instance to show the ports are up.
show ip int brief | inc up
Hope it helps, rate if does,