Smarts NCM: How to gather logs based on Task or Job ID
search cancel

Smarts NCM: How to gather logs based on Task or Job ID

book

Article ID: 331247

calendar_today

Updated On:

Products

VMware Smart Assurance

Environment

VMware Smart Assurance - NCM

Resolution

How do you gather logs based on Task or Job ID?

Sometimes you need to determine why you're having problems with a certain job or task and would like to gather all the log information based on it. Please follow the simple directions below:

This applies to a Combination Server (all in one)
 
  1. source /etc/voyence.conf
  2. cd $VOYENCE_HOME/tools directory. 
  3. ./deviceLogs.pl <Task ID>

This applies to a Distributed setup.

On the Device Server you want to follow the Task or Job ID please do the following commands. (If you have more than one device server make sure you select the with the Task or Job associated with it)
 
  1. source /etc/voyence.conf
  2. cd $VOYENCE_HOME/tools directory. 
  3. ./deviceLogs.pl <Task ID>

Below is a sample output for Task 100318

-bash-4.1# ./deviceLogs.pl 100318
Checking Logs for Key 100318
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Warning, no current log logfile.log
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Warning, no current log error.log
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Warning, no current log syssyncm.log
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10.log:-rw-rw---- 1 root voyence  500120 Jun  6 05:10 /opt/smarts-ncm/logs/commmgr.10.log
1.log:-rw-rw---- 1 root voyence 5000156 Jul  9 07:37 /opt/smarts-ncm/logs/commmgr.1.log
2.log:-rw-rw---- 1 root voyence 5000099 Jul  2 14:06 /opt/smarts-ncm/logs/commmgr.2.log
3.log:-rw-rw---- 1 root voyence 5000105 Jun 25 20:40 /opt/smarts-ncm/logs/commmgr.3.log
4.log:-rw-rw---- 1 root voyence 5000134 Jun 19 03:09 /opt/smarts-ncm/logs/commmgr.4.log
5.log:-rw-rw---- 1 root voyence 5000077 Jun 12 09:43 /opt/smarts-ncm/logs/commmgr.5.log
6.log:-rw-rw---- 1 root voyence  500244 Jun  7 13:28 /opt/smarts-ncm/logs/commmgr.6.log
7.log:-rw-rw---- 1 root voyence  500099 Jun  7 05:26 /opt/smarts-ncm/logs/commmgr.7.log
8.log:-rw-rw---- 1 root voyence  500092 Jun  6 21:19 /opt/smarts-ncm/logs/commmgr.8.log
9.log:-rw-rw---- 1 root voyence  500105 Jun  6 13:17 /opt/smarts-ncm/logs/commmgr.9.log
log:-rw-rw---- 1 root voyence 1815103 Jul 11 18:09 /opt/smarts-ncm/logs/commmgr.log
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>>>>>> LOG Start: commmgr.10.log
==================================================================
>>>>>> LOG Start: commmgr.9.log
==================================================================
>>>>>> LOG Start: commmgr.8.log
==================================================================
>>>>>> LOG Start: commmgr.7.log
==================================================================
>>>>>> LOG Start: commmgr.6.log
==================================================================
>>>>>> LOG Start: commmgr.5.log
==================================================================
>>>>>> LOG Start: commmgr.4.log
==================================================================
>>>>>> LOG Start: commmgr.3.log
==================================================================
>>>>>> LOG Start: commmgr.2.log
==================================================================
>>>>>> LOG Start: commmgr.1.log
==================================================================
>>>>>> LOG Start: commmgr.log
==================================================================
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1.log:-rw-rw---- 1 root voyence 7188400 Mar 22 20:44 /opt/smarts-ncm/logs/autodisc.1.log
log:-rw-rw---- 1 root voyence  849280 Jun  7 18:08 /opt/smarts-ncm/logs/autodisc.log
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>>>>>> LOG Start: autodisc.1.log
==================================================================
>>>>>> LOG Start: autodisc.log
==================================================================
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10.log:-rw-rw---- 1 root voyence 45179053 Jun  7 17:56 /opt/smarts-ncm/logs/syssyncs.10.log
1.log:-rw-rw---- 1 root voyence  5000215 Jul  8 11:23 /opt/smarts-ncm/logs/syssyncs.1.log
2.log:-rw-rw---- 1 root voyence  5000108 Jul  5 01:14 /opt/smarts-ncm/logs/syssyncs.2.log
3.log:-rw-rw---- 1 root voyence  5000263 Jul  1 15:06 /opt/smarts-ncm/logs/syssyncs.3.log
4.log:-rw-rw---- 1 root voyence  5000083 Jun 28 04:58 /opt/smarts-ncm/logs/syssyncs.4.log
5.log:-rw-rw---- 1 root voyence  5000145 Jun 24 18:49 /opt/smarts-ncm/logs/syssyncs.5.log
6.log:-rw-rw---- 1 root voyence  5000268 Jun 21 08:46 /opt/smarts-ncm/logs/syssyncs.6.log
7.log:-rw-rw---- 1 root voyence  5000113 Jun 17 22:38 /opt/smarts-ncm/logs/syssyncs.7.log
8.log:-rw-rw---- 1 root voyence  5000134 Jun 14 12:30 /opt/smarts-ncm/logs/syssyncs.8.log
9.log:-rw-rw---- 1 root voyence  5000089 Jun 11 02:26 /opt/smarts-ncm/logs/syssyncs.9.log
log:-rw-rw---- 1 root voyence  4811279 Jul 11 18:10 /opt/smarts-ncm/logs/syssyncs.log
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>>>>>> LOG Start: syssyncs.10.log
==================================================================
>>>>>> LOG Start: syssyncs.9.log
==================================================================
>>>>>> LOG Start: syssyncs.8.log
==================================================================
>>>>>> LOG Start: syssyncs.7.log
==================================================================
>>>>>> LOG Start: syssyncs.6.log
==================================================================
>>>>>> LOG Start: syssyncs.5.log
==================================================================
>>>>>> LOG Start: syssyncs.4.log
==================================================================
>>>>>> LOG Start: syssyncs.3.log
==================================================================
>>>>>> LOG Start: syssyncs.2.log
==================================================================
>>>>>> LOG Start: syssyncs.1.log
==================================================================
>>>>>> LOG Start: syssyncs.log
==================================================================

Checking Complete for 100318
-bash-4.1#