Developer

last person joined: yesterday 

Expand all | Collapse all

How to post "encrypt disable" before get "show running-config"

This thread has been viewed 25 times
  • 1.  How to post "encrypt disable" before get "show running-config"

    Posted Jan 03, 2020 09:40 AM

    Hi,

    I am a newbie using rest api (AruboOS 8.5) and python.

     

    In cli-scripting it is very easy to save the running config to a file:

        encrypt disable

        show running-config

     

    Login to Mobility Master works fine. Using "configuration/showcommand?command" with "show running-config" works fine, too.

     

    My problem is, that all keys are still encrypted. Within Commandline encryption can be disabled like shown above. Which api-call do I have to use, to disable encryption before getting the running config?

    Thanks you for your help.

     

    Kind regards

    Harry



  • 2.  RE: How to post "encrypt disable" before get "show running-config"

    EMPLOYEE
    Posted Jan 16, 2020 07:46 PM

    Most of the Aruba APIs are configuration APIs. SInce "encrypt" disable/enable command is not a device configuration, there may not be an API endpoint for it. With the "showcommand" API endpoint issue the command "encrypt disable". Its a hack but I believe it works.