Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

SVSGlobalEx

Updated: 29 Jul 2010 | 8 comments
Jordan's picture
0 0 Votes
Login to vote

I've recently had a few people message me about Global Excludes in SVS. The specific problem they seem to be having is if they exported a layer, the Global Excludes don't export. To help people that want to be able to do this I've written a quick tool that will help in the process.

SVSGlobalEx is a command line tool that will either export or import a Global Exclude list. This list is an XML file that the tool generates on use (or you could make your own if you wished). Used in conjuction with SVS OnEvents and the OnEvent Meta Directory you can set something to save global excludes into the VSA on Export and to import them when a layer is imported.

Update: SVSGlobalEx now calles FSL2ReloadExcludeList so the computer doesn't need to be restarted or SVScmd used for the changes to come into effect.

Usage

This tool requires .NET 3.5 to run

SVSGlobalEx takes a path or one of two switches and uses a file named SVSGlobalEx.xml

  • [/E]xport will save SVSGlobalEx.xml to the path entered.
  • [/I]mport will import SVSGlobalEx.xml from the path entered, then deletes the XML file.

So a sample use would be: SVSGlobalEx "C:\\" /E

OnEvent Use

There are two articles you need to read before using SVSGlobalEx with OnEvents; These are:

  1. How to use OnEvent
  2. Using the Meta Folder

I would use the export function with OnPreExport and save it to the Meta directory of the layer you're exporting. This will require you to first find the proper read-only layer in the FSLRDR directory and second create said Meta directory. I'd also place a copy of SVSGlobalEx into that meta folder for use on Import.

With import I'd use it with OnPostImport.

If you don't use the meta folder with Import then the Global Excludes will get saved into the layer itself and never get loaded.

License: Altiris EULA
By downloading this software, you agree to the terms and conditions in the Altiris End User License Agreement
Support: User-contributed tools on the Juice are not supported by Altiris Technical Support. If you have questions about a tool, please communicate directly with the author by visiting their profile page and clicking the 'contact' tab.

Comments

Jordan's picture
24
Mar
2008
0 Votes 0
Login to vote

Reloading Global Excludes

I forgot about SVSCMD's reload command for global excludes at the time of writing this which is why the tool doesn't call it.

I've also just got the SVS API information for global excludes so I plan on updating the tool to use the API that reloads the exclude list for you sometime this week (time permitting).

If a forum post solves your problem please flag is as the solution

Jordan's picture
26
Mar
2008
0 Votes 0
Login to vote

SVSGlobalEX has been

SVSGlobalEX has been updated, it now calls the FSL2ReloadExcludeList api after the import of the global excludes so you don't have to restart or use SVScmd for the excludes to work.

If a forum post solves your problem please flag is as the solution

mitsaoua's picture
20
Aug
2010
0 Votes 0
Login to vote

Hi Jordan, We need to do an

Hi Jordan,

We need to do an addition to the Global Excludes and a Forum search led me to this post.  Since it's been a while since this tool was posted I thought I'd check first if it still works with version 6.1 of SWV...

Thank you,
Dimitris

mitsaoua's picture
20
Aug
2010
0 Votes 0
Login to vote

System.NullReferenceException with SVSGlobalEX

I am getting the following error:

Unhandled Exception: System.NullReferenceException: Object reference not set toan instance of an object.   at SVSGlobalEx.Program.Main(String[] args)

Any insight?

Jordan's picture
20
Aug
2010
0 Votes 0
Login to vote

It probably doesn't I'll need

It probably doesn't I'll need to look at the code this weekend and see if I can get it working for you.

If a forum post solves your problem please flag is as the solution

mitsaoua's picture
20
Aug
2010
0 Votes 0
Login to vote

SVSGlobalEx and SWV 6.1

Hi Jordan,
that would be very appreciated.

Dimitris

mitsaoua's picture
23
Aug
2010
0 Votes 0
Login to vote

SVSGlobalEx and SWV 6.1

Hi Jordan,
did you get a chance to look into this?

D.

Jordan's picture
24
Aug
2010
0 Votes 0
Login to vote

Yes.  I did a stupid thing

Yes.  I did a stupid thing and hard coded some paths that we now no longer use.  I'm not sure when I'll have time to fix this but I'll try to get to it ASAP.

If a forum post solves your problem please flag is as the solution