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

Nexos (e)GREP information required

andy griffin
Level 1
Level 1

                   Guys,  is there any information published on nexus egrep / grep. Specifially I need a conditional OR statement to work ; i.e. to grep against switch logs to give a listing of both "log statement a" and "log statement b".

1 Reply 1

Andras Dosztal
Level 3
Level 3

sh log | egrep "option a|option b"

Welcome to Linuxland. :) You can find many other info in grep's manpage and on sites about regular expressions.
A few words on the command but not the regex can be found here: http://www.cisco.com/en/US/docs/switches/datacenter/sw/5_x/nx-os/fundamentals/configuration/guide/b_Cisco_Nexus_7000_Series_NX-OS_Fundamentals_Configuration_Guide_Release_5.x_chapter_0100.html#con_1230640

Sent from Cisco Technical Support Android App