VMware Smart Assurance NCM: How to enable debug and session logging on a Device Server?
search cancel

VMware Smart Assurance NCM: How to enable debug and session logging on a Device Server?

book

Article ID: 345335

calendar_today

Updated On:

Products

VMware

Issue/Introduction

Symptoms:
How to turn on verbose logging to troubleshoot a device driver related issue in NCM?

Environment

VMware Smart Assurance - NCM

Resolution

Root access to the Combination Server (or) Application server and Device server(s) is needed to edit the necessary files mentioned in the following instructions.

 

To enable session logging and full debug:
1) Run the following command on NCM Application Server / Combination Server (all on one line):
. /etc/voyence.conf; $VOYENCE_HOME/cgi-bin/cflist.cgi |sed 's/^POP .*/& CM_DEBUGSESSION=1/g' |$VOYENCE_HOME/cgi-bin/cfwrite.cgi

2) Open the logs.cfg file in the Device server(s) / Combination Server:
vi $VOYENCE_HOME/conf/logs.cfg 

3) Uncomment the following line in the logs.cfg file:
#*:log(0-9):file(10x1000000)

4) Save and close the logs.cfg file.

5) Restart the voyence service on Device Server(s) / Combination Server as follows:
service voyence restart

​​​

To generate log bundle after enabling full debug & session logging:
After executing the device discovery/pull config/push config/OS update etc operation on the device(s) to replicate the issue present, bundle the logs with below commands on Device Server / Combination Server and upload the zip file generated to the VMware Support Request.

source /etc/voyence.conf
$VOYENCE_HOME/tools/saveLogs.pl all --save-rolled-logs

 

To disable session logging and full debug:
1) Run the following command on NCM Application server / Combination Server (all on one line):
. /etc/voyence.conf; $VOYENCE_HOME/cgi-bin/cflist.cgi |sed 's/CM_DEBUGSESSION=1/CM_DEBUGSESSION=0/g' |$VOYENCE_HOME/cgi-bin/cfwrite.cgi

2) Open the logs.cfg file in the device server(s) / Combination Server:
vi $VOYENCE_HOME/conf/logs.cfg 

3) Comment out (#) the following line:
*:log(0-9):file(10x1000000)

4) Save and close the logs.cfg file.

5) Restart the voyence service on device server(s)  Combination Server as follows:
service voyence restart