Announcement Banner
UNSOLVED

Cdemz

updated

20 years ago

C

Cdemz

3 Posts

0

585

November 29th, 2006 15:00

How do I pull data (reports) from my CX 500

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?
  • rolson

    1 Message

    148

    0

    Posted December 15th, 2006 14:00

    If you don't mind mucking about in awk, you can pull some info together. Here is an example to get you started where I gather RaidGroup info.

    #!/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
  • 148

    0

    Posted February 14th, 2007 19:00

    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