Unsolved
This post is more than 5 years old
92 Posts
0
12247
Unity CLI Examples/Scripts
All,
I wasn’t sure if this is the correct place to ask or not. I was hoping to find some real world examples for CLI use on the new Unity arrays. Similar to the old navicli commands? Looking for bind luns, add to storage group, etc… I’ve seen some information in the documents but wanted real world examples or a script if anyone already has one created. This is the command line guide I found.
https://www.emc.com/collateral/TechnicalDocument/docu69330.pdf#page18
Thanks very much!
Andrew
maniemc
169 Posts
1
December 24th, 2016 18:00
the document you found is correct. Refer the use cases for examples.
I will also give you an example of creating a lun using UEMCLI.
1) Install the UEMCLI on your client machine (windows/linux etc) - or ssh to unity array as service which already has uemcli.
2) For example, if you want to create a 600gb lun on "Application Pool" on SPA (refer page 384) on the unity with management ip 10.0.0.1:
uemcli -d 10.0.0.1 -u admin -p MyPassword /stor/prov/luns/lun create -name lun600 -pool pool_1 -size 600G -lunHosts host_1,host_3
Above creates the lun and assigns to the 2 hosts. Refer page 305 for how to find pool id of "Application Pool", Page 243 for host ids.