
12-13
Cisco Intrusion Prevention System Sensor CLI Configuration Guide for IPS 5.0
78-16527-01
Chapter 12 Working With Configuration Files
Displaying the Contents of a Logical File
username: cisco default:
-----------------------------------------------
-----------------------------------------------
never-block-hosts (min: 0, max: 250, current: 1)
-----------------------------------------------
ip-address: 10.89.146.112
-----------------------------------------------
-----------------------------------------------
never-block-networks (min: 0, max: 250, current: 1)
-----------------------------------------------
ip-address: 88.88.88.0/24
--MORE--
Step 4
Filter the output of the host settings to include the regular expression “ip”:
sensor#
configure terminal
sensor(config)#
service host
sensor(config-hos)#
show settings | include ip
host-ip: 10.89.149.185/25,10.89.149.254 default: 10.1.9.201/24,10.1.9.1
sensor(config-hos)#
Displaying the Contents of a Logical File
Use the
more
keyword
command to display the contents of a logical file, such as the current system
configuration or the saved backup system configuration.
The following options apply:
•
keyword
—Either the current-config or the backup-config.
–
current-config
—The current running configuration. This configuration becomes persistent as
the commands are entered.
–
backup-config
—The storage location for the configuration backup file.
Note
Operators and viewers can only display the current configuration. Only administrators can view hidden
fields such as passwords.
You can disable the more prompt in
more current-config
or
more backup-config
by setting the terminal
length to zero using the
terminal length 0
command. The
more
command then displays the entire file
content without pausing. For the procedure for using the
terminal
command, see
Modifying Terminal
Properties, page 13-3
.
To display the contents of a logical file, follow these steps:
Step 1
Log in to the CLI using an account with administrator privileges.
Step 2
Display the contents of the current configuration file:
sensor#
more current-config
Generating current config:
The current configuration is displayed.
! ------------------------------
! Version 5.0(0.22)
! Current configuration last modified Fri Dec 17 21:38:23 2004