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

Moderator: mike

Post Reply
kiteboy
Posts: 12
Joined: Wed Feb 12, 2020 7:43 am
Location: Watford UK

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

Post by kiteboy » Sun Jun 20, 2021 4:45 pm

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

kbmelati
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

Post by kbmelati » Fri Jul 09, 2021 4:58 am

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

...
===

Post Reply