fortypoundhead.com

ESX Management Agents Restart, Command Line Style

Posted On 2013-06-30 by dwirch
Keywords:
Tags: VMWare Products Tip Tutorial ESX
Views: 857


From time to time it may be necessary to restart the management agents on an ESXi server. The process is very straightforward, and is non-intrusive to the functioning of the virtual machines hosted there.

This allows you to SSH or telnet into the afflicted host, and perform basic functions that would normally require you to open the iLO Remote Console via the blade management interface, or (gasp) go to the console physically. However, utilizing a remote command prompt method is much quicker.

In order for to perform this action, you must have Remote Tech Support mode enabled.

Utilizing your favorite secure telnet or SSH client, such as PuTTY, connect to the ESX server that you need to restart the management agents on. Since there is no Active Directory integration, you’ll be utilizing the local account in order perform this operation. In this demonstration, I am using the root account, but for security reasons, you should never allow root remote access. Create a different elevated account to perform these types of functions.

After logging you’ll be presented with a screen such as this:
login as: root
root@myesxserver's password:
You have activated Tech Support Mode.
The time and date of this activation have been sent to the system logs.

VMware offers supported, powerful system administration tools. Please
see www.vmware.com/go/sysadmintools for details.

Tech Support Mode may be disabled by an administrative user.
Please consult the ESXi Configuration Guide for additional
important information.

~ #

In order to restart the management agents, two commands are required. The transcript of a typical agent service restart session is shown below, with the user input shown in bold italic.
[root@myesxserver root]# service mgmt-vmware restart.
Stopping VMware ESX Server Management services:
   VMware ESX Server Host Agent Watchdog                [ OK ]
   VMware ESX Server Host Agent                         [ OK ]
Starting VMware ESX Server Management services:
   VMware ESX Server Host Agent (background)            [ OK ]
   Availability report startup (background)             [ OK ]
[root@myesxserver root]# service vmware-vpxa restart.
Stopping vmware-vpxa:                                   [ OK ]
Starting vmware-vpxa:                                   [ OK ]
[root@myesxserver root]# exit.

After the services have been restarted, the exit command is given in order to close the session and log off. Your management agents are now restarted.


About the Author

dwirch has posted a total of 172 articles.

 


Comments On This Post

No comments on this post yet!


Do you have a thought relating to this post? You can post your comment here. If you have an unrelated question, you can use the Q&A section to ask it.

Or you can drop a note to the administrators if you're not sure where you should post.


Your IP address is:54.211.127.89

Before you can post, you need to prove you are human. If you log in, this test goes away.



Recent Forum Posts

Job Spammer: Sathya Narayana
dwirch posted on March 15, 2017 at about 7:18 in Spammers

Job Spammer: Manish Kumar
dwirch posted on March 14, 2017 at about 17:44 in Spammers

Site Migration Complete
dwirch posted on March 12, 2017 at about 11:10 in Site News

Site Migration Complete
dwirch posted on March 11, 2017 at about 0:35 in Site News

Job Spammer: Jason Weinstein
dwirch posted on March 10, 2017 at about 14:00 in Spammers

Job Spammer: Ryan Wilson
dwirch posted on March 8, 2017 at about 17:00 in Spammers