VMware Cloud Community
Myersc
Contributor
Contributor

ESX Availability Report Results

I am looking for a powercli script that I can run that will gather, email and reset the information below:

  1. rm /var/log/vmksummary

  2. rm /var/log/vmksummary.html

  3. rm /var/log/vmksummary.d/*

  4. /usr/sbin/logrotate -fv /etc/logrotate.conf

  5. /etc/cron.hourly/vmkheartbeat

  6. /etc/cron.daily/vmkuptimereport

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1026

Craig

Reply
0 Kudos
4 Replies
LucD
Leadership
Leadership

There aren't any cmdlets to interact with the COS.

But you can use the plink.exe command from the PuTTY Suite to do this (provided you allow ssh access for root or have sudo set up correctly.

See for example how plink.exe can be used.

____________

Blog: LucD notes

Twitter: lucd22


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
Myersc
Contributor
Contributor

We are moving away from ESX to ESXi and are not enabling SSH so that is out

I am attempting to move from running a script on each host to gather this info to running a single script on the vCenter.

Reply
0 Kudos
DSTAVERT
Immortal
Immortal

You can set remote logging to a syslog server for ESXi. You can also use the vMA appliance to collect logs.

-- David -- VMware Communities Moderator
LucD
Leadership
Leadership

Shouldn't you be looking at the vMA in that case ?

The problem is that there are currently no cmdlets for this type of actions and the APIs that are used for this are afaik not public.

____________

Blog: LucD notes

Twitter: lucd22


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos