Layer7 Access Management

Expand all | Collapse all

Is it possible to script XPSExplorer?

Jump to Best Answer
  • 1.  Is it possible to script XPSExplorer?

    Posted 12-18-2014 05:54 PM

    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?

     

    Thanks!

    Eric



  • 2.  Re: Is it possible to script XPSExplorer?

    Posted 03-26-2015 10:08 AM

    Could someone assist Eric here?



  • 3.  Re: Is it possible to script XPSExplorer?

    Posted 03-26-2015 11:15 AM

    Eric ehansen4

     

    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.

    or

    [B] Object Name or XID.

     

     

    • If we need to script XPSExplorer, one would need to know the Object XID or Sequencing in XPSExplorer menu beforehand, by some form. This in effect means one would need to check this manually beforehand. Hence you would need something manual before executing XPSExplorer script. I would recommend doing the XPSExport feed from XPSExplorer by script and leaving XPSExplorer in manual mode to generate the XCart file input for XPSExport.

     

    • Another reason I wouldn't bother scripting XPSExplorer is by the design of the tool itself. The Menu's on the tool keeps changing with every release. Hence there is no definitive that if 98-AgentGroup would remain 98-AgentGroup in next release. You could check this for yourself by running XPSExplorer between different releases of SM (R12.0 / R12.5 / R12.51 / R12.52).

     

     

    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.

     

     

    Regards

     

    Hubert



  • 4.  Re: Is it possible to script XPSExplorer?

    Posted 03-26-2015 05:57 PM

    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.

     

    Cheers,

    Ujwol



  • 5.  Re: Is it possible to script XPSExplorer?

    Posted 03-27-2015 12:39 PM

    or even CRON/AT it....



  • 6.  Re: Is it possible to script XPSExplorer?
    Best Answer

    Posted 04-03-2015 05:24 PM

    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."



  • 7.  Re: Is it possible to script XPSExplorer?

    Posted 04-14-2015 03:03 AM

    I tend to agree with that for XPSExplorer..but you should be able to script XPSExport.

    Did you try ?



  • 8.  Re: Is it possible to script XPSExplorer?

    Posted 06-08-2015 04:47 PM

    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.

     

    Thanks!

    Eric



  • 9.  Re: Is it possible to script XPSExplorer?

    Posted 07-10-2017 04:25 AM

    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.

     

    Thanks! Alok



  • 10.  Re: Is it possible to script XPSExplorer?

    Posted 07-10-2017 10:14 AM

    Can you attach the code and documentation?

     

    Thanks,

    Jose



  • 11.  Re: Is it possible to script XPSExplorer?

    Posted 07-10-2017 02:31 PM

    Sure, give me 2 days. Content would be shared.