I have a DS48 and DS53, I used a those scripts:
1. with cron scheduler every 5 minutes
ds5300.sh
/opt/IBM_DS/client/SMcli -e 192.168.151.212 192.168.151.213 -c "set session performanceMonitorInterval=30 performanceMonitorIterations=1; show allLogicalDrives performanceStats;" > /home/local/scripts/ds5300.log
tail -n +11 /home/local/scripts/ds5300.log | head -n -6 | grep -v '^$' | tr " " "-" > /home/local/scripts/ds5300_tmp.log
The output is similar to
"CONTROLLER-IN-SLOT-B","52583.0","90.9","64.6","51543.4","51543.4","1696.2","1696.2"
2. with command type on zenoss call
perl_model_ds5300.sh
#!/usr/bin/perl
use strict;
use warnings;
use Text::CSV;
my $file = '/home/local/scripts/ds5300_tmp.log';
my $csv = Text::CSV->new();
open (CSV, "<", $file) or die $!;
while (<CSV>) {
if ($csv->parse($_)) {
my @columns = $csv->fields();
print "$columns[0]-Total-IOs:$columns[1] ";
print "$columns[0]-Read-Percentage:$columns[2] ";
print "$columns[0]-Cache-Hit:$columns[3] ";
print "$columns[0]-Current-KBs:$columns[4] ";
print "$columns[0]-Current-IOs:$columns[6] ";
} else {
my $err = $csv->error_input;
print "Failed to parse line: $err";
}
}
close CSV;
The output is
CONTROLLER-IN-SLOT-B-Total-IOs:52583.0 CONTROLLER-IN-SLOT-B-Read-Percentage:90.9 CONTROLLER-IN-SLOT-B-Cache-Hit:64.6 CONTROLLER-IN-SLOT-B-Current-KBs:51543.4 CONTROLLER-IN-SLOT-B-Current-IOs:1696.2
with this info you can create the datapoint an graphics on Zenoss