Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

Commit

Permalink
collecting all logs for ESX/VMs
Browse files Browse the repository at this point in the history
  • Loading branch information
shuklanirdesh82 committed Mar 25, 2017
1 parent f9eed3c commit f80f935
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions misc/drone-scripts/dump_log.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ SYS_LOGFILE="/var/log/syslog"

dump_log_esx() {
log $ESX_LOGFILE
$SSH $USER@$1 cat $ESX_LOGFILE
$SSH $USER@$1 cat $ESX_LOGFILE*
if [ $INCLUDE_HOSTD == "true" ]
then
log $HOSTD_LOGFILE
Expand All @@ -31,7 +31,7 @@ dump_log_esx() {
}

dump_log_vm(){
$SSH $USER@$1 cat $VM_LOGFILE
$SSH $USER@$1 cat $VM_LOGFILE*
log $SYS_LOGFILE
is_syslog_present=`$SSH $USER@$1 [[ -e $SYS_LOGFILE ]] && echo true || echo false`
log $is_syslog_present
Expand All @@ -40,7 +40,7 @@ dump_log_vm(){
log "collecting logs through journalctl"
$SSH $USER@$1 "journalctl > $SYS_LOGFILE"
fi
$SSH $USER@$1 cat $SYS_LOGFILE
$SSH $USER@$1 cat $SYS_LOGFILE*
}

truncate_vm_logs() {
Expand Down

0 comments on commit f80f935

Please sign in to comment.