CompCU.jar is the Compellent Command Utility. You can download it from Compellent’s support site (registration required). This is a basic article that demonstrates how to get started.
The first thing you’ll want to do is create an authentication file that you can re-use, similar to what you do with EMC’s naviseccli tool. The file I specify is saved in the directory I’m working from, and the Storage Center IP is the cluster IP, not the IP address of the controllers.
E:\CU060301_002A>java –jar CompCU.jar –default -defaultname saved_default -host StorageCenterIP -user Admin -password SCPassword
Now you can run commands without having to input credentials each time. I like to ouput to a text file, although you’ll notice that CompCU also dumps output on the console at the same time. The “system show” command provides a brief summary of the system configuration.
E:\CU060301_002A>java -jar CompCU.jar -defaultname saved_default.cli -c "system show -txt 'outputfile.txt'" Compellent Command Utility (CompCU) 6.3.1.2 ================================================================================================= User Name: Admin Host/IP Address: 192.168.0.10 Single Command: system show -txt 'systemshow.txt' ================================================================================================= Connecting to Storage Center: 192.168.0.10 with user: Admin java.lang.IllegalStateException: TrustManagerFactoryImpl is not initialized Running Command: system show -txt 'outputfile.txt' SerialNumber Name ManagementIP Version OperationMode PortsBalanced MailServer BackupMailServer ----------------- -------------------------------- ---------------- ---------------- -------------- -------------- -------------------- -------------------- 22640 Compellent1 192.168.0.10 6.2.2.15 Normal Yes 192.168.0.200 192.168.0.201 Save to Text (txt) File: outputfile.txt Successfully finished running Compellent Command Utility (CompCU) application.
Notice I get java errors every time I run this command. I think that’s related to an expired certificate, but I need to research that further. Another useful command is “storagetype show“. Here’s one I prepared earlier.
E:\CU060301_002A>java -jar CompCU.jar -defaultname saved_default.cli -c "storagetype show -txt 'storagetype.txt'" Compellent Command Utility (CompCU) 6.3.1.2 ================================================================================================= User Name: Admin Host/IP Address: 192.168.0.10 Single Command: storagetype show -txt 'storagetype.txt' ================================================================================================= Connecting to Storage Center: 192.168.0.10 with user: Admin java.lang.IllegalStateException: TrustManagerFactoryImpl is not initialized Running Command: storagetype show -txt 'storagetype.txt' Index Name DiskFolder Redundancy PageSize PageSizeBlocks SpaceUsed SpaceUsedBlocks SpaceAllocated SpaceAllocatedBlocks ------ -------------------------------- -------------------- -------------------- ---------- --------------- -------------------- -------------------- -------------------- -------------------- 1 Assigned-Redundant-4096 Assigned Redundant 2.00 MB 4096 1022.51 GB 2144350208 19.67 TB 42232291328 Save to Text (txt) File: storagetype.txt Successfully finished running Compellent Command Utility (CompCU) application. E:\CU060301_002A>
There’s a bunch of useful things you can do with CompCU, particularly when it comes to creating volumes and allocating them to hosts, for example. I’ll cover these in the next little while. In the meantime, I hope this was a useful introduction to CompCU.