Other HPE Product Questions
1833777 Members
2073 Online
110063 Solutions
New Discussion

ARUBA 1930 LOGIN and DOWNLOAD TFTP RUNNING CONFIG VIA CURL

 
SOLVED
Go to solution
Greg44
Occasional Visitor

ARUBA 1930 LOGIN and DOWNLOAD TFTP RUNNING CONFIG VIA CURL

Hi all,

 

i recently bought an "Aruba Instant On 1930 24G Class4 PoE 4SFP/SFP+ 370W Switch JL684A".

I would like to find a way to backup it, but there is no SSH service inside of it.

So i would like to use curl to login, and then, download via tftp the running-configuration to my tftperver.

 

Here's the way i try to login :

curl 'http://'$fqdn'/cs4012c633/hpe/config/login.htm' -H "Content-Type: application/x-www-form-urlencoded" -d "username=admin&password=${SWITCHESPASS}" -viL -cookie-jar ${COOKIESFILE} -D /tmp/header.txt

 

the problem is the COOKIEFILE still empty, it doesn't contain the informations that the switch need continue to the tftp download.

here's the cookie file detail :

# Netscape HTTP Cookie File
# https://curl.haxx.se/docs/http-cookies.html
# This file was generated by libcurl! Edit at your own risk.

 

 

normaly, it should contain some informations like :

sessionID=192.168.1.142&<ad75462d599370c40da870d119c407d6> (for exemple)...

 

What is the thing i do wrong in my curl command ?

thnak's you very much for people who can help me !

 

1 REPLY 1
Sunitha_Mod
Honored Contributor
Solution

Re: ARUBA 1930 LOGIN and DOWNLOAD TFTP RUNNING CONFIG VIA CURL

Hello @Greg44

Thank you for posting! HPE Networking forum has moved to Aruba Airheads Community and for HPE networking and Aruba product queries, request you to visit and post your query here: Aruba Airheads Community 

You can refer to the below link as well for more details:

HPE Networking forum migration to Aruba Airheads c... - Hewlett Packard Enterprise Community