you have to install Centera Viewer tools on the system where you are going to run this script. CenteraViewer.jar is part of that install.
Yes, you have to create file sowcapacity.cli in notepad. This file is basically issuie commands to Centera Viewer once connection is established. Actually you don't need those multiple "yes" commands, but you do need the quit command. The output is send to standard out, i parse it on the fly in my perl script but you can also redirect it to a file and process it how you like.
dynamox
11 Legend
•
20419 Posts
•
87439 Points
1108
0
Posted July 22nd, 2017 04:00
java -cp "C:\Program Files (x86)\EMC\Centera\4_3\SystemOperator\lib\CenteraViewer.jar" com.filepool.remote.cli.CLI -u admin -p centera -ip', " $centera_ip", ':3682 -script showcapacity.cli
where showcapacity.cli file looks like this:
show capacity availability
yes
yes
yes
yes
yes
quit