How to use wnodes_occi_cli

0. create a workdir

$ mkdir $PWD/wnodes_occi_cli

1. cd $PWD/wnodes_occi_cli

2. untar tar file wnodes_occi_cli-1.0.2-1.linux-x86_64.tar.gz

$ tar -zxvf wnodes_occi_cli-1.0.2-1.linux-x86_64.tar.gz 

3. set env variables

$ source usr/bin/wnodes-cli-setup.sh $PWD

4. Detect the name of the VM registered in the information system

$ wnodes_list_images_tags

4.1 For example:

$ wnodes_list_images_tags 
Image Tag Details 

Name      arch
wnodes_tw x86_64

5. Instantiate a machine that returns the image identifier

$ wnodes_create_image -t <tag image>

5.1 For example:

$ wnodes_create_image -t wnodes_tw
https://test-wnodes-web01.cnaf.infn.it:8443/resource/compute/c47723c2-335f-4015-ac2a-232f545af6f0

6. Get the status of the machine

$ wnodes_list_image -l <image identifier>

6.1 For example:

$ wnodes_list_image -l https://test-wnodes-web01.cnaf.infn.it:8443/resource/compute/c47723c2-335f-4015-ac2a-232f545af6f0

hostname     status      arch       memory     cores      speed
...          ...         ...        ...        ...        ...

7. Get the status of all the created machines

$ wnodes_list_images

7.1 For example:

$ wnodes_list_images

https://test-wnodes-web01.cnaf.infn.it:8443/resource/compute/c47723c2-335f-4015-ac2a-232f545af6f0

8. Delete a registered machine

$ wnodes_delete_image -l <image identifier>

8.1 For example:

wnodes_delete_image -l https://test-wnodes-web01.cnaf.infn.it:8443/resource/compute/c47723c2-335f-4015-ac2a-232f545af6f0

