How well do you know the Cisco.
IOW hopefully in this video I'm going to teach you some commands that you don't know.
In this video I'm going to show you some tips and tricks with regards to the Cisco IOW.
Hopefully this will make you a better Cisco network engineer.
A lot of these commands are available in the configurations fundamentals configuration guide Cisco have
multiple examples of the sky and that show you for instance the basics like context sensitive help CLIA
editing shortcuts and features.
But I'm going to show you some more advance stuff please comment below this video and let me know at
which point in the video you'll learn something.
So let's see how far you can get through this video without learning something new.
I'm running a junior 3D topology here.
There are two rotors and a switch.
These are traditional Cisco routers as in they run traditional classic Cisco IOW show version shows
me that the version of operating system that this road is using is 15 dot six to t so classic traditional
Cisco.
IOW nothing spectacular or exceptional about the Cisco IOW these off Cisco viral images that I'm running
with in June S3.
Okay so let's start with something straight away show.
Question mark.
Now show here.
Shows me a whole bunch of commands and I can scroll and scroll and scroll but notice.
Show.
Question mark.
I see more as an option.
Simply typed show.
Question mark when more is displayed I can use multiple options like forward slash.
This allows me to filter for instance for keywords such as CLOs.
So that's what I've typed ISIS is filtering the output of this show command to class map.
More is displayed once again I can use forward slash and for instance search for rad as in radius.
So all I did was type show question mark and notice the output is being filtered forward slash again
the VPN output is filtered to web VPN.
Now you can use this with many commands such as show run so when I type show run most displayed forward
slash type something such as face the output is faulted until face is found as an interface loop back
100 more is displayed forward slash.
Let's look for some things such as network.
This is faltering the output until the first network statement knife purposely used a sub command here
rather than something such as rotor so as an example I could filter for 50 y.
Now some people have said well I've shown them this previously that you could just type show run pipe
section and let's say road a slash V2 y.
As an example and that will show you the router configuration and the V2 y configuration and that's
true.
I'm not trying to tell you which command is better than another.
I'm trying to show you different options.
This shows me the rudder sections as in right at your job.
He wrote a BGP right.
Oh SPF and half got V2 y but notice when I type show run I could.
As an example filter the config for one keyword such as face.
So that's like a section of configuration.
But then I could filter for a different keyword which could be a sub command such as 0 dot 0.
So that's filtering to that which is actually a regular expression.
So let's do forward slash again and see 0 backslash dot 0.
So this is a regular expression saying escaped the special meaning of a dot a dot is any single character
set that matched there.
But I'm going to actually look for zero dot zero and that's filtered down to here so it's not a section
of code it's a sub command and then I could falter for something else.
Let's say log in this is showing me the configuration from a certain point in this example banner log
in.
But what you might have noticed is I've used I think four different search criteria in one show command.
So I'm looking at output and I'm doing multiple searches on that output.
The closest that you can get is perhaps begin so show run pipe begin.
And let's say logging that will show me the running configuration from the word log in as in panel log
in.
But that's all it's gonna give me.
But note I have more here so I could do a search for Viti y or some other kind of keyword.
It's not showing anything here because 50 y was already displayed in this.
No Viti y in the remaining config but what I could use type show run type begin face something further
up in the configuration as an interface and then I could search for Rhoda and then search for something
else 50 y.
So the forward slash come on is fantastic.
It doesn't just work with show run it basically works with any command where you've got more displayed.
So he type to show IP brought more is displayed.
So what I can do is use forward slash and let's search for 170 the show IP roughed output is filtered
to 170 and then I could falter for something else.
Let's say 1 9 2 1 6 8 dot 1 0 5 output is filtered to that point in the IP right command so forth Ford
slash really useful.
Another one that you could use.
Note please I'm gonna just do show question mark here.
Now I'm gonna use plus and let's search for Oro you.
This is filtering all that output to only show me show commands with already you in them.
I might say Well David this is kind of pointless.
But don't restrict your imagination.
Look at what this.
Come on can do and then play around with different options and see what works for you.
The moral of the story is with a command showing more.
You could either use force slash or you could use plus another option is minus where I don't want to
see certain commands.
So I want to remove everything let's say with a unit.
Now that's not a great example so let's do that with writing commands like show IP rot.
So show IP.
Right.
I don't want to see let's say one line to rots the writing table he has been faulted to remove one line.
Let me just show you the whole writing table to make the point.
Show IP rot.
No filtering.
We've got two rights.
We've got 10 rods.
We've got 1 7 2 right.
We've got one eye 2 rights in the writing table here but if I type show IP wrote I could say minus.
Don't show me 1 7 2 Don't show me 1 9 2.
I don't want to see those ruts in the output of this command again you could type show IP Rod pipe include
or let's do exclude which is similar to minus 1 7 2 1 90.
You could do it that way and that will show you equivalent output in this method.
You are doing the command before showing the output in the other method.
I'm typing a command when I see more then I'm deciding what to exclude and I can do that multiple times
with a backslash but I can't do that with a minus or plus but with a backslash I could fall to multiple
times.
OK so show run pipe begin is similar to Forward slash include is similar to plus exclude it's similar
to minus.
OK so that's some basic commands plus minus 40 slash you once again can do that with any commands so
I'll show you one more example and then wrap it up here in BGP I can use question mark BGP question
mark gives me options I could say BGP question mark plus Max.
This only shows me commands with the max keyword in them I faulted the output and again wherever you
are and you use Question Mark and I shouldn't be using show there let me just use question mark in global
config mode with no options.
Wherever you are here you can use Ford slash plus or minus.
So are you as an example here shows me all commands in global config mode that have already you in that
either as the command or as the description of the command.
So if you can just slightly remember you know what a command should give you but you can't remember
the exact command.
You can fall to that way if you want to keep it let's step it up a notch.
Let's enable a Linux commands directly on the Cisco I always now I've discussed this command show processing
fool in this video if you want to see more details have a look at this playlist you can either enable
this globally or you can just enable it on the current terminal.
But what this allows me to do is it allows me to use Linux commands such as cat so show shell functions
shows me options grep is a great one which I'm gonna show you right now.
We've also got interface which I'll show you in a moment.
You've also got an which numbers any line in the output.
Basically there's a whole bunch of things we can do now that you can't typically do with Cisco ISIS
so include exclude commands like that are very limited.
Here we can do nested grips all kinds of interesting things.
So as an example show IP interface brief gives me a list of interfaces on this road.
So there's the command again.
Show IP interface brief bunch of output on the right.
So I'll just do that again.
There's the command.
Yeah.
All the interfaces.
But what I could do now is say grep and only show the interfaces that are up.
So all those interfaces are up this command shows me all up interfaces scrolling up to the previous
command show IP interface brief shows me interfaces but also shows me interfaces that are down.
So these interfaces are currently done but I can do nested grep now remove loop backs from that output.
So show me all interfaces that are up but remove loop back interfaces now you could perhaps just do
it this way.
Show me all interfaces except look back interfaces.
But notice those interfaces are administratively down again use your imagination.
This is a positive match.
This is an exclusion.
So we basically doing an include and then exclude.
Let me show you some more commands that I haven't discussed in other videos.
How about this.
Show me the running configuration but begin with zero slash zero.
This is similar to begin but I'm going to make it more complex in a moment.
But let me push that to more because this is like the Linux you can use more to show one page at a time
so that command that are run there shows the running configuration from this point but it's showing
the entire running configuration and it went by very quickly.
If I push it two more it's going to show me one page at a time.
So there's the command showing one page of output at a time.
But you could say well I could just do that with Begin.
Okay but how about this.
Show me the running configuration beginning at this point but ending at roader.
So in other words scrolling up we're going to start at this point but only show me until this point
when we see writers stop the output.
Okay so let's try that show run.
Pipe grep begin 0 0 grep you wrote it.
There's the output interface gigabit 0.
And notice it ended at the point specified ended at router.
Now again if you don't want it to scroll past if you've got a lot of output you can use more.
So we're doing double reps here and pushing it two more to only show certain parts of the configuration
but you could say David I could just use section like section interface.
But notice the difference with Section interface.
I am seeing a loop back interfaces and then I'm seeing my gigabit interfaces.
What I'm doing with grep here is I'm deciding which section of code I want to see could be a small piece
of code could be a long piece of code and I'm not restricted by what I can search on.
I could for instance search on a exclamation so show me the output from 0 0.
Untold exclamation basically search on anything you want.
Okay so there you go that it didn't previously notice.
It started at gigabit to 0 0 ended at exclamation Y because when you do show run I'll use my forward
slash again like forward slash I showed the conflict from this point until this point.
You basically have the power here to do what you want to search for whichever output you want.
So let's do it from grep to the log in I want to see all the output from 0 0 until log in so all the
output from 0 0 0 slash 0 interface gigabit 00 until log in.
So I see my interfaces I see Rhoda and when I see log in it ends.
So actually I should have done controlled plane there.
So let's do plane because I don't want to get the banner.
So show me all the configuration from zero slash zero until plane.
So there's interface gigabit 0 0 scrolling all the way down until plane the plane control plane.
Come on.
It's typically shown here and the output but I've I don't want to see that.
I just want to see up till that point okay.
But grep is even more powerful.
How about this.
Typically commands are case sensitive but I could say I so face I'm going to put an uppercase notice
please.
That face share is lowercase but I'm going to say ignore.
Case when you use section or include or one of those commands it's case sensitive.
So command such a show run pipe include exclude all case sensitive.
But yeah I've told it show me the running configuration from face face being uppercase all lowercase
don't care until plain something all my loop back interfaces and then I'm seeing gigabit interfaces
up to plain.
Now if you're not sure about options.
Notice man which is a Linux command for manual grep shows me options so there's B match everything in
a file of script pattern.
Dash I will hyphen I ignore.
Case you match everything until a certain pattern V is invoked.
So typically when you do show run pipe include you have to match the case here.
But with grep you don't have to so show run pipe include face.
This matches all lines with the word face in it.
I could say grep i and then my face can be any case I want.
Doesn't matter what the case is here.
That wouldn't work with include so output is the same.
But let's say I want to exclude my look backs so let's use a negative grip.
So V says exclude laidback back interfaces so I'll use dash v loop so show me the ethernet interfaces
but exclude the loop back interfaces.
And there you go.
I'm only seeing gigabit interfaces so that's a really powerful option.
Now this video is unfortunately getting quite long so I'm gonna have to put the more advanced stuff
that I wanted to show you in a separate video but hopefully you found this useful.
Again please comment below and let me know what you've learnt at what timestamp.
Did you actually learn something which commands did you learn.
And as always please would you subscribe to my YouTube channel please would you like this video if you
found it useful please click on the bowl to get notifications when I post a new video.