Binderer |
I have a quastion about login.
Is it possible to start the BAT file with user other than “root” ? What schould i configure auf dem ESXi für permissions?
Thanks a lot!
Rparamount |
Hi Binderer, yes you can use whatever username you desire and then su to root after you’ve logged in. That would work. The downside of this file is that the password is stored in this plain text batch file.
-RP
Binderer |
Hi Raj and 10x for your answer.
I created a user (useradd backup) and setted the password to backup (passwd backup). So I have now my VCB.bat looking this way
[CODE]c:puttyplink.exe backup@10.10.10.5 -pw backup “nohup /././. “[/CODE]
But i do not get the Script running 
If I logon to the Putty-Console with user: backup and run the script manually I get the Message:
[CODE]/vmfs/volumes/b03bf723-44c925a1 $ ./ghettoVCB.sh vmbackuplist
This script needs to be executed by “root”![/CODE]
What am I doing wrong ?
In my userlist is “backup:x:503:503:Linux User,,,:/home/backup:/bin/ash”. I have set also the execute/owner right over the ghettoVCB.sh but no changes.
Should i really su to root to execute the VCB.sh ? How can I do this in my VCB.bat ?
Thanks for your help. We really appreciate that!
Best Regards,
Genov
Rparamount |
Unfortunately Binderer, I’m not sure what the issue is as I never tried to configure it that way before. I would post on William Lam’s site where his script is posted which I linked to in my blog post. He should be able to help you out better than I can.
However if I do hear of the answer I will let you know.
-Cheers, RP
Yeled1976 |
Hi
i am trying to schedule the task to run but with no success.
if i run the script from the console of the esxi i have no problem.
if i run it from the plink command it will just move a line down and create an empty backuplog.txt in the folder.
do you have any idea what i should do next?
in addition, when i run the script from the server itself and would like to stop the backup.
should i “ps” and see where ash process is running and just kill it?
thanks
Rparamount |
Hi Yeled1976, try removing the pipe to the backuplog.txt and see how that goes for you. I believe that text file will be empty unless there are any errors that appear.
As for cancelling it, you can kill the process like you mentioned and then you also have to connect to your ESXi server with the VMware client and delete the snapshot that was created by the script. That should do it.
-RP
Binderer |
Hallo again Raj,
any Results on our issue ?
Thanks
Rparamount |
Hi Binderer, please post your questions [A href="http://communities.vmware.com/docs/DOC-8760"]here for William Lam’s script.[/A] They should be able to help you there as I am not sure of the answer. Thanks!
-RP
Mcargy08 |
Hi Raj,
I tried to run the batch file but it doesn’t do anything. Like yield said, it will work on the ESXi console but not on windows. Is there something wrong that were doing?
here’s my batch file
c:plink.exe root@192.168.1.113 -pw password “nohup ./vmfs/volumes/datastore2/ghetto.sh /vmfs/volumes/datastore2/vmwarebackups > /vmfs/volumes/datastore2/backuplog.txt &”
Flatpack |
Hi Raj
Thanks for the very useful post
However, I am experiencing the same issues as other people on the posts.
I’ve copied the plink information for the scheduled task and the task runs, but nothing happens, and I get the 0 byte backup log file
The commands run fine on the server, just not remotely
Where should I start looking ?
Thanks
Simon
Mcargy08 |
Hi RP,
Can you advise us with the issues we are having when running the command using plink? It doesnt seem to work.
Thanks,
Raj Perumal |
Hi guys, unfortunately I’m not sure what the answer is. Please direct your questions to William Lam’s posting in the VMware Communities. That’s where you should be able to find the answers you’re looking for. You can find it here at this [A href="http://communities.vmware.com/docs/DOC-8760"]link[/A].
NexusGuy59 |
I have a question, no one has been able to answer.I run ghettoVCB via cron on my ESXi server and it started running this morning I noticed it is still running. Now I know that it failed because I had snapshots already present however my log file is filling up and it’s not letting me stop the process that is running. I thought it would be ghettoVCB, however it is not ghettoVCB after ps|grep ghettoVCB low and behold it doesn’t show up in the output. So I need to know and identify which process is still running the process and kill it, anyone have any ideas at all?
Thanks,