HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
Comware Based
cancel
Showing results for 
Search instead for 
Did you mean: 

update firmware with python script or another language

 
tetzPeha
Advisor

update firmware with python script or another language

Hello,

i dont know if it's the right place, but im currently trying to update firmware on com5/7 with a script.

I success with an expect script, but my issue is now when i have a stack. The script doesnt understand how much device there is on one IP.

Some people there did a script like that ? or use ansible to update a stack ? how many ways i have to update a firmware ?

- by my self (too long)

- expect script (i should finish it to update firmware on each switch from the stack)

- python script (i dont know how python language)

- ansible (i dont know to do it)

thx for your feedback

2 REPLIES

Re: update firmware with python script or another language

script not not smart enough to understand our networking environment. so just update it with the normal way.

cgu
Frequent Visitor

Re: update firmware with python script or another language

three possible ways to determine the stacking status :

- snmp requests
- "display irf"' command using expect and parse what you get
- read the config (via expect or remotely after having exported it) and parse the "irf-port" statements to deduce how many members there are