1 Reply Latest reply on Sep 7, 2012 6:11 AM by mgarten

    Encryption Key Mass Export

      Hello,

       

      Does anybody know how I can use the API to do an automated export of machine recovery keys based on a list of machines or report even?

       

      We have a considerable number of machines which haven't been seen in the console for many months but I want to export their XML keys as a precaution before I mass delete.

       

      Any help would be greatly appreciated.

       

      Cheers

       

      Tim.

        • 1. Re: Encryption Key Mass Export
          mgarten

          Hello timbob78,

           

          here the command which you have to use:

          wget -q -O <filenameincluding the systemname>.xml --no-check-certificate --user=<username> --password=<password> "https://<servername>:8443/remote/eeadmin.exportMachineKey?machineName=<system name as variable>"

           

          You have to put the right values between every <>.

          Put the command into a loop. By using a variable which takes the system names one by one you can export the keys.

          Instead of using   eeadmin.exportMachineKey?machineName=<system name as variable>   you also can use     eeadmin.exportMachineKey?machineName=<system name as variable>&oldKeys=True"

          to export all keys corresponding to one system.

           

          The information is taken from document "ee_620_scripting_guide_en-us.pdf" and "ePO_Web_API_Scripting_Guide_en-us.pdf"

           

          Bye

           

          mgarten