Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transferring IOS XE Image to multiple Access Switches #4

Closed
Tes3awy opened this issue Jul 25, 2021 · 2 comments
Closed

Transferring IOS XE Image to multiple Access Switches #4

Tes3awy opened this issue Jul 25, 2021 · 2 comments
Labels
good first issue Good for newcomers

Comments

@Tes3awy
Copy link

Tes3awy commented Jul 25, 2021

To begin with, thanks a lot for this handy program. It's really helpful and saves a lot of time.

I just had one issue. I am trying to transfer cat9k_lite_iosxe.17.03.03.SPA.bin (about 480MBs) to three C9200L-48P-4G access switches, but I got an error socket.timeout(). However, I was able to find the IOS image on the three switches flash and the images were verified!

I added socket_timeout=200.0 to this line before running to prevent any timeouts but I still get one!

Any reason for why this is happening?

Thanks a lot!

@jerome-t
Copy link
Owner

Hi,

Thanks a lot for your comment.

It's difficult to see what is the issue here.
For debugging purposes, you may add a "catch-all" at line 73 to catch any exception and see more details.

Something like:
except:
print(“Error: ”, sys.exc_info()[0], “occurred.”)

I hope it helps.
Best,
Jerome

@Tes3awy
Copy link
Author

Tes3awy commented Jul 26, 2021

Hello @jerome-t,

Today, I tried doing it again but raised the socket timeout to 250.0 and it worked for 6 access switches concurrently. It's all about the timeout. So for a ~500MBs IOS image size, socket_timeout=250.0 is perfect.

Update:

The IOS image transfer took exactly 00:14:28 to be transfered to all six switches on 1G link.

@Tes3awy Tes3awy closed this as completed Jul 26, 2021
@jerome-t jerome-t pinned this issue Jul 27, 2021
@jerome-t jerome-t added the good first issue Good for newcomers label Jul 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants