alanrenouf / vCheck-vSphere

vCheck Daily Report for vSphere
MIT License
735 stars 326 forks source link

98 vSwitch Security : apparently not working #71

Closed alexdga closed 10 years ago

alexdga commented 11 years ago

I use vCSA 5.5 I tried to turn on some security settings on various portgroups but nothing is reported.

kevaarts commented 11 years ago

I have setting that should have this show something in the report but get nothin. So i ran in powercli 5.5 manually and i get the following error --> The term 'Get-VDPortGroup' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, o r if a path was included, verify that the path is correct and try again. At C:\Scripts\vCheckTest\vCheck-vSphere-master\Plugins\98 vSwitch Security.ps1:35 char:16

alanrenouf commented 10 years ago

@kevaarts, it sounds like you are not using the latest version of PowerCLI.

Sneddo commented 10 years ago

Yep, looks like PowerCLI 5.1 Release 2 (Released 11 February 2013) was the first version to include this cmdlet: https://www.vmware.com/support/developer/PowerCLI/changelog.html#PowerCLI51R2

Might have a look at adding a version check to the plugin

Sneddo commented 10 years ago

This is actually two issues:

  1. VMware.VimAutomation.Vds snap-in is not loaded,
  2. As mentioned before, the cmdlet is only added in 5.1 Release 2.

Will be submitting a pull request to fix this in the next couple of hours (hopefully)

Sneddo commented 10 years ago

Whoops, the commit message referenced the wrong Issue.

This one can be closed :) https://github.com/alanrenouf/vCheck-vSphere/pull/98