VMware Cloud Community
daniellynn
Enthusiast
Enthusiast

attaching a baseline

I'm trying to attach a baseline to a VM. This command works fine when I run it against my existing VirtualCenter 2.5 server:

attach-baseline -entity (get-vm vm_name) -baseline (get-baseline Windows_Critical)

When I run the same command against our testing vCenter 4 server, I get back this error:

Get-Baseline : Object reference not set to an instance of an object.

At line:1 char:77

+ attach-baseline -entity (get-vm PreProWINBASE64-559) -baseline (get-baseline <<<< Windows_Critical)

I've also tried it with get-baseline -Name Windows_Critical but that gets the same error.

Does anyone know why that may be happening? Do those functions work differently now? Also, I tried downloading the newest vSphere PowerCLI tool to my workstation to see if I needed to use the newest version of the CLI with vCenter 4, but that doesn't have any of the baseline functions in it at all.

0 Kudos
3 Replies
LucD
Leadership
Leadership

Update Manager cmdlets are not supported anymore since VITK 1.5

And the cmdlets available in VITK 1.0 showed strange behavior in some cases.


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

daniellynn
Enthusiast
Enthusiast

Is there a different way to do it? I didn't see it rolled into the SDK in the change notes, but I suppose I could've missed it.

0 Kudos
LucD
Leadership
Leadership

You can find some APIs for managing host patches in the HostPatchManager object.

But APIs for managing baselines and patching guest are not available afaik.


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

0 Kudos