Infoblox Exchange Cybersecurity Roadshow 2020 – Join us!
North America | Europe | Middle East/Africa | Asia-Pacific

Network Change & Configuration Management

Reply
Highlighted
Accepted Solution

Timeout waiting for device - During Juniper firmware download

Anurag
Techie
Posts: 4
3248     0

Hello,

 

I am working on a script to upgrade my Juniper switches. Currently facing issues with *** ERROR: Timeout waiting for device ***.

 

The script is able to tell the switch to connect to my fileshare server over SCP and start the firmware image download. The juniper switch will download the file to a temporary folder in /var/home/su under a temporary directory named

...transferring.file.........XXXXXX.

 

The download takes around 2 minutes.

 

After the download is complete it will transfer it to my "final" destination, which is /var/tmp. This transfer takes couple of minutes and during this transfer, the script decides to time-out.

 

I have tried to modify script and trigger timeouts but no success. I end up with having a corrupt file in /var/tmp and the temporary file doesn't get deleted automatically either, have to manually delete it currently after every attempt.

 

Here is my script:

 

#############################################

Script-Filter: true
#############################################
Action: Get version
Action-Description : Get the running version
Action-commands:
show version

Output-Triggers:
SCP

###############################

Trigger: SCP
Trigger-Filter: true
Trigger-Timeout: 600
Trigger-Context: true
Trigger-Context-Enter: file copy scp://USER@X.X.X.X:/path/path/juniper/ex/2200-c/jinstall-ex-2200-12.3R10.2-domestic-signed.tgz /var/tmp

Trigger-Context-Password: PASSWORD\r

Trigger-Context-Exit:yes

Trigger-Commands:
SET: $DoNothing = ""

Action: test
Action-Commands:
show version

 

I have looked through the forums for guidance and even contacted Infoblox support, so far we've had couple of remote sessions but haven't been able to figure out the issue.

 

Anyone who has experienced the same before, or can chip in some tips?


Thanks in advance.

Anurag

 

 

 

 

Re: Timeout waiting for device - During Juniper firmware download

Anurag
Techie
Posts: 4
3249     0

Hello everyone, 

 

We managed to solve this issue by setting up a HTTP server and downloading the file over http instead.

 

Thanks!

 

/Anurag

Showing results for 
Search instead for 
Do you mean 

Recommended for You