3 Replies Latest reply on Jul 18, 2012 10:53 AM by user2310

    eeadmin.resetselfrecovery command unavailable?

      We applied the latest patch to the system but I don't even see the command when I run

       

      core.help?command=eeadmin.resetselfrecovery

       

      Error 0 :

      Command was not found: eeadmin.resetselfrecovery

       

       

      I am trying to run a eeadmin.resetselfrecovery command through browser and it is giving me following message:

       

      Ok:

      Failed

       

      What am I supposed to do next?

       

      Thanks.

        • 1. Re: eeadmin.resetselfrecovery command unavailable?

          I am able to get the help about the command.

           

          OK:

          eeadmin.resetSelfRecovery EEADMIN.resetSelfRecovery userDn

          Endpoint Encryption reset users self-recovery token.

          Change and view user management

          Parameters:

          userDn (param 1) - LDAP User's DN

           

          But the command doesn't work when I try it in the browser or through our scripting software.

           

          https://server1:230403/remote/eeadmin.resetSelfRecovery?userDn=CN=suer12390,OU=D omUsers,OU=companyusers,DC=Domain,DC=company,DC=com

           

          I have changed some details but it doesn't seem to work.

           

          It keeps throwing this output.

           

          OK:

          Failed

           

          Does anyone have any idea on what I could be possibly doing wrong in running above command?

          • 2. Re: eeadmin.resetselfrecovery command unavailable?
            whgibbo

            Hi,

            Did you try the python example that was included:

             

            # Copyright (C) 2011 McAfee, Inc.  All Rights Reserved.

            # -*- coding: utf-8 -*-

            #

            # This sample script demonstrates requesting the self recovery token to be reset.

            #

            ################################################################################

            ## WARNING: Please note that if CREATE_LOG_FILE is enabled in the mcafee.py

            ## all commands and parameters (including new password) will be logged.

            ## As new and old passwords are in plain text, you are advised to perform this

            ## command only on a secure machine or to securely erase the log file upon

            ## completion.

            ################################################################################

             

            import mcafee

             

            epoServerName   = 'epodev2008'

            epoServerPort   = '8443'

            epoUserName     = 'admin'

            epoUserPassword = '12345'

             

            print 'Attempting connection to ePO Server ['+epoServerName+']'

            #initiate connection

            mc = mcafee.client(epoServerName, epoServerPort, epoUserName, epoUserPassword)

             

            #Uncomment the line below to see the help for the eeadmin.resetSelfRecovery.

            #print mc.help('eeadmin.resetSelfRecovery');

             

            result = mc.eeadmin.resetSelfRecovery(userDn='CN=Wayne_10,OU=Wayne,OU=McAfee,DC=epotest, DC=net')

            if result != 'Succeeded':

                print 'Failed to request Self Recovery Token'

            else:

                print 'Succeeded'

            print 'Finished'

             

            Message was edited by: whgibbo on 18/07/12 10:50:02 CDT
            • 3. Re: eeadmin.resetselfrecovery command unavailable?

              No not the python one. 

              But we created our own c# equivalent of python example and all the commands works except "eeadmin.resetSelfRecovery" one. 

               

              I can run queries and parse users from epo from our C# console.

               

              However, this one command that was included in the epo scripting guide 6.2 doesn't seem to work.

               

              It throws the response "OK: Failed".

               

              Do we have to pass commands in a certain way to this command than the other ones?

               

              Our Change and Set Password Commands all work well.

               

              I am just mentioning to clear the doubt you might have that I just picked up the above command and it threw me an error.

               

              Glitch : The 6.2 update doesn't even list the command in the core.help list of help commands but when tried in browser it shows help for that command.

               

              Thanks for helping.