排程檔案路徑:/var/spool/cron/crontabs/root
#min hour day mon dow command
1 1 * * * /sbin/tmpwatch.py
1 * * * * /sbin/auto-backup.sh
0 * * * * /usr/lib/vmware/vmksummary/log-heartbeat.py
0 20 * * 5 /var/ghettoVCB/ghettoVCB.sh -f /var/ghettoVCB/vms_to_backup
刪除排程:
#/bin/kill $(cat /var/run/crond.pid)
重啟排程(版本5.1後好像不用再執行):
#/bin/busybox crond
停止備份程序:
#ps -c | grep ghettoVCB | grep -v grep
#kill -9 3360136
防火牆設定,開SMTP 25Port:
~ # cd /etc/vmware/firewall/
~ # vi smtp.xml
<!-- E-MAIL SMTP -->
<ConfigRoot>
<service id='1000'>
<id>SMTP</id>
<rule>
<direction>outbound</direction>
<protocol>tcp</protocol>
<porttype>dst</porttype>
<port>25</port>
</rule>
<enabled>true</enabled>
<required>false</required>
</service>
</ConfigRoot>
網路防火牆重啟:
#esxcli network firewall ruleset list