VMware

This Question is Answered

1 "helpful" answer available (6 pts)
3 Replies Last post: Jul 20, 2007 3:41 PM by oreeh  

Service command posted: Jul 20, 2007 3:35 PM

Click to view VMwareSME's profile Enthusiast 29 posts since
Nov 9, 2006
I am supporting an ESX 3.0.1 image that I did not create.

The image is created by a linux group.

I use to be able to get these commands to work.

service sshd restart
reboot

But they are not working anymore.

The command that works instead are below.

/etc/init.d/sshd restart
shutdown -r now

Does anyone know if these are custom vmware commands? And like in the dos world, i have to include it in a path statement?

I'm trying to see why the commands do not work now.

Thanks.

Re: Service command

1. Jul 20, 2007 3:37 PM in response to: VMwareSME
Click to view oreeh's profile Guru User Moderators vExpert 9,985 posts since
Nov 30, 2005
service and reboot are normally available on ESX.
Check the different shell profile settings for broken path settings.

Re: Service command

2. Jul 20, 2007 3:40 PM in response to: VMwareSME
Click to view Dave.Mishchenko's profile Guru User Moderators vExpert 9,179 posts since
Nov 15, 2005
It may be that you're logged in with account with minimal rights. You can run the command
su -

and then enter the root password to switch to the root login. You'll then be able to run the service and reboot commands without worrying about paths.

Re: Service command

3. Jul 20, 2007 3:41 PM in response to: Dave.Mishchen…
Click to view oreeh's profile Guru User Moderators vExpert 9,985 posts since
Nov 30, 2005
without root rights "shutdown" shouldn't work

VMware Beta Programs

Want to be Considered for Future Beta Programs?

Learn More

VMware Developer

Download SDKs, APIs, videos,
training, and more in the Developer community.

Learn More

Developer
Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld
Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

Only VMware ... Delivers Nexus 1000V

Ensure consistent, policy-based network capabilities to virtual machines across your data center.

Learn More

Communities