How to add multiple sessions from template folder

How to add multiple sessions from template folder

avatar

Hi,

I asked this once before but we never really got it to work and now with the new version I thought I might give it another try.

What we want to accomplish is to add a new office (lets take Berlin as an example) to our rdpm database from a template folder (already in rdpm).
All the offices are identical (Hardware, IP Addresses, links, ect....) the only difference is the name (we use airport designations) and the subnet of course.

I created a folder in our database called #template, containting all subfolders (switches, ups, esxi, ect.....) and sessions.
In all the sessions names i put "XXX" instead of the real name (for the example it would be BER) and in all the ip´s in place of the subnet there is "YYY".

There are no credentials in the template sessions

So a session in this template folder looks like

XXX-SW-001 with configuration http://10.20.XX.21

and so on (in total its about 25 session entries)

Now (assuming I explained it comprehensibly :)) what I want is a way to duplicate this entire #template folder including all sub folder and sessions, replace the XXX values with BER and YYY with "25"

A collegaue suggested to export the #template folder to a .rdm, use an editor to quickly change XXX and YYY values and to reimport the modified .rdm file.
Im not sure if this is a good idea because the IDs for the sessions entires would be the same.


Any help is greatly appreciated.
I have been asked about this feature a lot and never was able to figure out how to do it right.

If I have been going about this in a completely wrong way and there is a much simpler way to achieve this, please enlighten me.


Thank you very much

All Comments (5)

avatar

Hi,
In the v8, it's possible to save a group of session as template. All you need to do is create the folder structure with the content and use the ribbon button "Save as Template" this will create a group of sessions and you will be able to do add from template later.

I hope this help

David Hervieux

avatar

Hi,

this is not quite what I was looking for but definatly a step in the right direction.
It copies the template as is (including the XXX and YYY values of course).
So it sill requires manual editing of each single session entry.

Is there a way to export the #template folder, modify it with notepad and reimport it?
I exported as .rdm and modified it, but when i try to import the file it says the sessions already exists, probably because of the id.

I did not dare to click "add anyway"
edited by Aurum on 12/11/2012

avatar

Have you tried the Copy and Paste functionality found in the ribbon? You can copy it in notepad and paste it again.
edited by dhervieux on 12/11/2012

David Hervieux

avatar

copies the ID too, creation date and everything.
More work that way than creating new sessions

I think exporting the group to rdm, modifying the rdm file and then reimporting looks promising.
But im not sure what would happen if I click "Add anyway" when reimporting the modified rdm file.


I dont really want to make any experiments with our productive database.

Ill make a database copy and test.

avatar

Works like a charm :)

1. Create your template folder with sessions
2. export to .rdm file
3. edit the exported .rdm file, replacing the xxx and yyy values
4. create new folder
5. import the modified file, when asked hit -> add anyway.

If you export the content of the new folder again you will see ne IDs

Could have thought of that a long time ago.