Network Management

 View Only
last person joined: 21 hours ago 

Keep an informative eye on your network with HPE Aruba Networking network management solutions
Expand all | Collapse all

curl: Can't open '/tmp/config/user/arubarunning.txt'!

This thread has been viewed 26 times
  • 1.  curl: Can't open '/tmp/config/user/arubarunning.txt'!

    Posted Jul 19, 2021 01:22 AM
    Hello professionals,

    Has anyone encountered the following problem on Aruba 6100 switches?
    I'm trying to copy running-config to my TFTP server.
    I use CLI command (OS-CX PL.10.07.0005)
    copy running-config tftp: //ip.of.my.pc/arubarunning.txt cli

    Normally, the command output usually looks like this:
    A610048G01 # copy running-config tftp: //ip.of.my.pc/arubarunning.txt cli
    % Total% Received% Xferd Average Speed ​​Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 4853 0 0 100 4853 0 110k -: -: - -: -: - -: -: - 110k
    100 4853 0 0 100 4853 0 107k -: -: - -: -: - -: -: - 107k
    Copying configuration: [Success]
    A610048G01 #

    Then I have an arubarunning.txt file on my TFTP server.

    But sometimes this happens:
    A610048G02 # copy running-config tftp: //ip.of.my.pc/arubarunning.txt cli
    curl: Can't open '/tmp/config/user/arubarunning.txt'!
    curl: try 'curl --help' for more information
    curl: (26) Failed to open / read local data from file / application
    Copying configuration: [Failure]
    error uploading running-config
    A610048G02 #

    I have found that the /user/ directory is missing (or not accessible) on the affected switches.
    A610048G02 # start-shell
    A610048G02: ~ $ cd /tmp/config/user
    bash: cd: /tmp/config/user: No such file or directory
    A610048G02: ~ $

    Unfortunately, the only solution in such situations is always only a full restart, AFAIK. 

    Anyone some other ideas...?
    Thank you
    Best Regards

    ------------------------------
    Radek Nekvinda
    ------------------------------

    ------------------------------
    Radek Nekvinda
    ------------------------------


  • 2.  RE: curl: Can't open '/tmp/config/user/arubarunning.txt'!

    MVP GURU
    Posted Jul 19, 2021 03:56 AM
    Hi Radek,

    Isn't the syntax a little bit different for the action you want to achieve (Copy Switch's Running Configuration to your TFTP Server)?

    Something like:

    copy tftp://<IP-of-your-TFTP-Server>/<desired-filename.extension> running-config vrf <name-of-VRF-used-to-reach-your-TFTP-Server>
    Isn't it?

    ------------------------------
    Davide Poletto
    ------------------------------



  • 3.  RE: curl: Can't open '/tmp/config/user/arubarunning.txt'!

    Posted Jul 19, 2021 04:19 AM
    Hello Davide,
    here is what the models 6100 offer:
    (at this moment the transfer of running config to the TFTP server running on my PC 10.10.30.20 was successful,
      but sometimes is not, with the "curl" error, even if exactly the same command with identical syntax has been used.)


    A610048G03# copy
      REMOTE_URL              URL syntax - sftp://USER@{IP|HOST}[:PORT]/FILE or
                             
    tftp://{IP|HOST}[:PORT][;blocksize=VAL]/FILE
      STORAGE_URL             URL of syntax usb:/file
      checkpoint              Copy from a checkpoint
      command-output          Specify the CLI command to be executed on the switch.
      core-dump               Copy daemon or kernel core-dump
      diag-dump               Copy captured diagnostic information
      primary                 Copy from the primary switch image
      running-config          Copy from current system running configuration
      secondary               Copy from the secondary switch image
      show-tech               Copy output of a predefined command sequence used by
                              technical support
      startup-config          Copy from startup configuration
      support-files           Copy support files to a file in tar.gz format or to a
                              directory
      support-log             Copy the daemon support log file.

    A610048G03# copy running-config
      REMOTE_URL              URL syntax - sftp://USER@{IP|HOST}[:PORT]/FILE or
                              tftp://{IP|HOST}[:PORT][;blocksize=VAL]/FILE
      STORAGE_URL             URL of syntax usb:/file
      checkpoint              Copy to a checkpoint
      startup-config          Copy to startup configuration

    A610048G03# copy running-config tftp://10.10.30.20/arubarunning.txt
      cli    CLI format
      json   JSON format

    A610048G03# copy running-config tftp://10.10.30.20/arubarunning.txt cli
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 5383 0 0 100 5383 0 228k --:--:-- --:--:-- --:--:-- 228k
    100 5383 0 0 100 5383 0 219k --:--:-- --:--:-- --:--:-- 219k
    Copying configuration: [Success]

    A610048G03#


    Thank you for your support

    ------------------------------
    Radek Nekvinda
    ------------------------------



  • 4.  RE: curl: Can't open '/tmp/config/user/arubarunning.txt'!

    MVP GURU
    Posted Jul 22, 2021 06:29 AM
    Look a bug, do you have try to upgrade 10.07.0010 ? (or may need to open issue to TAC...)

    ------------------------------
    PowerArubaSW : Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP...

    PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...)

    PowerArubaCL: Powershell Module to use Aruba Central

    PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)..

    ACEP / ACMX #107 / ACDX #1281
    ------------------------------



  • 5.  RE: curl: Can't open '/tmp/config/user/arubarunning.txt'!

    Posted Jul 23, 2021 02:51 AM
    Thank you,
    I go about the upgrades,
    then I need to wait until the issue appears again or not.
    Probably we will arise the TAC ticket, if yes...

    ------------------------------
    Radek Nekvinda
    ------------------------------