A little python3 script to configure HP ProCurve switches based on pyserial and pexpect.
This script is intended to be used with a resetted switch via serial. It was tested only with a ProCurve 2824 and on Linux and on Linux.
-
setup your config.py
-
Power on the switch
-
plug in serial cable
-
reset switch (often something with pressing the "reset" and "clear" buttons, take a look into your manual)
-
start script
python3 procurve-conf.py <switch_name>
-
be happy and repeat ;)
todo:
- clean up the code
- add some documentation
- add password setting method
- write example config
- requirements.txt
- Jinja2 Template Support
- easier configuration for multiple switches
- config file instead of changing values in the script directly