Pulvinar tempor cras amet ac turpis tristique tristique ... (read more)close
Pulvinar tempor cras amet ac turpis tristique tristique ... (read more)close

LukeTaylor.org Blog

Making I.T that little bit easier !

GhettoVCB Esxi 5.1 ( Setting Up The Cron Task )

by in Vmware/Cisco Blog
  • Font size: Larger Smaller
  • Hits: 12995
  • 1 Comment
  • Subscribe to this entry
  • Print
12995

 

b2ap3_thumbnail_33091695.jpg

 

Setting up the Cron

 

goto

 

 /var/spool/cron/crontabs 

 

Edit the file root using

"vi root"

 

Press I to insert

 


Insert the following code

 

29 23 * * 1 /vmfs/volumes/datastore1/ghettoVCB-master/ghettoVCB.sh -a

 

this will run the above script every Monday at 11.29am

 

 

When ESXI reboots you will need to reinsert the code into Crontab , so you need to automate this

 

vi /etc/rc.local.d/local.sh

 

Insert the following just above Exit 0

 

/bin/kill $(cat /var/run/crond.pid)
/bin/echo "29 23 * * * /vmfs/volumes/datastore1/ghettoVCB-master/ghettoVCB.sh -a" >> /var/spool/cron/crontabs/root
/usr/lib/vmware/busybox/bin/busybox crond

 

Save using

:wq

 

 

 

 

 

Rate this blog entry:
0

Comments

  • Guest
    Suraj Thursday, 02 March 2017

    we have to do any precaution on the server prior to ESXi upgrade ?if it is configured with ghettoVCB backup

Leave your comment

Guest Thursday, 14 November 2019