Symantec Management Platform (Notification Server)

 View Only

Use Primal Script to Change SWD Package Info in Batch 

Jul 21, 2009 02:04 PM

Have you ever migrated your SWD package source and needed a way to update and import your XMLs in batch? This walkthrough will show a simple and fast way to change SWD package info in batch using the import/export utility.

Prereq: PrimalScript or equivalent editor

Note: This example walks through changing the source locations to a new source server, but can be used to batch edit anything inside package XMLS.

1. Use the Import/Export utility on the NS to export the entire Windows tree.

   a. Create a folder somewhere( this example uses C:\ ) called SWD-XMLS

   b. Program Files\Altiris\Notification Server\bin\ImportExportUtil.exe /export 73032b0a-2047-42db-82bb-34ff24910911 "C:\SWD-XMLS"

2. Open Primalscript and navigate to "Edit > Replace in Files"

   a. In the "Find Where" box, click "In folder" and navigate to "C:\SWD-XMLS"

   b. In the "Find What" box enter the old source server and share name. i.e. \\server\share

   c. In the "Replace with" box enter the new server and share name, and then click "Replace All"

imagebrowser image

3. Rename the XML folder to "SWD-XMLS-UPDATED"

4. Import the updated XMLS

   a. Program Files\Altiris\Notification Server\bin\ImportExportUtil.exe /import "C:\SWD-XMLS-Updated"

5. Software Packages will be overwritten with the new XMLS. After ImportExport is complete, verify the new sources.

You could easily use other tools to accomplish the same job as Primal Script. A quick and dirty vbscript could also enumerate the XMLS and replace the strings. Hope this helps!

Statistics
0 Favorited
0 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Comments

Mar 31, 2011 05:16 PM

I just did this myself on a sub-set of packages (migrating from one NS to another).  My question is how can I import to a specific folder, if the original package may have been in a sub-folder somewhere?  Can I just put the folder GUID on the command line of the /import command?  I guess I"ll try it.

Related Entries and Links

No Related Resource entered.