5 Replies Latest reply: May 16, 2012 2:12 AM by joeribos RSS

Backup APC SmartUPS Network Management Card Config

lls71

Hi!

Is there a chance that CatTools could retrieve the config.ini of a APC SmartUPS AP9617/AP9630 Network Management Card using FTP? It would be great if someone of the development team could have a look at it.

Here's a "capture" of a FTP session:

ftp> open 10.0.0.1
Connected to 10.0.0.1.
220 AP9617 Network Management Card AOS v3.7.3 FTP server ready.
User (10.0.0.1:(none)): admin
331 User name okay, need password.
Password:
230 User logged in, proceed.
ftp> bin
200 TYPE Command okay.
ftp> hash
Hash mark printing On  ftp: (2048 bytes/hash mark) .
ftp> get config.ini
200 PORT Command okay.
150 File status okay; about to open data connection.
#######################226 Closing data connection.
ftp: 47311 bytes received in 15,25Seconds 3,10Kbytes/sec.
ftp> close
221 Thank you for using APC products!
ftp> quit

Regards, Leonardo

  • Re: Backup APC SmartUPS Network Management Card Config
    Steve Welsh

    Hi Leonardo,

    I have a few questions regarding the above session capture:

    1) how do we get to the 'ftp>' prompt?  Do you log into the APC Management Card first then issue the command 'ftp', or is this session from an FTP client installed on a local system somewhere (e.g. the system where CatTools is installed)?

    2) it looks like (from the capture you provided) that the APC Management Card comes with an FTP server. Is this correct?

    3) when the 'get config.ini' command is issued, is that getting the file from the FTP server and passing to the client, or is this putting it on the FTP server (i.e. doing a file dump from the Smart UPS device)?

    Thanks,

    Steve

    • Re: Backup APC SmartUPS Network Management Card Config
      lls71

      Hi Steve,

      the APC Network Management card has a FTP server for firmware update purposes. Besides you can login to this FTP server and retrieve the configuration as a plain-text file (config.ini). I used the standard Windows FTP client to access the FTP server running on the APC Network Management card. With the get command the client retrieves the file and saves it to the local path (which can be set with the lcd command). After downloading the config file it would have to be renamed to something like [devicename]-config.ini.

      Regards, Leonardo

      • Re: Backup APC SmartUPS Network Management Card Config
        novasamurai

        I'm interested in this as well. We have a lot of APC gear, Netbotz and SMARTUPS, but they pretty much have the same interface. There is a utility that you can download, but it is not very good if you have 20 or more devices to check and backup configs like we do for all our other devices in cattools.

        As for the FTP, I believe you would have to use the FTP built into the client computer, FTP is installed on the APC device. I'm not sure if you could get to the FTP promtp from within a SSH or telnet session, but I could be wrong.

    • Re: Backup APC SmartUPS Network Management Card Config
      evang 999

      Pls add me to the list of users interested in this.

      A couple of observations:

      - You may need to experiment with the timeout on the ftp download (our UPSes can take 90+ secs, even though the files are small)

      - As well as config.ini, you may want to allow the option of retrieving the data and event logs via ftp. More details if you need them.

      Cheers,

      Evan

  • Re: Backup APC SmartUPS Network Management Card Config
    joeribos

    I'm very interested as well. We have a lot of APC Rack PDU's.

    We use the following command to get the config.ini file:

     

    Open a standard command prompt:

     

    C:\Users\joeri>cd\

    C:\>ftp 10.1.3.49
    Conntected to 10.1.3.49.
    220 AP8858EU3 Network Management Card AOS v5.1.4 FTP server ready.
    User (10.1.3.49:(none)): apc
    331 User name okay, need password.
    Password:
    230 User logged in, proceed.
    ftp> bin
    200 TYPE Command okay.
    ftp> hash
    Hash mark printing Aan  ftp: (2048 bytes/hash mark) .
    ftp> get config.ini
    200 PORT Command okay.
    150 File status okay; about to open data connection.
    #########226 Closing data connection.
    ftp: 19364 bytes ontvangen in 7,13 seconden 2,71 kB/s.
    ftp> bye
    221 Goodbye.

    C:\>

     

    For more information: http://nam-en.apc.com/app/answers/detail/a_id/8979/~/how-can-i-mass-configure-an-network-management-card-(nmc)-or-nmc-embedded

     

    Hopefully there is a way to backup all the devices with Cattools!

     

    Joeri