I'd like to schedule and script XPSExplorer / XPSExport tasks. Is it possible/feasible to write a perl or shell script to run XPSExplorer to create xcart files or is it only possible to do that manually?
Could someone assist Eric here?
Just my view, however this is a forum so someone else may have a better thought.
I am going to try and answer this differently first, by taking into Consideration what are the important inputs XPSExplorer would need to create a xcart file.
[A] Traversal Path or Sequence number of the Object.
[B] Object Name or XID.
Lastly I think given the complexities, it may not be possible to fully script it and would incur manual intervention. I'd be better off generating the xcart files manually.
I agree to what Hubert said in the earlier post. It doesn't make much business sense to me scripting/automating XPSExplorer.
However, if you would like to schedule a regular export of a particular domain(s)/policy(s) etc or if you would like to perform a full back of your policy store at a regular interval then it makes perfect sense to script/automate XPSExport and I see no reason why that it would not be possible.
or even CRON/AT it....
thanks for the advice...CA Support informed me that xpsexplorer cannot be scripted.
"XPSExplorer is an interactive tool and you can't be automate or use the replay file. You need to go to XPSExplorer manually each time you want to add something into XCart files."
I tend to agree with that for XPSExplorer..but you should be able to script XPSExport.
Did you try ?
Actually, I didn't because using the same xcart file doesn't really address our needs, mainly to backup the policy store and track changes. The most tedious part of that process is creating a new xcart file using xpsexplorer, so after that is complete running xpsexport is very easy. I'd rather be able to script xpsexplorer.
I would suggest to create xcart using XPSExplorer manually and later by using xcart XID of objects like agent, ACO, Domain can be obtained using Java file reader now by using Java for shell execution XPSExport can be called to get final XML file.
I have developed the utility using a combination of Java and shell script on top of siteminder.
If you guys need I can attach code and documentation.
Can you attach the code and documentation?
Sure, give me 2 days. Content would be shared.