There are many scenarios where you need to export and import Opalis policies, for example between your Opalis development environment and your Opalis production environment. There are actually two places in Opalis Integration Server where you can do a export, first on a policy tab and then on a folder. In this blog post we will look at these two.
If you select Export on a folder you will get the Export dialog box. The Export dialog box allows you to
- Specify file location, where to store the export file
- configure if you want to export sub folders too
- configure if you want to export global settings (for example counters, variables and computer groups)
- configure if you want to export global configuration (options > configuration in the Opalis Integration Server client)
If you export a folder, including a sub-folder, total of two policies, with all default settings in the export dialog box, you get a complete export including the folder structure, global settings, connection settings and policies from the folder and sub folder. As you can see in the picture, the export also includes Global settings that the two policies don’t use. If you already have the global settings you can choose if you want to override them or keep them as they are.
If you do export on a policy tab you will not get the same result as if you right-click a folder and do export. This will only give you the policy that you did the export on and global settings it use. But you will still get the global settings folder structure of the source environment. In the picture above I will get the 1., 1.1, 1.2 and 2  folders under Variables, but as I exported policy 1.2 there will be noting in the folders except for the 1.2 folder.
If for example folder 2. already exists under Variables you get a question asking you if you want to overwrite it or create a new. If you select create new, you will get a new folder named “2. (1)”. If you select override it will merge the folder with the variables to import and the ones in the folder already. You can step through all items and select overwrite or not, for example if you only want to overwrite a couple variables. If you create a new folder during import the policy will be update to use the new variable, even if there already exist one with the same name.
In both export scenario the export file contains data that you not necessary need or want to import into the target environment. To avoid overwrite a policy, connection configuration or setting by mistake you can clean up the export file between export and import. There are a couple of tools from Microsoft partners that can do this, but you can also use a extra Opalis installation. It can be a single server running Opalis where you import the export file, modify it and export to a new file. You then use the new export file to import into the target Opalis environment. In my sandbox that machine is named mrWolf, from the efficient clean-up expert “the Wolf” in Pulp Fiction. 🙂 This Opalis environment is keept total empty by default, it is then very easy to see what data was imported when I run a import. When the clean-up is done, it is easy to see what will be exported, as everything in there will be included.
Please note that this is provided “as is†with no warranties at all.
Hi, thanks for Reading my blog!
Take a look at http://www.systemcentercentral.com/exporting-orchestrator-2012-runbooks-via-powershell/ and http://scorch.codeplex.com/releases/view/92063 . One script for export and a activity for import. You can open the activity in Orchestrator Toolkit and take a look at what it is running in the background.
Hey there,
I visited the MMS this year and I have been in one of your sessions. Good Job man this was very interesting and quite helpful. But now I am getting in some serious Trouble :)..
I am looking for a working solution to Import Policies/Runbooks (including Variables etc.) by command line, for example with powershell. I found a few Solutions with the help of Google, but nothings really works the way i Need it to.
Do you have any ideas ?
Best Regards.
Florian Kemper
[…] export file have meet “mr Wolf†so it should not contain any unnecessary settings or objects. You can download my policies here, […]
[…] export file have meet “mr Wolf†so it should not contain any unnecessary settings or […]
[…] export file have meet “mr Wolf” so it should not contain any unnecessary settings or […]
[…] please note that this is provided “as is†with no warranties at all. Also please read this blog post about export and import of […]