S e n d c o m m e n t s t o n e x u s 3 k - d o c f e e d b a c k @ c i s c o . c o m
-SM-221
Cisco Nexus 3000 Series NX-OS System Management Command Reference
OL-29557-04
Chapter System Management Commands
show logging onboard
Usage Guidelines
The date and time arguments for the
starttime
and
endtime
keywords are entered as the date
month/day/year (
mm
/
dd
/
yy
), followed by a hyphen, and the time in 24-hour format in
hours:minutes:seconds (
HH:MM:SS
). For example:
•
starttime
03/17/08-15:01:57
•
endtime
03/18/08-15:04:57
The valid values for
file
are as follows:
•
bootflash:
•
ftp:
•
scp:
•
sftp:
•
tftp:
•
volatile:
The valid values for
type
are as follows:
•
begin
[
-i
] [
-x
] [
word
]—Begins with the line that matches the text.
–
-i
—Ignores the case difference when comparing the strings.
–
-x
—Prints only the lines where the match is a whole line.
–
word
—Specifies for the expression.
•
count
[
>
file
|
|
type
]—Counts number of lines.
•
egrep
|
grep
print-match
—Egrep or Grep. Egrep searches for lines of text that match more
sophisticated regular expression syntax than grep. Grep searches for lines of text that match one or
many regular expressions, and outputs only the matching lines.
–
-A
num
—Prints the specifies number of lines of context after every matching line. Range: 1 to
999.
–
-B
num
—Prints the specifies number of lines of context before every matching line. Range: 1
to 999.
–
-c
—Prints a total count of matching lines only.
–
-i
—Ignores the case difference when comparing the strings.
–
-n
—Prints each match preceded by its line number.
–
-v
—Prints only the lines that contain no matches for the
word
argument.
–
-w
—Prints only lines where the match is a complete word.
–
-x
—Prints only the lines where the match is a whole line.
–
word
—Specifies for the expression.
•
exclude
[
-i
] [
-x
] [
word
]—Excludes the lines that match.
–
-i
—Ignores the case difference when comparing the strings.
–
-x
—Prints only the lines where the match is a whole line.
–
word
—Specifies for the expression.
•
head
[
-n
num
]—Stream Editor. The optional
-n
num
keyword and argument allow you to specify the
number of lines to print. Range: 0 to 2147483647.
•
include
[
-i
] [
-x
] [
word
]—Include the lines that match.