-
Notifications
You must be signed in to change notification settings - Fork 60
Snapshot troubleshooting
SCadilhac edited this page Nov 5, 2023
·
5 revisions
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.
-
Select the device, and click the
Snapshot
button to open theTake snapshot
dialog. -
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 clickSave
to start the snapshot.
- After the snapshot has failed, just click the
Download debug logs
link to get the full trace.
- Add the following line to /etc/netshot.conf:
netshot.log.class.onl.netfishers.netshot.device.access.Ssh$JschLogger = ALL
- Reload Netshot to apply:
systemctl reload netshot.service
-
Start a snapshot and extract the logs from
/var/log/netshot/netshot.log
. -
Remove the config line and reload Netshot to disable temporary debug.