VMware Cloud Community
mominn
Contributor
Contributor

Export/import Baseline from update manager 5.x to 6.1

Hi ,

We are trying to export/import VUM 5.1 baselines to VUM 6.0. We tried using the scripts provided in VMware blog but we are not able to get the result.

Scripts https://communities.vmware.com/docs/DOC-11973

Script https://pubs.vmware.com/vsphere-51/index.jsp?topic=%2Fcom.vmware.vsphere.update_manager.doc%2FGUID-F...

Our existing environment has 3 VUM on 5.1 and about 50+ baselines. New environment is on 6.1.

When we try to run the script as per the above links ,we pass through till line 3 and then we get error as ExportImpotBaselines.ps1 is not a cmdlet. If we remove line 4 then we get Param is not a proper cmdlet.

Script -----------------------------------------------------------------------

$destinationServer = Connect-VIServer <ip_address_of_the_destination_server>

$sourceServer = Connect-VIServer <ip_address_of_the_source_server>

$baselines = Get-PatchBaseline MyBaseline -Server $sourceServer

ExportImportBaselines.ps1 $baselines $destinationServer

Param([VMware.VumAutomation.Types.Baseline[]] $baselines, [VMware.VimAutomation.Types.VIServer[]]$destinationServers)

------------------------------------------------------------------------------

We are using VMware Power CLI 6.3 which is having vSphere Update Manager PowerCLI integrated.

Are we missing some thing?  The above links is written for versions 5.1 we tried for exporting from 5.1 to 6.1 but failed.

Can some one help us ? Has any one used the above scripts for other VUM versions?

Regards,

mominn

Reply
0 Kudos
1 Reply
LucD
Leadership
Leadership

To start, do you have the script ExportImportBaselines.ps1 in your current folder?

You can also give a full path, for example "C:\Scripts\ExportImportBaselines.ps1"


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

Reply
0 Kudos