To display the contents of NVRAM (if present and valid) or to show the configuration file pointed to by the CONFIG_FILE environment variable, use the show startup-config EXEC command.
show startup-configSyntax Description
This command has no arguments or keywords.
Command Mode
EXEC
Usage Guidelines
NVRAM stores the configuration information on the network server in text form as configuration commands. For all platforms except the Cisco 7000 family, the show startup-config command shows the version number of the software used when you last executed the copy running-config startup-config command.
For the Cisco 7000 family, the show startup-config command shows the configuration file specified by the CONFIG_FILE environment variable. The Cisco IOS software informs you whether the displayed configuration is a complete configuration or a distilled version. A distilled configuration is one that does not contain access lists. If the CONFIG_FILE environment variable does not exist or is not valid, the software displays the NVRAM configuration (if it is a valid, complete configuration).
Sample Displays
The following sample output from the show startup-config command displays the contents of NVRAM:
Router# show startup-config Using 5057 out of 32768 bytes ! version 10.3 ! enable-password xxxx service pad ! boot system dross-system 172.16.13.111 boot system dross-system 172.16.1.111 ! exception dump 172.16.13.111 ! no ip ipname-lookup ! decnet routing 13.1 decnet node-type area decnet max-address 1023 ! interface Ethernet 0 ip address 172.16.1.1 255.255.255.0 ip helper-address 172.30.1.0 ip accounting ip gdp decnet cost 3 ! ip domain-name CISCO.COM ip name-server 255.255.255.255 ! endThe following is partial sample output from the show startup-config command when the configuration file has been compressed:
Router# show startup-config Using 21542 out of 65536 bytes, uncompressed size = 142085 bytes ! version 9.22 service compress-config ! hostname rose ! boot system flash gs7-k.sthormod_clean boot system rom