How does One Back up a Ubiquiti Switch with NCM?

I have a Ubiquiti switch and tried to construct a script for getting the configuration. The command used was                   cat /tmp/running.cfg

If I am in the switch, this command results in a many settings being displayed.

I tried running this command in a  script with a delay of 20 seconds before the "end" command is given.

The script does not complete and nothing is captured/downloaded.

If I am in the switch, the command results in giving a display of a lot of settings, mcorrectly.

How do I translate that to NCM executing a script?

thanks,

Mark

Parents
No Data
Reply
  • After some investigation I've worked out a way to backup Ubiquiti AirOS configurations via Solarwinds. Putting the details in this post for anyone else who will find this useful.

    For anyone else who also needs to utilise this functionality with NCM copy the below text (between the ---------- lines) into notepad and save as file name "Ubiquiti AirOS-1.3.6.1.4.1.9.1069.ConfigMgmt-Commands" in your Solarwinds DeviceTypes folder (c:\Program Files (x86)\Solarwinds\Configuration Management\DeviceTypes).

     

    ------------------------------------------------------------------------------------------------------------------

    <!--SolarWinds Network Management Tools-->  <!--Copyright 2005 SolarWinds.Net All rights reserved-->  <Configuration-Management Device="Cisco WLC" SystemOID=" 1.3.6.1.4.1.9.1.1069">    <Commands>     <Command Name="Reset" Value=""/>            <Command Name="PreCommand" Value="y"/>            <Command Name="MenuBased" Value="false"/>            <Command Name="DownloadConfig" Value="cat /tmp/system.cfg"/>    </Commands>  </Configuration-Management>

     

    ------------------------------------------------------------------------------------------------------------------

     

    You will also need to create a connection profile under "Admin -> Settings -> NCM Settings -> Manage Connection Profiles" as Ubiquiti AirOS doesn't support RADIUS/TACACS auth at this stage:

    When adding the device into NCM select your Global Connection Profile created above and set the Device Template to "Ubiquiti AirOS".

     

     

    Hope this helps anyone else who has run into this issue also.

Children
No Data