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

LVL 21
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Have you had a look at Opvizor - http://www.opvizor.com/

(free trial available!)
compdigit44Author Commented:
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 / EE MVE^2)VMware and Virtualization ConsultantCommented:
have you tried Event-O-Matic

IT Pros Agree: AI and Machine Learning Key

We’d all like to think our company’s data is well protected, but when you ask IT professionals they admit the data probably is not as safe as it could be.

compdigit44Author Commented:
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"Batchelor", Developer and EE Topic AdvisorCommented:
You are not using vCenter Server? Because it will allow retrieval of all managed hosts at once.
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
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
compdigit44Author Commented:
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 / EE MVE^2)VMware and Virtualization ConsultantCommented:
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.
compdigit44Author Commented:
Can Ruby be used from a Widnows 7 workstation that connects to vCenter?
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:


before you get into Ruby, you may want to see what it can offer, on vCenter for WIndows (already installed!).

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.