I'm currently getting ready to upgrade our infrastructure from vCenter 2.5 and ESX 3.5 to vCenter 4 and ESX 4 (vSphere). One of the things I've been thinking about lately is all the folders we have and all the permissions we have applied to those folders and to various objects within vCenter. I'm doing a fresh install of vCenter and we'll be moving to a new database so we'll lose all of the folders and permissions.
How are some ways people are replicating folders/permissions after a fresh install of vCenter on a new database? Powershell scripts? Something else?
Any help would be appreciated. Thanks.
Here is a PowerCLI script to export/import roles/permissions: http://www.virtu-al.net/2009/06/15/vsphere-permissions-export-import-part-1/
I'm not sure if there is a script out there to capture the folder structure and re-create, but here is a vSphere SDK for Perl script that might give you some ideas:
=========================================================================
William Lam
VMware vExpert 2009
VMware ESX/ESXi scripts and resources at:
VMware Code Central - Scripts/Sample code for Developers and Administrators
If you find this information useful, please award points for "correct" or "helpful".
Hello,
Moved to vCenter Server Forum.
I think you will need to query the old db and import the folders/etc. into the new server. I had the same issue but just upgraded the db. This way I did not have to start from scratch.
Best regards,
Edward L. Haletky VMware Communities User Moderator, VMware vExpert 2009
Virtualization Practice Analyst[/url]
Now Available: 'VMware vSphere(TM) and Virtual Infrastructure Security'[/url]
Also available 'VMWare ESX Server in the Enterprise'[/url]
[url=http://www.astroarch.com/wiki/index.php/Blog_Roll]SearchVMware Pro[/url]|Blue Gears[/url]|Top Virtualization Security Links[/url]|
[url=http://www.astroarch.com/wiki/index.php/Virtualization_Security_Round_Table_Podcast]Virtualization Security Round Table Podcast[/url]
Here is a PowerCLI script to export/import roles/permissions: http://www.virtu-al.net/2009/06/15/vsphere-permissions-export-import-part-1/
I'm not sure if there is a script out there to capture the folder structure and re-create, but here is a vSphere SDK for Perl script that might give you some ideas:
=========================================================================
William Lam
VMware vExpert 2009
VMware ESX/ESXi scripts and resources at:
VMware Code Central - Scripts/Sample code for Developers and Administrators
If you find this information useful, please award points for "correct" or "helpful".