Process for capturing logs using the saveLogs.pl utility
search cancel

Process for capturing logs using the saveLogs.pl utility

book

Article ID: 315718

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

The NCM saveLogs.pl utility provides for a number of options for capturing logs for troubleshooting.

Environment

NCM 10.1.X

Resolution


The saveLogs.pl utility is located in the tools directory, typically the following (see Note statement) directory:

$VOYENCE_HOME/tools/saveLogs.pl

You can see all of the "saveLog.pl" tool options by typing:

 ./saveLogs.pl options

./saveLogs.pl CS                                                        - Create a zip file containing all current Combo Server logs
./saveLogs.pl DS                                                        - Create a zip file containing all current Device Server logs
./saveLogs.pl AP                                                        - Create a zip file containing all current App Server logs
./saveLogs.pl RA                                                        - Create a zip file containing all current Report Advisor logs
./saveLogs.pl all                                                         - Create a zip file containing all current logs
./saveLogs.pl logs                                                      - Create a zip file containing logs from <Product_Home>/logs
./saveLogs.pl tomcat                                                - Create a zip file containing tomcat logs
./saveLogs.pl jboss                                                    - Create a zip file containing jboss logs
./saveLogs.pl database                                            - Create a zip file containing database logs
./saveLogs.pl install                                                  - Create a zip file containing install logs
./saveLogs.pl search <string>                               - Create a zip file containing logs with <any string>
./saveLogs.pl date <MMM DD> <HH:MM>          - Create a zip file containing logs with formatted date (Time is optional)
./saveLogs.pl time <HH:MM>                                 - Create a zip file containing logs where time is HH:MM or HH:MM:SS
./saveLogs.pl exception <# of leading lines>    - Create a zip file containing java exceptions from the logs
./saveLogs.pl ds_cache                                            - Create a zip file containing the Device Server cache if applicable
./saveLogs.pl snapshot                                            - Create a zip file containing the snapshot information
./saveLogs.pl core                                                     - Create a zip file containing core files
./saveLogs.pl jstack                                                 - Create a zip file containing java stack trace files

Add the option to any of the above commands to save any of the rolled logs as well..

--save-rolled-logs


An example on how to use the "saveLogs.pl" would be:

[root@asgard tools]# ./saveLogs.pl search 19478232


 The output will be similar to this:  

 

adding: search_19478232.log (deflated 94%)

The logfile zip is at /opt/voyence/logs/logs-17_16_50-7-9-2010-search.zip (16288 bytes)

This would collect all lines in all logs that containing the string "19478232".  This would be useful to capture a thread that is present is multiple logs such as commmgr.log and session.log.

 

 

Additional Information

The variable $VOYENCE_HOME refers to the installed location of VoyenceControl, typically in one of the below directories:
 
/opt/voyence
 
/home/powerup.