aisledotnet
-
Posts
6 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by aisledotnet
-
-
And, some modification with status update email.
#!/bin/bash
tmpfile=$( /bin/mktemp -t )
from= xxx@xxxx.xxx
to= yyy@yyyy.yyy
/bin/echo return-path: $to >> $tmpfile
/bin/echo for: $to >> $tmpfile
/bin/echo from: $from >> $tmpfile
/bin/echo to: $to >> $tmpfile
/bin/echo subject: Ubuntu Update Pulseway Script Status >> $tmpfile
/bin/echo Message: >> $tmpfile
/bin/echo >> $tmpfile
/bin/echo APT-GET Update was run: $( /bin/date +%c ) >> $tmpfile
/bin/echo >> $tmpfile
/bin/echo -n "Result: " >> $tmpfile
/usr/bin/apt-get -qy update > /dev/null
/usr/bin/apt-get -qy dist-upgrade | grep -i installed >> $tmpfile
/bin/echo >> $tmpfile
/bin/cat $tmpfile | sendmail -t
/bin/rm $tmpfile
exit 0 -
-
I found the issue.
It was dropped by our IPS rule. I just whitelist *.pulseway.com also in IPS and works like charm.
Thanks for your help.
-
Yes, I allow outbound 443 and set rule and even I set the rule for "Skip SSL decryption, don't filter content, allow all" for *.pulseway.com
But, still I have connection error for remote connect.
Do you have any server other than *.pulseway.com? like IP range or aws? Because, I saw some drop packet that from Amazon AWS.
Thanks
-
Headless unix VBox snapshot creation.
in Bash
Posted
Just in case if anyone interested, I'm sharing my script that support Unix headless Virtual Box snapshot creation.
I have two VirtualBox machine (Linux, Win10) and both are running under different username.
Since, pulseway is running under root privilege, I should use su to virtualbox user and pass the specific command to shell.
Please update as needed.
Thanks
---------------------------------------------
#!/bin/bash
NOW=`date +"%m-%d-%Y-%T"`
SNAPSHOT_NAME_Linux="Linux_$NOW"
SNAPSHOT_NAME_Win10="Win10_$NOW"
SNAPSHOT_DESCRIPTION="Snapshot taken on $NOW"
su -l "vboxusername" -c "/usr/bin/VBoxManage snapshot Linux take "$SNAPSHOT_NAME_Linux" --description "$SNAPSHOT_DESCRIPTION"" &
su -l "vboxusername" -c "/usr/bin/VBoxManage snapshot Win10 take "$SNAPSHOT_NAME_Win10" --description "$SNAPSHOT_DESCRIPTION"" &
exit 0