Export/import baselines from one Update Manager server to another

Export/import baselines from one Update Manager server to another

This script exports/imports baselines from one Update Manager server to another.

Before running the script, make sure that you have VI Toolkit 1.0 and Update Manager - PowerShell Library installed on your machine.

To use the script

1. Run the Get-Baseline cmdlet to retrieve the baselines to import.

2. Run the script using the retrieved baselines and one or more destination VirtualCenter servers as parameters.

For each supplied baseline, the script creates a duplicate on the destination server(s).


Feedback welcome!

Attachments
Comments

Great script ! Keep them coming.

Any idea if it is feasible to move a complete VUM between different VCs ?

It would require a copy of the Updates folder of course.

But that location could be obtained from the vci-integrity.xml file I suspect ?

Hi bbambalova,

could you print there a sample? Step by step?

I didn't get it running, but im a toolkit beginner.

i used

get-baseline test* | c:\ps\ExportImportBaselines_VUMU2.ps1 "destinationVC"

But i got every time errors.

rgds

Are you using VITK v1.5 ?

The VMware.VumAutomation snapin doesn't work with VITK v1.5, you have to use it for now from VITK v1.

No I'm using VITK v1.

What error messages are you getting ?

Hi strigl,

This is how I use the script:

$destinationServer = Connect-VIServer

$baselines = Get-Baseline test*

c:\ps\ExportImportBaselines_VUMU2.ps1 $baselines $destinationServer

I'm not sure why the script file can't accept parameters by pipeline, but i will research.

Biliana

Hi bbambalova,

YES - that's it!!

That way it is running.

Thank you very much!

strigl

Thanks LucD:)

I'm not sure I understand you correctly. Do you want to move all software updates, or you want to avoid vum installation for each VCs?

I was thinking of copying all the SW updates to the 2nd VUM.

Avoids downloading them again and could be a good solution for an isolated VUM.

That's a good point, but i think this is not feasible.

this script will fill a need for us. I gather from the name that it is targeted for Update 2? We are running Update 3.

The following error results from running the script:

New-Baseline : Cannot bind argument to parameter 'IncludeUpdate' because it is

null.

At C:\ps\exportimportbaselines_vumu2.ps1:64 char:153

+ New-Baseline -Server $destinationServer -Name $baseline.Name -Des

cription $baseline.Description -TargetType $targetType -Dynamic -IncludeUpdate

<<<< $includeUpdates -ExcludeUpdate $excludeUpdates -SearchUpdateStartDate $ba

seline.SearchUpdateStartDate -SearchUpdateEndDate $baseline.SearchUpdateEndDate

-SearchUpdateLanguage $baseline.SearchUpdateLanguage -SearchUpdateProduct $bas

eline.SearchUpdateProduct -SearchUpdateSeverity $baseline.SearchUpdateSeverity

-SearchUpdateType $baseline.SearchUpdateType

============================================

is this a result of being U 3 and not U2?

Thanks

I don't think that the problem is you are running U3. It seems that the included updates in this baseline, missed on the destination server. Could you try to redownload all the updates on your vum destination server.

Version history
Revision #:
1 of 1
Last update:
‎02-09-2009 06:36 AM
Updated by: