Cisco filtrar o output

Para filtrar o output dos comandos usamos:

Include (Para incluir)
Exclude (Para excluir)
Selection (incluir ou excluir um secção)


Por exemplo da seguinte forma:

Para mostrar todos os interfaces, mas só obter o nome dos interfaces:

Router# show running-config | include interface
 interface Ethernet0/0
 interface Ethernet1/0
 interface Serial2/0
 interface Serial3/0#Code language: Bash (bash)

Mostrar todos os interfaces e as suas secções:

Router# show running-config | section include interface
interface Ethernet0/0
shutdown
no cdp enable
 interface Ethernet1/0
shutdown
no cdp enable
interface Serial2/0
shutdown
no cdp enable
 interface Serial3/0
shutdown
no cdp enableCode language: Bash (bash)

Follow SOS-Admins on Google

SOS-Admins is your ultimate source for the latest updates, exclusive guides, and news. Don t miss our upcoming content, add us to your favorites and stay connected with the community on Google!