fortypoundhead.com

ESX Management Agents Restart, Command Line Style

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


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 181 articles.

You can find more information from dwirch by visiting http://www.derekwirch.com.


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.81.45.122

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




Recent Forum Posts

Advanced search added
dwirch posted on September 23, 2017 at about 13:44 in Site News

Job Spammer: Gaurav Mehta - AgreeYa Solutions
dwirch posted on September 22, 2017 at about 10:35 in Spammers

Job Spammer: Prutha Siri - Javelin Systems
dwirch posted on September 10, 2017 at about 6:15 in Spammers

New security implemented
dwirch posted on September 7, 2017 at about 7:16 in Site News

Malicious IP Checker Companion Tool
dwirch posted on August 12, 2017 at about 20:24 in Site News

Job Spammer: Steve Adams
dwirch posted on August 8, 2017 at about 7:44 in Spammers