2 Replies Latest reply on Jan 18, 2012 10:38 PM by vidrine

    Modules for additional languages

    pcrook

      Will there be any work to provide modules for additional languages such as Perl and powershell?

        • 1. Re: Modules for additional languages
          jking

          The supported interface is the web API (ie https://localhost:8443/remote/system.applyTag); the python implementation was provided because we thought it would be illustrative -- not because that's the only language that you could use.  My hope is that now that we've released it, if someone cares greatly about perl, powershell, or C, we'd like to make it easy for them to share w/ the community and maybe help each other out.

           

          One of our enterprising SEs has already written a C# tool to help with exploring the web API.  I think it's posted to the https://community.mcafee.com/community/business/epo/toolexchange

           

          Personally for most stuff I'm a CLI kind of guy.  Curl works well, e.g. something like:

           

          $ curl --silent -qk -u <name>:<pass> 'https://<hostname>:8443/remote/core.help'

           

          Works great ... but a scripting language of some sort is Really Handy when you want to parse the output of one command and pass it into the next.   Python was just a great fit since we didn't have a definitive set of commands ... take a look at the mcafee.py file, it's pretty slick I think (I take no personal credit for it!).  As product extensions or patches expose additional commands, they'll Just Work -- that was one of our goals.

           

          Jon

          1 of 1 people found this helpful
          • 2. Re: Modules for additional languages
            vidrine

            I'm working on a PowerShell implementation now. Going to be awhile considering this is a side project, but once the main parts of the module are made - everything else will just be made on an as needed basis.

             

            I'm hoping the Solidcore application pushes out an API extension soon.