Cisco | Show Running-Config commands

On a Cisco IOS Router you have the comman show running-config this will show you the entire configuration which are currently is configured. How ever beside the show running-config you have some extra commands shown here below:

sh run | ?
  append    Append redirected output to URL (URLs supporting append operation only)
  begin     Begin with the line that matches
  count     Count number of lines which match regexp
  exclude   Exclude lines that match
  format    Format the output using the specified spec file
  include   Include lines that match
  redirect  Redirect output to URL
  section   Filter a section of output
  tee       Copy output to URL

With these options you can see parts of the configuration without searching through the whole configuration.
I saw recently other users using other commands to see what was configured in the configuration. Probably you would know the command options already and if now take advantage of it.
You can use the show running-config command in combination with a configured part of the configuration. Example:

show running-config interface G 0/0
Building configuration...
Current configuration : 184 bytes
!
interface GigabitEthernet0/0
 description Gigabit0
 no ip address
 load-interval 30
 duplex full
 speed 100
 pppoe enable group global
 pppoe-client dial-pool-number 10
end

As you see the configuration command will only show you the configuration of that part of you interface configuration.
There are more commands which are available before you are using the show running-config |

sh run ?
  all            Configuration with defaults
  brief          configuration without certificate data
  class-map      Show class-map information
  control-plane  Show Control-Plane information
  flow           Global Flow configuration subcommands
  full           full configuration
  interface      Show interface configuration
  linenum        Display line numbers in output
  map-class      Show map class information
  partition      Configuration corresponding a partition
  policy-map     Show policy-map information
  view           View options
  vlan           Show L2 VLAN information
  vrf            Show VRF aware configuration
  |              Output modifiers
  <cr>

Most of the time I won’t use it but after today I think different.
 

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.