Automation

 View Only
  • 1.  attaching a baseline

    Posted Jun 29, 2009 02:38 PM

    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.



  • 2.  RE: attaching a baseline

    Posted Jun 29, 2009 09:10 PM

    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.



  • 3.  RE: attaching a baseline

    Posted Jun 29, 2009 09:15 PM

    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.



  • 4.  RE: attaching a baseline

    Posted Jun 29, 2009 09:27 PM

    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.