Download Logs
There are two types of logs available, the event log (also called NMC log) and the data log. They can also be downloaded through the web interface.
How to Retrieve Log Files with SCP from the CLI
With SCP it is possible to retrieve a copy of the data or event log.
-
Make sure that SCP is enabled.
-
From a computer on the same network as the NMC open a command prompt window.
NOTE: The commands bellow are only examples. -
To retrieve the event log file type
scp <username@hostname>:event.txt /temp/event.txtorscp <ip_address>:event.txt /temp/event.txt -
To retrieve the data log file type
scp <username@hostname>:data.txt /temp/data.txtorscp <ip_address>:data.txt /temp/data.txt
How to Retrieve Log Files with FTP from the CLI
With FTP it is possible to retrieve a copy of the data or event log.
-
Make sure that FTP is enabled.
-
From a computer on the same network as the NMC open a command prompt window.
-
Type
ftp <ip_address>orftp>open <ip_address> <port_number>if the port number has been changed from the default. Press Enter.NOTE: The command is for a windows FTP client, other FTP clients might work differently. -
Log in with an administrator or device user.
-
To enable binary transfer mode type
ftp>bin -
To enable a progress bar for the file transfer type
ftp>hash -
To retrieve the event log file type
ftp>get event.txt -
To retrieve the data log file type
ftp>get data.txtNOTE: It is possible to delete the log files on the NMC. The delete command do not have any confirmation prompt. A deletion of the data log is stored as an event in the event log. A deletion of the event logs is stored as an event in a new event log. -
To delete the event log file type
ftp>del event.txt -
To delete the data log file type
ftp>del data.txt -
Type
ftp>quitto exit.