Avatar of compdigit44
compdigit44
 asked on

PowerCli 5.1 - Get all Warning Events from host

We have a very large Vmware environment with 8 clusters and 43 hosts. I would like a way to view all warning events from all of my host at once

I tried using the get-host | get-vievent -type warning but it did not work

I am looking for a format like: host name  date of event   warning info

suggestions
VMware

Avatar of undefined
Last Comment
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

8/22/2022 - Mon
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

Have you had a look at Opvizor - http://www.opvizor.com/

(free trial available!)
compdigit44

ASKER
Thanks Hancock!!!

We actually use Foglight by Quest and was looking for a command-line way to get this information as backup if the vAPP was down and to expand my own powercli knowledge. :-)

Thanks Again!!!
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

have you tried Event-O-Matic

http://www.lucd.info/tag/event/
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
compdigit44

ASKER
No I have not heard of Even-o-matic... I am surprise that isn't an easy way to view all event of a specific type from one window...

I will check out this tool morning tomorrow though
Qlemo

You are not using vCenter Server? Because it will allow retrieval of all managed hosts at once.
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

I get a nice even list using Ruby vSphere Console (RVC) on vMA 5.5

events -n 50 /vcenter/DCS

and you can specify, storage, datastores, vms, hosts, networks
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
compdigit44

ASKER
Thanks Hancock..... We are no using the vMA......

Am I missing something that is informal is not readily available by default...

As always you are a source of information :-)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

vMA - You should really, as it includes all the tools, easily at your disposal!

It's just an Import from OVF, takes minutes to get up and running, join to Active Directory, so anyone can login, and run vCLI, esxcli, script etc

Events has always been one of those missing things, they don't get reported by Syslog, VMKernel, they just appear in vCenter, and then after 24 hours, disappear off the screen, but the data is in the SQL database - but awkward to get at!

e.g. like what user delete a VM, what user Power-On on a VM - these are handy for audits....

We use Ruby vSphere Console (RVC) on vMA, but also remember this is available in vCenter for Windows and also vSphere Appliance!

So you'll have access to it somewhere, and it's quicker, that writing scripts to get info really quickly.
compdigit44

ASKER
Can Ruby be used from a Widnows 7 workstation that connects to vCenter?
Your help has saved me hundreds of hours of internet surfing.
fblack61
ASKER CERTIFIED SOLUTION
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.