FIRST REVIEW—CISCO CONFIDENTIAL
16-16
Cisco Intrusion Prevention System Sensor CLI Configuration Guide for IPS 7.2
OL-29168-01
Chapter16 Working With Configuration Files
Filtering the Current Configuration Output
common-name: 10.89.130.108
certificate: MIICJDCCAY0CCPbSkgXUchJIMA0GCSqGSIb3DQEBBQUAMFcxCzAJBgNVBAYTA
lVTMRwwGgYDVQQKExNDaXNjbyBTeXN0ZW1zLCBJbmMuMRIwEAYDVQQLEwlTU00tSVBTMjAxFjAUBgNVB
AMTDTEwLjg5LjEzMC4xMDgwHhcNMDMwMTAzMDE1MjEwWhcNMDUwMTAzMDE1MjEwWjBXMQswCQYDVQQGE
wJVUzEcMBoGA1UEChMTQ2lzY28gU3lzdGVtcywgSW5jLjESMBAGA1UECxMJU1NNLUlQUzIwMRYwFAYDV
QQDEw0xMC44OS4xMzAuMTA4MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCzldqLFG4MT4bfgh3mJ
fP/DCilnnaLfzHK9FdnhmWI4FY+9MVvAI7MOhAcuV6HYfyp6n6cYvH+Eswzl9uv7H5nouID9St9GI3Yr
SUtlIQAJ4QVL2DwWP230x6KdHrYqcj+Nmhc7AnnPypjidwGSfF+VetIJLEeRFh/mI2JcmwF2QIDAQABM
A0GCSqGSIb3DQEBBQUAA4GBAAUI2PLANTOehxvCfwd6UAFXvy8uifbjqKMC1jrrF+f9KGkxmR+XZvUaG
OS83FYDXlXJvB5Xyxms+Y01wGjzKKpxegBoan8OB8o193Ueszdpvz2xYmiEgywCDyVJRsw3hAFMXWMS5
XsBUiHtw0btHH0j7ElFZxUjZv12fGz8hlnY
-----------------------------------------------
sensor(config-tru)# exit
sensor(config)# exit
sensor#
Step 17
Display the current configuration for the web server submode.
sensor# configure terminal
sensor(config)# service web-server
sensor(config-web)# show settings
enable-tls: true <defaulted>
port: 443 <defaulted>
server-id: HTTP/1.1 compliant <defaulted>
sensor(config-web)# exit
sensor(config)# exit
sensor#
Filtering the Current Configuration Output
Use the more keyword | [begin | exclude | include] regular-expression command to search the output of
the more command.
The following options apply:
keyword—Specifies either the current-config or the ba ckup-config:
current-config—Specifies the current running configuration. This configuration becomes
persistent as the commands are ente red.
backup-config—Specifies the storage location for the configuration backup file.
|—The pipe symbol indicates that an output processing specification follows.
begin—Begins unfiltered output of the more command with the first line that contains the regular
expression specified.
exclude—Excludes lines in the output of the more command that contain a particular regular
expression.
include—Includes only the lines in the output of the more command that contain the regular
expression you specify.
regular-expression—Specifies any regular expression found in the more command output.
Note
The regular-expression option is case sensitive and allows for complex matching
requirements.