Traceback (most recent call last):
File "commands_stack.py", line 19, in
out = device.get_facts()
File "/usr/local/lib/python3.8/dist-packages/napalm_procurve/procurve.py", line 236, in get_facts
int(float(uptime["s"]))
KeyError: 's'
Solution:
Patch _getfacts() function
Note:
Members stacked using stacking modules:
- 1 IP for all members
- get_facts returns one serial number per member
Example for 3 members: 'serial_number': 'SGBBBBBBBB SGCCCCCCCC SGDDDDDDDD'
Status and Counters - General System Information
System Name : STACK-3-UNITS
System Contact :
System Location :
MAC Age Time (sec) : 300
Time Zone : 60
Daylight Time Rule : Western-Europe
Software revision : WB.16.02.0028
Base MAC Addr : 222222-222222
Member :1
ROM Version : WB.16.03
Up Time : 176 days
CPU Util (%) : 17
MAC Addr : 333333-333333
Serial Number : SGBBBBBBBB
Memory - Total : 69,952,000
Free : 39,162,196
Member :2
ROM Version : WB.16.03
Up Time : 176 days
CPU Util (%) : 0
MAC Addr : 444444-444444
Serial Number : SGCCCCCCCC
Memory - Total : 69,952,000
Free : 54,474,212
Member :3
ROM Version : WB.16.03
Up Time : 176 days
CPU Util (%) : 0
MAC Addr : 555555-555555
Serial Number : SGDDDDDDDD
Memory - Total : 69,952,000
Free : 41,157,284
b) get_facts result:
All members in stacking have same IP, serial number contains serial numbers of all members:
'serial_number': 'SGBBBBBBBB SGCCCCCCCC SGDDDDDDDD'
Error in devices with stacking modules:
Solution:
Note:
Members stacked using stacking modules:
Patch tested on:
Firmware output commands:
a. show uptime
Output type 1 example:
Output type 2 example (3 members stacked):
b. show system
Example 1 (without stacking modules):
a) Output
Status and Counters - General System Information
System Name : SWITCH-1
System Contact : System Location :
MAC Age Time (sec) : 300
Time Zone : 60
Daylight Time Rule : Western-Europe
Software revision : WB.15.15.0010 Base MAC Addr : 111111-111111 ROM Version : WB.15.05 Serial Number : SGAAAAAAAA
Up Time : 176 days Memory - Total : 169,759,232 CPU Util (%) : 2 Free : 83,657,648
IP Mgmt - Pkts Rx : 30,833,979 Packet - Total : 6750
Pkts Tx : 6,457,026 Buffers Free : 5009
Lowest : 4796
Missed : 0
b) get_facts result:
Example 2 (with stacking modules):
a) Output
b) get_facts result:
All members in stacking have same IP, serial number contains serial numbers of all members: 'serial_number': 'SGBBBBBBBB SGCCCCCCCC SGDDDDDDDD'