Cisco N5K-C5010P-BF Troubleshooting Guide - Page 13

Using the pipe command to only display required keyword, Copy command, Redirecting output

Page 13 highlights

Chapter 1 Troubleshooting Overview Fabric Manager Tools and CLI Commands Send document comments to [email protected]. Using the pipe command to only display required keyword switch# show running-config | include switchport system default switchport switchport mode trunk switchport trunk allowed vlan 1,18 switchport mode fex-fabric switchport mode fex-fabric switchport speed 1000 switchport mode SD no system default switchport shutdown Copy command switch# copy ? bootflash: core: debug: ftp: licenses log: modflash: nvram: running-config scp: sftp: startup-config system: tftp: volatile: Select source filesystem Select source filesystem Select source filesystem Select source filesystem Backup license files Select source filesystem Select source filesystem Select source filesystem Copy running configuration to destination Select source filesystem Select source filesystem Copy startup configuration to destination Select source filesystem Select source filesystem Select source filesystem Redirecting output NX-OS allows you to redirect outputs to files and flash areas in the switch. switch# show tech-support aaa > bootflash:ciscolive09 switch# dir 103557265 12451 49152 20058112 20193280 76930262 103557265 4096 Apr 01 17:39:22 2009 Apr 10 16:36:37 2009 Apr 01 17:39:22 2009 Oct 21 13:10:44 2008 Apr 01 17:36:37 2009 Oct 21 13:11:33 2008 Apr 01 17:37:30 2009 Jan 01 00:03:26 2005 .tmp-system ciscolive09 lost+found/ n5000-uk9-kickstart.4.0.0.N1.2.bin n5000-uk9-kickstart.4.0.1a.N2.1.bin n5000-uk9.4.0.0.N1.2.bin n5000-uk9.4.0.1a.N2.1.bin routing-sw/ Redirecting output of the show tech-support details command Use the tac-pac filename command to redirect the output of the show tech-support details command to a file and then gzip the file. OL-25300-01 Cisco Nexus 5000 Series Troubleshooting Guide 1-5

  • 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-5
Cisco Nexus 5000 Series Troubleshooting Guide
OL-25300-01
Chapter 1
Troubleshooting Overview
Fabric Manager Tools and CLI Commands
Using the pipe command to only display required keyword
switch#
show running-config | include switchport
system default switchport
switchport mode trunk
switchport trunk allowed vlan 1,18
switchport mode fex-fabric
switchport mode fex-fabric
switchport speed 1000
switchport mode SD
no system default switchport shutdown
Copy command
switch#
copy ?
bootflash:
Select source filesystem
core:
Select source filesystem
debug:
Select source filesystem
ftp:
Select source filesystem
licenses
Backup license files
log:
Select source filesystem
modflash:
Select source filesystem
nvram:
Select source filesystem
running-config
Copy running configuration to destination
scp:
Select source filesystem
sftp:
Select source filesystem
startup-config
Copy startup configuration to destination
system:
Select source filesystem
tftp:
Select source filesystem
volatile:
Select source filesystem
Redirecting output
NX-OS allows you to redirect outputs to files and flash areas in the switch.
switch#
show tech-support aaa > bootflash:ciscolive09
switch#
dir
103557265
Apr 01 17:39:22 2009
.tmp-system
12451
Apr 10 16:36:37 2009
ciscolive09
49152
Apr 01 17:39:22 2009
lost+found/
20058112
Oct 21 13:10:44 2008
n5000-uk9-kickstart.4.0.0.N1.2.bin
20193280
Apr 01 17:36:37 2009
n5000-uk9-kickstart.4.0.1a.N2.1.bin
76930262
Oct 21 13:11:33 2008
n5000-uk9.4.0.0.N1.2.bin
103557265
Apr 01 17:37:30 2009
n5000-uk9.4.0.1a.N2.1.bin
4096
Jan 01 00:03:26 2005
routing-sw/
Redirecting output of the show tech-support details command
Use the
tac-pac
filename
command to redirect the output of the
show tech-support details
command to
a file and then gzip the file.