Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

count line output on ios cli

hi all,

i'd like to count my "sh ip dhcp binding".  how do you count that with result as the count?

thanks!

3 REPLIES

count line output on ios cli

Hi,

would "show ip dhcp pool" show what you're looking for?

Pool MYPOOL :

Utilization mark (high/low)    : 100 / 0

Subnet size (first/next)       : 0 / 0

Total addresses                : 254

Leased addresses               : 1

Pending event                  : none

1 subnet is currently in the pool :

Current index        IP address range                    Leased addresses

192.168.1.1          192.168.1.1      - 192.168.1.254     1

Hope that helps

Rolf

New Member

count line output on ios cli

actually this is not the only one i want to count, i just want in general like "sh interfaces status"...

anyway i can grab the logs and paste it on excel...

thanks.

New Member

count line output on ios cli

try putting "count" before the regual expression, example:

show ip int br | count up

2613
Views
2
Helpful
3
Replies