VMware Cloud Community
js40687
Contributor
Contributor

vCenter 4.1 Update Manager CLI report on compliance

I've upgraded to vCenter 4.1 and PowerCLI 4.1 and using the Update Manager CLI add on 4.1 etc, I'm trying to run a scheduled compliance check for the security guys to see what outstanding patches there are per server. I'm using the -Detailed parm which seem to just add the actual number of patches missing and not the individual patches themselves, am I meant to be able to get that level of info? It also seems to truncate the columns, which in itself isn't a problem as it ain't showing the info I want anyway. I'm simply using the following and am onbiously missing something regards formatting

connect-viserver etc

get-compliance -Entity -Detailed

Do I need to select additional columns?

Thanks

Jim

Reply
0 Kudos
1 Reply
LucD
Leadership
Leadership

The truncated columns is because you're using the default display format for that type of object.

Display as a list or display all properties will most probably show what you need.

Get-Compliance -Entity (Get-VMHost <hostname>) -Detailed | fl
# or
Get-Compliance -Entity (Get-VMHost <hostname>) -Detailed | Select *

____________

Blog: LucD notes

Twitter: lucd22


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

Reply
0 Kudos