show running-config

Use this command to display or capture the current setting of different protocol packages supported on the switch. This command displays or captures commands with settings and configurations that differ from the default value. To display or capture the commands with settings and configurations that are equal to the default value, include the all option.

Note

Note

Show running-config does not display the User Password, even if you set one different from the default.

The output is displayed in script format, which can be used to configure another switch with the same configuration. If the optional scriptname is provided with a file name extension of “.scr”, the output is redirected to a script file.

Note

Note

If you issue the show running-config command from a serial connection, access to the switch through remote connections (such as Telnet) is suspended while the output is being generated and displayed.
Note

Note

If you use a text-based configuration file, the show running-config command only displays configured physical interfaces (that is, if any interface only contains the default configuration, that interface will be skipped from the show running-config command output). This is true for any configuration mode that contains nothing but default configuration. That is, the command to enter a particular config mode, followed immediately by its exit command, are both omitted from the show running-config command output (and hence from the startup-config file when the system configuration is saved).

Use the following keys to navigate the command output.

Key Action
[Enter] Advance one line.
[Space Bar] Advance one page.
[q] Stop the output and return to the prompt.

Note that --More-- or (q)uit is displayed at the bottom of the output screen until you reach the end of the output.

This command captures the current settings of OSPFv2 and OSPFv3 (Open Shortest Path First version 3) trapflag status:

  • If all the flags are enabled, then the command displays trapflags all.
  • If all the flags in a particular group are enabled, then the command displays trapflags group name all.
  • If some, but not all, of the flags in that group are enabled, the command displays trapflags groupname flag-name.

Format show running-config [all | scriptname]
Mode Privileged EXEC