2 Replies Latest reply on Jan 31, 2019 4:47 PM by jfisherdev

    Convert Operation ModelNode To CLI Format?


      Is there a standard method to convert a DMR/ModelNode representation of a management operation to CLI format?


      The CLI does the opposite, but I have not come across anything doing ModelNode to CLI format conversion.


      I would imagine this is not something done very often and would only be useful in a limited number of less common cases.


      The one case that comes to mind would be generating scripts.


      For example, if you had a sequence of common management operations to do something like enabling diagnostic logging, which you maintain/represent in ModelNode/DMR format for portability,

      and wanted to generate scripts that can be executed easily from other shell scripts using an appropriate management method [e.g. the HTTP management API with curl commands, jboss-cli.sh and a CLI script].