Page 1 of 1

"unl_wrapper -a start" does not work (EVE-PRo 4.0.1-86)

Posted: Mon Jul 04, 2022 9:30 am
by mamakos
Hello,
We have an EVE-NG Pro cluster running version 4.0.1-86. I am trying to stop/start nodes via the unl_wrapper to automate stuff. I tried with Juniper/Nokia nodes on Master or Satellite. I had a script on a previous EVE community server that worked fine. Now it is failing to start the nodes.

The following actions work : wipe / export /stop
The following action does NOT work : start

The start action output is as if there was a missing parameter. Yet the "help" menu only states -F, -T and -D options.
  • Is there any hidden parameter I am missing ?
  • Is there any thing I should correct somewhere else ?
Thank you :)

Extract of the CLI output when nothing happen.

Code: Select all

root@muztc628:~# /opt/unetlab/wrappers/unl_wrapper -a start -F /opt/unetlab/labs/Users/ICC/LOUIS/test.unl -T 1 -D 1
Usage: /opt/unetlab/wrappers/unl_wrapper -a <action> <options>
-a <s>     Action can be:
           - delete: delete a lab file even if it's not valid
                     requires -T, -F
           - export: export a runnign-config to a file
                     requires -T, -F, -D is optional
           - fixpermissions: fix file/dir permissions
           - linkquality: set link quality
           - platform: print the hardware platform
           - start: start one or all nodes              <<<<<<<
                     requires -T, -F, -D is optional    <<<<<<<
           - stop: stop one or all nodes
                     requires -T, -F, -m, -D is optional
           - wipe: wipe one or all nodes
                     requires -T, -F, -D is optional
           - clone: clone a lab staged
                     require -T -O -F
           - cpu: get cpu usage
                     require -T, -u -D are optional
           - mem: get cpu usage
                     require -T, -u -D are optional
           - savesystemsettings: save system settings
                     require -m 0 ( just update system files)
                             -m 1 ( update system files and restart services)
           - showcluster: show cluster status
           - stopsat: stop satellite
                     require -I <number>
                     where n is the satellite id
           - resetsat: reboot satellite
                     require -I <number>
                     where n is the satellite id
           - savesystemsettings: save system settings
Options:
-F <n>     Lab file
-T <n>     Tenant ID
-m <n>     Stop mode 0:shutdown, 1:poweroff, 2:hibernate, 3:default
-q <n>,<n>,<n>,<n>     delay,jitter,loss,rate
-D <n>     Device ID/Network ID (if not used, all devices will be impacted)
-U <s>     username ( Mandatory to create HTML5Session )
-u <s>     Lab uuid
-O <n>     target Tenant
root@muztc628:~#
note : If I use the API, with curl, I can start the node but this is less convenient and needs to get the login/password ans this logs off the user...

Re: "unl_wrapper -a start" does not work (EVE-PRo 4.0.1-86)

Posted: Mon Jul 04, 2022 11:25 pm
by Uldis (UD)
simple answer, upgrade to EVE V5

Re: "unl_wrapper -a start" does not work (EVE-PRo 4.0.1-86)

Posted: Tue Jul 05, 2022 4:37 am
by mamakos
Ok.
I'll do as soon as Nokia vSIM work on V5 :)
Untill then, I'll stick with the curl start as a workaround.

Re: "unl_wrapper -a start" does not work (EVE-PRo 4.0.1-86)

Posted: Wed Jul 06, 2022 8:02 pm
by Uldis (UD)
Nokia version R21 and R22works like charm on EVE V5

Re: "unl_wrapper -a start" does not work (EVE-PRo 4.0.1-86)

Posted: Thu Jul 07, 2022 6:35 am
by mamakos
Yeah, good news then ! Thanks for letting me know !