Enabling Remote Syslog server in Devices for logging the cnMaestro and Device related logs

Enabling Remote Syslog server and changing the debug log level for logging cnMaestro and Device related logs  from the device to the  remote syslog server

These logs will be useful for debugging various issues including connectivity issues between the devices and cnMaestro

ePMP 1000/2000/Force 180/200 and ePMP Elevate :

Login to the device GUI and enable the debug log level by navigating to Configure->System and selecting all the  syslog masks as shown in the below screenshot. Also the user can specify upto 4 suslog servers so that the cnMaestro and devioce related logs from the device are sent to the remote syslog server

ePMPSyslog.png

Also the logs can be viewed by logging in to the device GUI and  navigating to Monitor > System Log page .

 enable the syslog display if not already enabled  as shown in below screenshot :  

 

ePMP 1000 HS and cnPilot E400/E500/E501 : 

Login to the device GUI and Navigate to the  Configure->System and in the event logging specify the syslog server IP Address of the remote syslog server where the cnMaestro device logs needs to be captured. This will allow to log the cnMaestro and device related logs from the device to remote syslog server  

Login to the device CLI using SSH and issue the following command for enabling the cnMaestro debug level .

This will allow to log the cnMaestro and device related logs from the device to remote syslog server with the debug level logging

logging  cnmaestro  7

Save  and Apply the settings from cli itself

Also to view the device agent logs from the device cli issue the following command 

service show debug-logs device-agent

Latest log details will be shown in the top

Sample log

2015-12-12 14:51:48 wifi.c:1425:platform_set_cns_connection_state: New Connection_state Connected(6)

2015-12-12 14:51:43 device-agent.c:1005:handle_cns_msg: MSG_REGISTER_SUCCESS received

2015-12-12 14:51:43 wifi.c:1425:platform_set_cns_connection_state: New Connection_state Device Approval Pending(5)

2015-12-12 14:51:17 device-agent.c:1318:send controller data 1 seconds

2015-12-12 14:51:15 https-client.c:426:Server certificate is verified and it is valid 2015-12-12 14:51:15 https-client.c:390:SSL_connect succesful

2015-12-12 14:51:14 https-client.c:398:SSL_ERROR_WANT_READ try again 2015-12-12 14:51:14 wifi.c:1636:Server cert validation is enabled 2015-12-12 14:51:14 https-client.c:398:SSL_ERROR_WANT_READ try again

2015-12-12 14:51:14 https-client.c:192:Open connection ok

2015-12-12 14:51:14 https-client.c:179:EINPROGRESS in connect()

2015-12-12 14:51:07 device-agent.c:1747:DA_STATE_DISCONNECTED

2015-12-12 14:51:07 device-agent.c:1329:callback_websocket: LWS_CALLBACK_CLOSED

cnPilot R200/R201/R190 :

Login to the device gui and navigate to Administration->Management and in the system log  settings specify the parmeters as shown in the below screenshot. This will allow to log the cnMaestro and device related logs from the device to remote syslog server 

cnpilotRSyslog.png

Login to the device GUI and select the status->syslog page from Home to see the logs locally on the device gui itself

Sample log 

<Mon Dec 7 14:11:14 2015> DEV_MANAGER[11774]: callback_websocket: LWS_CALLBACK_CLOSED

<Mon Dec 7 14:11:14 2015> DEV_MANAGER[11774]: DA_STATE_DISCONNECTED

<Mon Dec 7 14:11:22 2015> DEV_MANAGER[11774]: EINPROGRESS in connect()

<Mon Dec 7 14:11:22 2015> DEV_MANAGER[11774]: SSL_ERROR_WANT_READ try again

<Mon Dec 7 14:11:23 2015> DEV_MANAGER[11774]: SSL_ERROR_WANT_READ try again

<Mon Dec 7 14:11:23 2015> DEV_MANAGER[11774]: Server certificate is verified and it is valid

<Mon Dec 7 14:11:23 2015> DEV_MANAGER[11774]: Received Headers : "HTTP/1.1 302 Found...

 <Mon Dec 7 14:12:54 2015> DEV_MANAGER[11774]: callback_websocket: LWS_CALLBACK_CLIENT_ESTABLISHED

<Mon Dec 7 14:12:54 2015> DEV_MANAGER[11774]: Cleanup any leftover stats requests/timers

<Mon Dec 7 14:12:54 2015> DEV_MANAGER[11774]: send controller data 1 seconds

<Mon Dec 7 14:13:22 2015> DEV_MANAGER[11774]: handle_cns_msg: MSG_REGISTER_SUCCESS received

PMP 450/450i/450m AP/SM : 

Login to the device GUI and navigate to Configuration->cnMaestro and enable the cnMaestro Agent debug log level to debug as shown in the below screenshot

Also to enable the remote syslog server navigate to the Configuration->Syslog and configure the parameters as shown in the below screenshot for AP and SM respectively 

AP : 

SM :

The above settings will allow to log the cnMaestro and device related logs from the device to remote syslog server with the debug log level 

Also the logs can be checked in the device GUI by Logging to the device and select the Logs->Device Agent Log page

.

6 Likes

A post was merged into an existing topic: Rsyslog can’t send messages