Trace to an attached USB drive

It is possible to save traces to a connected USB drive, e.g. a USB stick to save in the background. An active console session is not required for this, as the recording is carried out in the background.

After recording, the file can be accessed by plugging the USB stick into a computer. Alternatively, the /usb/ directory on the device can be accessed remotely via SCP.

The USB drive must be FAT32 formatted. The device writes to the USB stick until it is full, after which the capture stops.

Note: It is not possible to write or load a file to the internal flash of the device.

An ICMP trace on the console is e.g. redirected to a USB drive as follows:

Trace # ICMP > /usb/file.lct

The ICMP trace is stopped as follows:

Trace # ICMP > /usb/file.lct or Trace – all > /usb/file.lct

The show command "show trace-file" shows active trace sessions on USB.

A Trace - all does not terminate the running sessions that are being recorded on USB, only the active traces of the active console session.

root@lc1900ef-aa:/
> tr # icmp >/usb/my      
created trace session for '/usb/my.lct'
/usb/my.lct:
ICMP                       ON 

root@lc1900ef-aa:/
> show trace-file   

/usb/my.lct:
  ICMP                 ON

root@lc1900ef-aa:/
> tr # tcp >/usb/my 
/usb/my.lct:
TCP                        ON 

root@lc1900ef-aa:/
> show trace-file  

/usb/my.lct:
  ICMP                 ON
  TCP                  ON

root@lc1900ef-aa:/
> tr - all >/usb/my
/usb/my.lct:
remove trace session for '/usb/my.lct'

www.lancom-systems.com

LANCOM Systems GmbH | A Rohde & Schwarz Company | Adenauerstr. 20/B2 | 52146 Wuerselen | Germany | E‑Mail info@lancom.de

LANCOM Logo