alanrenouf / vCheck-vSphere

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

Plugins/80 DvPG with less than x Ports Free.ps1 failure #25

Closed karlheinz-hildebrandt closed 10 years ago

karlheinz-hildebrandt commented 11 years ago

The term 'Get-VDSwitch' is not recognized as the name of a cmdlet, function, script file, or operable program.

The term 'Get-VDPortgroup' is not recognized as the name of a cmdlet, function, script file, or operable program.

vmdude commented 11 years ago

I think these cmdlet are available from PowerCLI since PowerCLI 5.1 R2 only (check on http://www.virtu-al.net/2013/02/11/powercli-5-1-r2-released/)

karlheinz-hildebrandt commented 11 years ago

Hello Mr. Martin,

you were right. After installing the mentioned PowerCli version the cmdlets are available.

now there comes the message:

Get-VDPortgroup : Cannot validate argument on parameter 'Name'. The argument is null or empty. Supply an argument that is not null or empty and then try the command again. At C:\vCheck\Plugins\80 DvPG with less than x Ports Free.ps1:11 char:22

Mit freundlichen Grüßen

Karl-Heinz Hildebrandt

Aluminium Norf GmbH 41403 Neuss ORGIV Telefon: 02131/9378256 Telefax: 02131/9378759

eMail: Karl-Heinz.Hildebrandt@AluNorf.de

Bitte denken Sie an die Umwelt, bevor Sie diese Mail ausdrucken.

         Frederic MARTIN                                               
         <notifications@gi                                             
         thub.com>                                                  An 
                                     alanrenouf/vCheck-vSphere         
         26.06.2013 17:37            <vCheck-vSphere@noreply.github.co 
                                     m>                                
                                                                 Kopie 
          Bitte antworten            karlheinz-hildebrandt             
                an                   <karl-heinz.hildebrandt@alunorf.d 
         alanrenouf/vCheck           e>                                
          -vSphere <reply                                        Thema 
         +i-16034801-32fb7           Re: [vCheck-vSphere] Plugins/80   
         f9df196a015d260d2           DvPG with less than x Ports       
         ce7618fb751138b18           Free.ps1 failure (#25)            
         1-4834626@reply.g                                             
            ithub.com>                                                 

I think these cmdlet are available from PowerCLI since PowerCLI 5.1 R2 only (check on http://www.virtu-al.net/2013/02/11/powercli-5-1-r2-released/)

— Reply to this email directly or view it on GitHub.


ALUMINIUM NORF Gesellschaft mit beschränkter Haftung Sitz: Neuss; Registergericht: Neuss HRB 1271 Geschäftsführung: Dr. Hans Peter Kneijnsberg; Thomas Geupel stellv. Vorsitzender des Aufsichtsrats: Marcelo Bianco

jonathanmedd commented 11 years ago

I think you might want to consider 2 things for this plugin:

1) Check for the PowerCLI version before attempting to run any of the cmdlets 2) Check whether any DVSwitches exist before carrying out any checks on them

alanrenouf commented 11 years ago

Nice additions Jonathan, I agree

karlheinz-hildebrandt commented 11 years ago

Yes, you are right. Sorry, i am blushing.

Mit freundlichen Grüßen

Karl-Heinz Hildebrandt

Aluminium Norf GmbH 41403 Neuss ORGIV Telefon: 02131/9378256 Telefax: 02131/9378759

eMail: Karl-Heinz.Hildebrandt@AluNorf.de

Bitte denken Sie an die Umwelt, bevor Sie diese Mail ausdrucken.

jonathanmedd notifications@github.com 27.06.2013 17:37 Bitte antworten an alanrenouf/vCheck-vSphere reply@reply.github.com

An alanrenouf/vCheck-vSphere vCheck-vSphere@noreply.github.com, Kopie karlheinz-hildebrandt karl-heinz.hildebrandt@alunorf.de Thema Re: [vCheck-vSphere] Plugins/80 DvPG with less than x Ports Free.ps1 failure (#25)

I think you might want to consider 2 things for this plugin: 1) Check for the PowerCLI version before attempting to run any of the cmdlets 2) Check whether any DVSwitches exist before carrying out any checks on them ? Reply to this email directly or view it on GitHub.


ALUMINIUM NORF Gesellschaft mit beschränkter Haftung Sitz: Neuss; Registergericht: Neuss HRB 1271 Geschäftsführung: Dr. Hans Peter Kneijnsberg; Thomas Geupel stellv. Vorsitzender des Aufsichtsrats: Marcelo Bianco