This is part of diploma project to prove that routine aspects of WorldSkills Russia Skill #39 expert's work can be automated.
Python3 script do this sequence of actions:
- Access host's port with telnet
- Login to COM-over-Telnet
- Send script that checks competitive task compliance.
- Run it and return 64 bit number that can be used to generate report.
Firstly if you are using VMWare vSphere don't forget to open ports in firewall
You will need to edit your bootloader settings. I used this as example https://www.cyberciti.biz/faq/howto-setup-serial-console-on-debian-linux/
For windows serial management you should enable EMS
bcdedit /emssettings EMSPORT:1 EMSBAUDRATE:115200
bcdedit /ems {default} ON
bcdedit /bootems {default} ON
bcdedit /ems ON
bcdedit /bootems ON
If you are using virtual network equipment like GNS3 you should be fine. For real devices this can be complicated cause you will need to use either NM-16/32A cisco module, PCI(-E) Card with DB62 or special serial terminal server.
Text user interface i used by default you can navigate hosts by left and right arrows and machines in that host by up and down arrows.
Pressing Enter or Space button will cause machine to be canceled or restarted. You can use that to edit and reload check script on fly.
Press q to exit and wait until report generation.
Reports are just CSV files that decoded from 64 bit number result if there is -
symbol in start that means that script failed to check that machine.
In the end you can make Excel file that will accept csv results and make a proper spreadsheet.