VMware Cloud Community
Twanoo
Contributor
Contributor
Jump to solution

PowerShell Plus and PowerCLI

Hello everybody.

Can someone help me getting the "Idera PowerShell Plus" tool, working with PowerCLI?

because when I try to use PowerCLI cmdlets like "Connect-VIServer" it keep telling me that the term don't exist.

The purpose of all that, is to use the Variable inspector of "PowerShell Plus" to analyse my alarm definition object,

and this way recreate my vcenter alarms as default.

Any idea for me?

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

You need to load the PowerCLI snapin.

Add-PSSnapin VMware.VimAutomation.Core

A good way of doing that is through one of the profile files.

Have a look at Tobias's blog entry Profile: Autostart Scripts

____________

Blog: LucD notes

Twitter: lucd22


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

View solution in original post

0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

You need to load the PowerCLI snapin.

Add-PSSnapin VMware.VimAutomation.Core

A good way of doing that is through one of the profile files.

Have a look at Tobias's blog entry Profile: Autostart Scripts

____________

Blog: LucD notes

Twitter: lucd22


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

0 Kudos
Twanoo
Contributor
Contributor
Jump to solution

Again you Luc had the right answer for each of my questions Smiley Wink

it's the code part you gave me by email :

$alarmMgr = Get-View AlarmManager

$alarms = $alarmMgr.GetAlarm($null)

$alarms | %{

$alarm

}

used with the snappin, that help me in my alarm analyse Smiley Wink

So thanks again luc!

0 Kudos