Skip to content

Snapshot troubleshooting

SCadilhac edited this page Nov 5, 2023 · 5 revisions

Enabling full trace debug

If snapshots keep failing on a specific device, you may want to collect a full trace of the commands and replies exchanged in the background between Netshot and the device. Starting with Netshot 0.8.1, an hidden option makes it easy.

  1. Select the device, and click the Snapshot button to open the Take snapshot dialog.

  2. Double-click the icon (the blue arrow), in order to display the checkbox Enable full debug of the CLI session (only for troubleshooting). Tick the box and click Save to start the snapshot.

  1. After the snapshot has failed, just click the Download debug logs link to get the full trace.

Capturing SSH traces

  1. Add the following line to /etc/netshot.conf:
netshot.log.class.onl.netfishers.netshot.device.access.Ssh$JschLogger = ALL
  1. Reload Netshot to apply:
systemctl reload netshot.service
  1. Start a snapshot and extract the logs from /var/log/netshot/netshot.log.

  2. Remove the config line and reload Netshot to disable temporary debug.