Large Image Upload using Configlets

Large Image Upload using Configlets

Hi all,

i have troubles figuring out a right way to automate image upload to Cisco Nexus Switches.
The images are large (~1,9Gb) and it takes significant amount of time to get it through.

The default timeout of Commands in Configlets (Advanced Script Mode) is set to 30 seconds, after that the session is closed an Image transfer remains incomplete.

So i played with timeout times by setting timeout='3600', that works, but of the cost of system stability, NCM was irresponsive at the end because it logged the whole transfer cli output:

 Trying to connect to tftp server......
 Connection to Server Established.
[ ] 0.50KB[# ] 4.50KB[## ] 8.50KB[### ] 12.50KB[####
] 16.50KB[##### ] 20.50KB[###### ] 24.50KB[####### ] 28.50KB[########
] 32.50KB[######### ] 36.50KB[########## ] 40.50KB[########### ]
44.50KB[############ ] 48.50KB[############# ] 52.50KB[############## ]
56.50KB[############### ] 60.50KB[################ ] 64.50KB[################# ]
68.50KB[################## ] 72.50KB[################### ] 76.50KB[#################### ]
80.50KB[##################### ] 84.50KB[###################### ] 88.50KB[####################### ]

and so on...

That how my Configlet looks like:

<command prompt=']?'>copy tftp: bootflash:</command>
<command prompt=']?'>$SOURCE_FILE_NAME</command>
<command prompt=']?'>$VRF</command>
<command prompt=']?' timeout='3600'>$TFTP_IP</command>

Is it the right way to do this kind of thing?
Did anyone have Ideas how to implement this scenario over configlets differently without playing around with amount of timeout and logging mess?

Thank you in advance!

Stanislaw

                  New to ADSelfService Plus?