Recovering Crash Logs Using the CLI - NCOS-How-to-save-log-files/Recovering-Crash-Logs-Using-the-CLI

Saving and Managing Ericsson Cradlepoint Router Log Files

NetCloud Feature
Monitoring and Diagnostics > Alerts and Logs
ft:locale
en-US
ft:sourceName
Paligo_Prod

From the CLI, access the crash log using the 'log' command through the Config Store path.

[console@2100: /]$ log -r

Dec 31 18:00:03 INFO user vlan: Plugging VLAN: 1
Dec 31 18:00:03 INFO user vlan: Plugging VLAN: 2
Dec 31 18:00:03 INFO kern kernel: [ 27.444342] device eth0 entered promiscuous mode
..

Dec 11 17:58:25 CRIT user root: Service Manager Failed 139
Dec 11 17:58:25 CRIT user root: ##############################################

From the CLI, the crash log can be recovered from the ConfigStore using the following command.

status/recover/log/service_manager
Clearing Logs

Use the following command to clear the logs.

set /control/log/clear 1

Use the following command to clear the crash logs.

set /control/recover/clear  1
Logging Footer

Each time a new crash log is created, its append to the last log ends with a special footer to delineate the end of the log.

Dec 11 17:58:25 CRIT user root: Service Manager Failed 139
Dec 11 17:58:25 CRIT user root: ##############################################
Kernel Panic Log Recovery

Saving Kernel Panic logs in an event of a panic is currently disable by default. To enable the ability to capture Kernel panics, use the following CLI command.

set config/system/logging/recover_kernel_log  true

Once enabled, subsequent panics are saved to the "Crash" flash partition. Retrieve Kernel Panic logs via the CLI.

get status/recover/log/kernel/