Page 1 of 1

Is there command via Eve CLI that can load a LAB and start up all VMs

Posted: Sun Jun 20, 2021 4:45 pm
by kiteboy
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

Re: Is there command via Eve CLI that can load a LAB and start up all VMs

Posted: Fri Jul 09, 2021 4:58 am
by kbmelati
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

...
===