Cisco N5K-C5010P-BF Troubleshooting Guide - Page 14

NX-OS command listing, Narrowing scope of keywords, Logging

Page 14 highlights

Fabric Manager Tools and CLI Commands Chapter 1 Troubleshooting Overview Send document comments to [email protected]. The file is stored on bootflash://filename provided that there is enough memory available. If you do not specify a filename, NX-OS creates the file as volatile:show_tech_out.gz. Copy the file from the device using the procedure in the copy command section. switch# tac-pac switch# dir volatile: 374382 Aug 16 17:15:55 2010 show_tech_out.gz From volatile, copy the file to the bootflash, FTP, or TFTP server. switch# copy volatile:show_tech_out.gz ? bootflash: Select destination filesystem debug: Select destination filesystem ftp: Select destination filesystem log: Select destination filesystem modflash: Select destination filesystem nvram: Select destination filesystem running-config Copy from source to running configuration scp: Select destination filesystem sftp: Select destination filesystem startup-config Copy from source to startup configuration system: Select destination filesystem tftp: Select destination filesystem volatile: Select destination filesystem NX-OS command listing switch# show cli list | include ? -i Ignore case difference when comparing strings -x Print only lines where the match is a whole line WORD Search for the expression switch# show cli list | include debug | include interface Narrowing scope of keywords You can use many commands like grep and include to narrow the scope of a keyword. switch(config-if)# show interface | grep fc fc2/1 is trunking fc2/2 is trunking fc2/3 is up fc2/4 is down (Administratively down) vfc29 is up Logging You can use logging through the CLI or Device Manager. In the following examples, the logging command and the Device Manager display severity information: Viewing Severity Information with the CLI switch(config)# show logging Cisco Nexus 5000 Series Troubleshooting Guide 1-6 OL-25300-01

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162

Send document comments to [email protected].
1-6
Cisco Nexus 5000 Series Troubleshooting Guide
OL-25300-01
Chapter 1
Troubleshooting Overview
Fabric Manager Tools and CLI Commands
The file is stored on bootflash://
filename
provided that there is enough memory available. If you do not
specify a filename, NX-OS creates the file as volatile:show_tech_out.gz. Copy the file from the device
using the procedure in the copy command section.
switch#
tac-pac
switch#
dir volatile
:
374382 Aug 16 17:15:55 2010 show_tech_out.gz
From volatile, copy the file to the bootflash, FTP, or TFTP server.
switch# copy volatile:show_tech_out.gz ?
bootflash: Select destination filesystem
debug: Select destination filesystem
ftp: Select destination filesystem
log: Select destination filesystem
modflash: Select destination filesystem
nvram: Select destination filesystem
running-config Copy from source to running configuration
scp: Select destination filesystem
sftp: Select destination filesystem
startup-config Copy from source to startup configuration
system: Select destination filesystem
tftp: Select destination filesystem
volatile: Select destination filesystem
NX-OS command listing
switch# show cli list | include ?
-i
Ignore case difference when comparing strings
-x
Print only lines where the match is a whole line
WORD
Search for the expression
switch# show cli list | include debug | include interface
Narrowing scope of keywords
You can use many commands like
grep
and
include
to narrow the scope of a keyword.
switch(config-if)#
show interface | grep fc
fc2/1 is trunking
fc2/2 is trunking
fc2/3 is up
fc2/4 is down (Administratively down)
vfc29 is up
Logging
You can use logging through the CLI or Device Manager. In the following examples, the
logging
command and the Device Manager display severity information:
Viewing Severity Information with the CLI
switch(config)# show logging