D
D
Dmitry2016-01-20 14:28:17
Command line
Dmitry, 2016-01-20 14:28:17

How to count lines in Cisco cli?

Greetings.
ios 15.0(2)EX5
How to count lines in Cisco cli after include or exclude?
He thinks so:

Stack01#sh int status | count connected
Number of lines which match regexp = 62

And how to count all Gi interfaces in the connected state?
Doesn't think so:
sh int status | inc Gi*| count connected

somebody knows?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sergrok, 2016-01-20
@dukedizel

Not pretty, but works
sh int status | count Gi.*connected
based on https://supportforums.cisco.com/discussion/1128480...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question