1 Reply Latest reply on Jun 16, 2016 7:15 AM by gjaekel

    Is there any way to create a valid .cli script from the current configuration?

    m.ardito

      Hi,

      I'll try to explain what I mean with the subject, I know it could seem a bit weird...

       

      I am a teiid user, still learning to put it in production, and I am willing to learn a good way to reproduce my "current" setup into a new version of teiid (I usually try the server bundle, now released with wildfly 9.0.2 afaik), in order to check usual things,

      - possible regressions,

      - old bug that should be solved,

      - new features,

      - etc.

       

      since my setup is growing in complexity, it becomes more difficult to be sure, on my side, to test the same exact setup I have in the old version

       

      I usually need to

      - deploy jdbc drivers jars, then

      - create jndi datasources (Xa, non-Xa, and from resource adapters like file, google, etc)

      - then deploy teiid vdb xml files which rely on the above being active/working

       

      So, I asked on teiid forums (see the best way to update teiid standalone, keeping all custom settings/deployments?)

      about what was the best way to exactly replicate my current config into a .cli script that I could deploy with jboss-cli.sh

       

      After learning most CLI commands and experimenting a bit, I got a line from a Teiid developer (shawkins) suggesting me to ask, here, if something similar exist, or if it could be implemented, if not.

       

      The ideal would be to get only settings changed from deafults, if possible, so that I could simply load it into the new wildfly/teiid version with

      bin/jboss-cli.sh -c --file=config_dump.cli

       

      This could also be a very good method to backup/document the whole server configuration, imho.

       

      but I don't know if all this is possible or if it makes sense...

       

      Thanks for any suggestion,

      Marco

        • 1. Re: Is there any way to create a valid .cli script from the current configuration?
          gjaekel

          Dear Marco,

           

          dealing with the same question, I discovered the Project "Profile Cloner" (https://github.com/tfonteyn/profilecloner). While currently evaluating Wildfy as an application server platform, I just started to play around with it.

           

          It seems promising to me, but need further development. It's seems to be able to dump the profile section, but one will want to dump other sections, too. I already fixed a bug concerning quoting of the value data and send a pull request (with no feeback, yet).

           

          I'm not acting as a Java Developer but a Unix&Java System Engineer. It will be great if we may work together to enhance the tool.

           

          Greetings

          Guido