Comware Based
1753758 Members
4774 Online
108799 Solutions
New Discussion юеВ

Re: 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 2
maguanglongMike
HPE Pro

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.

Accept or Kudo

cgu
Frequent Advisor

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