UNSOLVED

srikanthvamaraj

updated

9 years ago

0

1647

July 21st, 2017 07:00

How can i automate to get the capacity values for centera cluster.

Now i can go to centra console and pull the report manually , i need total,used ,available and free capacity values.

  • 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

  • 1108

    0

    Posted July 24th, 2017 07:00

    Do i have to create a file showcapacity.cli?

    can you help me understand the syntax of the above command?

    where will the output be saved?

    thanks.

  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    1109

    0

    Posted July 25th, 2017 03:00

    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.

    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  > centera.output