Command Reference Guide

Serviceability Packet Tracing Commands
CLI Command Reference
September 2014 Page 219
HP Moonshot Switch Module CLI Command Reference
capture remote port
Use this command to configure file capture options. The command is persistent across a reboot cycle. The id
parameter is a TCP port number from 1024 49151.
capture file size
Use this command to configure file capture options. The command is persistent across a reboot cycle. The max-
file-size
parameter is the maximum size the pcap file can reach, which is 2512 KB.
capture line wrap
This command enables wrapping of captured packets in line mode when the captured packets reaches full
capacity.
no capture line wrap
This command disables wrapping of captured packets and configures capture packet to stop when the captured
packet capacity is full.
show capture packets
Use this command to display packets captured and saved to RAM. It is possible to capture and save into RAM,
packets that are received or transmitted through the CPU. A maximum of 128 packets (128 bytes per packet
max) can be saved into RAM per capturing session. If a packet holds more than 128 bytes, only the first 128
bytes are saved; data more than 128 bytes is skipped and cannot be displayed in the CLI.
Capturing packets is stopped automatically when 128 packets are captured and have not yet been displayed
during a capture session. Captured packets are not retained after a reload cycle.
Format
capture remote port id
Mode Global Config
Format
capture file size max-file-size
Mode Global Config
Format
capture line wrap
Mode Global Config
Format
no capture line wrap
Mode Global Config
Format
show capture packets
Mode Privileged EXEC