show file

Use this command to display the contents of a configuration file.

Syntax

show file filename

Parameters

filename Specifies the file, in the root directory or a subdirectory (slot or USB device directory), to display.

Defaults

None.

Mode

All command modes.

Usage

If C2 security mode is enabled, encrypted passwords are cloaked while in Read-Write or Read-Only user mode.

Example

This example shows how to display the contents of a configuration file named sample.cfg:

System(rw)->show file slot1/sample.cfg
#BEGIN:  07.00.00.0061
begin
!
# ***** NON-DEFAULT CONFIGURATION *****
!
!
# Chassis Firmware Revision:  07.00.00.0061
!
!
#  SLOT   TYPE
#  ___    ________________
!
#   1     SSA-T4068-0252
!
!
# router configuration
!
# **** VRF default (default) ****
configure terminal
!
 interface vlan.0.4000
  ip address 192.168.100.20 255.255.255.0
  no shutdown
  exit
!
# Static routes configured on routed interfaces
 ip route 10.0.0.0/8 192.168.100.1 interface vlan.0.4000 1
 ip route 134.0.0.0/8 192.168.100.1 interface vlan.0.4000 1
!
# Static routes configured on non-routed interfaces
!
exit
!
# ip dns
!
# ip interface
set ip interface vlan.0.4000 default
!
# authentication
!
.
.
.!
# vlan
set vlan create 2-5,4000
clear vlan egress 1 ge.1.47
set vlan egress 2 ge.1.1-2 tagged
set vlan egress 3 ge.1.1-2 tagged
set vlan egress 4 ge.1.1-2 tagged
set vlan egress 5 ge.1.1-2 tagged
set vlan egress 4000 host.0.1 tagged
set vlan egress 4000 ge.1.47 untagged
!
# vlanauthorization
!
# webview
!
# width
!
end
#END: e2bf4471a3b8c59203b277f35859a68d