Friday, April 27, 2012

Esxtop 2/4 – accessing esxtop remotely

On my last post I comment about how to use esxtop to gather performance data from your ESXi hosts.

The problem with esxtop is:
It’s a tool you can only run when you are connected into the host, either by an SSH session or locally on the console.

VMware recommendation for a more secure environment is to disable those accesses and manage it remotely with the VMware management tools.

So, how do we access ESXi performance counters remotely ?

If you are a fan of PowerCli you can use Get-EsxTop cmdlet.
It’s a bit trick to use it, you will need to pass few statements to the cmdlet.

I’ll give you a start.

-       Connect on the host: Connect-VIServer –server “your_host”
-       type: Get-EsxTop –server “your_host” –CounterName “counter”| select *

 To get a list of all counters available type:

-       Get-EsxTop –server “your_host” –Counter

Get-Esxtop does not work when connected against with vCenter, so make sure you established a connection directed with the host.

If you have vSphere Management Assistance(vMA) available on your environment, it might be a little easier:

-       Connect on vMA
-       Establish a connection with your vCenter.
-       Type: resxtop –server “your_host”

That’s all !! You will have the same interface esxtop provides.
The beauty of using this tool is that you don’t even need to have access to the root’s password, use your vCenter credentials to login on vCenter and the commands will be send through it.

See you next.

No comments:

Post a Comment

Who am I

My photo
I’m an IT specialist with over 15 years of experience, working from IT infrastructure to management products, troubleshooting and project management skills from medium to large environments. Nowadays I'm working for VMware as a Consulting Architect, helping customers to embrace the Cloud Era and make them successfully on their journey. Despite the fact I'm a VMware employee these postings reflect my own opinion and do not represents VMware's position, strategies or opinions. Reach me at @dumeirell

Most Viewed Posts

Blog Archive