Is there command via Eve CLI that can load a LAB and start up all VMs
obviously I know the LAB name.
I host my own server that is power hungry so cannot leave running. I often start studying at 6am but the from server start to all VMs running is 45 mins.
I ideally I would like some automation on my rasperry PI to log in and get everything started.
bit I do not know how to automate is the starting of the LAB and VMs is there a CLI way to do this ? ( then I can write a python program to ssh to my EveNG and get everything started up. )
Thanks Simon
Is there command via Eve CLI that can load a LAB and start up all VMs
Moderator: mike
-
- Posts: 42
- Joined: Wed Feb 12, 2020 7:43 am
- Location: UK
- Contact:
-
- Posts: 15
- Joined: Fri Mar 24, 2017 2:54 am
Re: Is there command via Eve CLI that can load a LAB and start up all VMs
hi,
you can start and stop lab (all router or one or two or any ...).
detail is in here : https://www.eve-ng.net/index.php/docume ... ve-ng-api/
===
Start one or all nodes configured in a lab
curl -s -c /tmp/cookie -b /tmp/cookie -X GET -H 'Content-type: application/json' http://127.0.0.1/api/labs/User1/Lab%201.unl/nodes/start
An authenticated user can start all configured nodes in a lab:
...
A single node can be started:
curl -s -c /tmp/cookie -b /tmp/cookie -X GET -H 'Content-type: application/json' http://127.0.0.1/api/labs/User1/Lab%201 ... es/1/start
...
===
you can start and stop lab (all router or one or two or any ...).
detail is in here : https://www.eve-ng.net/index.php/docume ... ve-ng-api/
===
Start one or all nodes configured in a lab
curl -s -c /tmp/cookie -b /tmp/cookie -X GET -H 'Content-type: application/json' http://127.0.0.1/api/labs/User1/Lab%201.unl/nodes/start
An authenticated user can start all configured nodes in a lab:
...
A single node can be started:
curl -s -c /tmp/cookie -b /tmp/cookie -X GET -H 'Content-type: application/json' http://127.0.0.1/api/labs/User1/Lab%201 ... es/1/start
...
===