I am looking for a way to pull RAID Group and Disk information from my CX500. I want the data to go into a CSV format so that it can be easily referenced and/or manipulated for reporting. I have looked at the Navi CLI getall command but I do not know how to output it to a CSV format. Any ideas for accomplishing this?
depending on what your after the arrayconfig -capture command could be useful, this has a -format switch which can have an argument of either XML or CSV. This will get raid group, storage group and other SP related config details. I believe you need to use naviseccli however for this to work
rolson
1 Message
148
0
Posted December 15th, 2006 14:00
#!/bin/bash
CLARIION_HOST=clariionspa
## Get list of RaidGroups
echo RaidGroup IDS
navicli -h $CLARIION_HOST getrg |awk '/RaidGroup ID:/ {print $3}' >> raidgroups.tmp
## Get Space Info per RaidGroup
echo RaidGroup Space
for i in `cat raidgroups.tmp `;
do
navicli -h $CLARIION_HOST getrg $i -tcap -ucap -lusc |awk '/RaidGroup ID:/ {print $3}/Logical Capacity/ {print "Total Capacity "$4*512/1024/1024/1024" GB"} /Free Capacity/ {print "Free Capacity "$4*512/1024/1024/1024" GB"} /Free contiguous/ {print "Contiguous "$7*512/1024/1024/1024" GB"}';
done