cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1279
Views
0
Helpful
1
Replies

bgp neighbor count

rpeasah
Level 1
Level 1

The show ip bgp summary will produce a listing of neighbors but I'm looking for a way to get a count of the neighbors. Anyone knows of a way to do that?

1 Accepted Solution

Accepted Solutions

Dan Frey
Cisco Employee
Cisco Employee

Pipe has a count option.

#sh ip bgp sum | count ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+
Number of lines which match regexp = 5

 

View solution in original post

1 Reply 1

Dan Frey
Cisco Employee
Cisco Employee

Pipe has a count option.

#sh ip bgp sum | count ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+
Number of lines which match regexp = 5