An expression, or pattern, is typically a simple text string. Do not enclose the expression in single or
double-quotes—these will be seen as part of the expression. Also, trailing spaces will be included in the
expression.
Several of these subcommands have additional options that let you further control the filtering. For example,
with
show configuration | head
and
show configuration | last
, you can use the
lines
keyword to change the
number of lines displayed; the default is 10. As another example, with
show configuration | sort
, you can
add the option
-u
to remove duplicate lines from the output. (Complete descriptions of these options is beyond
the scope of this document; refer to the FXOS help output for the various commands, and to the appropriate
Linux help, for more information.)
Note
Examples
The following example shows how to determine the number of lines currently in the system event log:
FP9300-A#
show sel 1/1 | count
3008
FP9300-A#
The following example shows how to display lines from the system event log that include the string “error”:
FP9300-A#
show sel 1/1 | include error
968 | 05/15/2016 16:46:25 | CIMC | System Event DDR4_P2_H2_EC
C #0x99 | Upper critical - going high | Asserted | Reading 20
000 >= Threshold 20000 error
FP9300-A#
Related Topics
Save Show Command Output, on page 15
Save Show Command Output
You can save the output of
show
commands by redirecting the output to a text file.
show command
[
>
{
ftp:
|
scp:
|
sftp:
|
tftp:
|
volatile:
|
workspace:
}]|[
>>
{
volatile:
|
workspace:
}]
Syntax Description
Redirects the
show
command output to a specified text file
using the selected transport protocol.
After you enter the command, you are queried for remote
server name or IP address, user name, file path, and so on.
If you press
Enter
at this point, the output is saved locally.
>
{
ftp:
|
scp:
|
sftp:
|
tftp:
|
volatile:
|
workspace:
}
Appends the
show
command output to the appropriate text
file, which must already exist.
>>
{
volatile:
|
workspace:
}
Example
The following example attempts to save the current configuration to the system workspace; a configuration
file already exists, which you can choose to overwrite or not.
Cisco Firepower 4100/9300 FXOS Command Reference
15
Filter and Save Show Output
Save Show Command Output
Summary of Contents for Firepower 4100 Series
Page 4: ...Cisco Firepower 4100 9300 FXOS Command Reference 2 About the FXOS CLI Command Reference Guide ...
Page 25: ...P A R T I A R Commands A C Commands on page 25 D R Commands on page 81 ...
Page 26: ......
Page 122: ...Cisco Firepower 4100 9300 FXOS Command Reference 120 A R Commands return ...
Page 124: ......
Page 236: ...Cisco Firepower 4100 9300 FXOS Command Reference 234 S Commands set vlan ...
Page 379: ...P A R T III T W Commands T W Commands on page 379 ...
Page 380: ......
Page 390: ...Cisco Firepower 4100 9300 FXOS Command Reference 388 T W Commands where ...
Page 391: ...P A R T IV connect shell Commands connect shell Commands on page 391 ...
Page 392: ......