Automatic data collection for championships and other events that are held according to the methodology of WorldSkills assignments. Linux and Windows scripts can be run from anywhere, the main thing is to have access to ESXi. Cisco has 2 versions of the script, 1 is launched from the topology from PC1, 2 is connected to the console server
-
Clone repo
git clone https://github.com/vadimoarturo/autocheck.git
-
Go to event folder
cd Demo2020
-
Select Code folder
cd Code1.1
-
Select Linux / Windows / Cisco folder
cd Linux
-
And run Linux / Windows / Cisco script
DEMO2020COD1.1Linux.ps1
If you have any trouble with dependencies, please pay attention to the Dependencies(0) section in script.
All variables that are entered during the start of the script can be entered as parameters before starting
DEMO2020COD1.1Linux.ps1 1 2 3
- 1 - integer Stand Number Example
1
- 2 - string Competitor name Example
IvanIvanov
- 3 - string Address Server IP Example
192.168.1.1
DEMO2020COD1.1Linux.ps1 1 IvanIvanov 192.168.1.1
There are also variables that have a default value, they are provided below (if you need, you can change them in script before starting)
- LOGIN_ESXi - string Username for login ESXi Default
root
- PASS_ESXi - string Password for login ESXi Default
P@ssw0rd
- LOGIN_VM - string Password for login to Virtual Machine Default for Linux
root
, Default for WindowsAdministrator
- PASS_VM - string Password for login to Virtual Machine Default for Linux
toor
, Default for WindowsP@ssw0rd
- DELAY - integer Delay before power on VM, you can set this value to 0 for easy debugging Default
30
The domain name for the Administrator is set correctly and depends on the event
First version has name *Cisco(1).py and work from PC1 in topology, and connection occurs by SSH, on port by default
DEMO2020COD1.1Cisco(1).py 1 2
- 1 - integer Stand Number Example
1
- 2 - string Competitor name Example
IvanIvanov
DEMO2020COD1.1Cisco(1).py 1 IvanIvanov
There are also variables that have a default value, they are provided below (if you need, you can change them in script before starting)
- USER - string Username for login on network device
- PASSWORD - string Password for login on network device
- ENABLE_PASS - string Exec password on network device
- SSH_PORT - integer Port for create SSH conection Default
22
The USER, PASSWORD, ENABLE_PASS is set correctly and depends on the event