Troubleshooting Network Connections
Capturing IP Traffic in a File
7-22
CLI Maintenance Guide
Changing the Size and Number of Capture Files
By default, the capture session stops when it fills a single file with 16,000 kilobytes of
data. You can use the
filesize
and/or
filecount
options to change the size and number of
capture files:
capture session
session-id
ip
ip-address
[vlan
vlan-id
] file
prefix
[filesize
kilobytes
] [filecount
count
]
where
session-id
,
ip-address
,
vlan-id
, and
prefix
are all described above.
filesize
kilobytes
(optional, 1-16,000) limits the size of the file; once the file
reaches this limit, the capture stops. (One kilobyte is 1,000 bytes, not 1,024.)
The default is 16,000 kilobytes.
filecount
count
(optional, 1-10) sets up a series of capture files; when the
capture reaches the
filesize
limit, it can close the current capture file and start
a new one. The default is 1 file.
The capture session ends when the last file reaches its maximum size.
For example, the following command sequence starts another capture session that is
limited to a single 500-Kbyte file:
bstnA6k(cfg)#
end
bstnA6k#
capture session 4 ip 192.168.25.19 vlan 25 file shadow_usage filesize 500
bstnA6k#
...
Stopping the Capture
From priv-exec mode, use
no capture session
to stop the capture immediately or
remove a capture session that has stopped:
no capture session
session-id
where
session-id
(1-4) identifies the capture session to close.
Capture sessions persist even after the capture stops due to a filesize limitation. Use
this command to delete any such capture session.
For example, this stops the session that we started in an earlier example:
Summary of Contents for Adaptive Resource Switch
Page 12: ...2 xii CLI Maintenance Guide...
Page 62: ...Backing Up the Running Configuration Restoring the Configuration 3 24 CLI Maintenance Guide...
Page 128: ...Metadata Utilities nsck and sync Clearing All nsck Jobs 5 48 CLI Maintenance Guide...
Page 206: ...Troubleshooting Network Connections Configuring Port Mirroring 7 32 CLI Maintenance Guide...
Page 306: ...GUI Maintenance Restarting the GUI 10 4 CLI Maintenance Guide...
Page 316: ...Powering Down the ARX Restoring Power 11 10 CLI Maintenance Guide...
Page 318: ...Copyright 2 CLI Maintenance Guide...
Page 324: ...Index 6 CLI Maintenance Guide...