[c-nsp] show cdp neighbors

Andrew Miehs andrew at 2sheds.de
Fri Sep 30 09:09:31 EDT 2011


On Fri, Sep 30, 2011 at 3:02 PM, Peter Rathlev <peter at rathlev.dk> wrote:

> AFAIK you cannot have "show cdp neighbors" put everything in one line.
>

It works if the hostname isn't very long.



>
> What are you trying to achieve? If you're looking for a specific
> neighbor and are used to using
>
>  show cdp neighbors | include longswitchname
>

exactly


> you could instead (on newer versions of IOS) use
>
>  show cdp neighbors | section longswitchname
>

Ah - thank you! Wasn't aware of "section"

Best regards

Andrew


More information about the cisco-nsp mailing list