Coraid CEC Script

It’s been a couple months now that I’ve been at Coraid and I figure I might as well start automating and scripting where needed.  I wrote a quick script to wrap our CEC tool with Perl’s Expect module.  Works really well and it will help anyone who’s trying to automate a lot of tasks on a Coraid SRX platform.

#!/usr/bin/perl

use lib qw{ /opt/coraid/lib/perl5/site_perl };

use Expect;
use strict;
use warnings;

if(! @ARGV) {
  print "usage: $0 <test> <aoe-interface> <cmd>  \n";
  exit 1;
}

$ENV{TERM} = 'vt100';
my $cec = "/usr/sbin/cec";
my $shelf = shift(@ARGV);
my $aoeif = shift(@ARGV);
my @cmd = @ARGV;
my $file = ".cec";

&run($shelf,$aoeif);


#########################################
sub run {
        my $shelf = $_[0];
        my $aoeif = $_[1];
        my $exp = Expect->spawn("$cec -s $shelf $aoeif") or return "Cannot spawn cec: $!\n";
        $exp->log_stdout(0);
        $exp->log_file($file, "w");
        return 0 unless $exp->expect(30, '-re','Escape is Ctrl-.*');

        $exp->send("\r");
        return 0 unless $exp->expect(10, '-re','SRX shelf(.*)');
        $exp->send("@cmd\r");
        return 0 unless $exp->expect(5, '-re','SRX shelf(.*)');

        &read;

}

sub cleanse {
        foreach my $o(@_) {
                if($o !~ /(^\s*$|done|escape|Shelf|^@cmd|connect|shelves)/i ) {
                        print $o;
                }
        }
}

sub read {
        open(F, $file);
        my @out = <F>;
        close(F);
        &cleanse(@out);
}
Watch on mattwoolley.com

SAN Storage at 1/5th the cost of Fibrechannel or ISCSI.

Coraid delivers its flexible cloud storage vision

#SuryaRay #Surya The race is on to make every part of the data center — from switches to storage arrays — software configurable. That’s the rationale behind Coraid’s new EtherCloud storage platform.

For EtherCloud, Coraid  is using Yunteq orchestration technology acquired last October to make its storage more flexible and adaptable to changing needs.

Redwood City, CA.-based Coraid’s storage  takes advantage of the lower-level — and very efficient — ATA-over-Ethernet protocol. That means that Coraid customers don’t need to upgrade to the pricey switches and other gear required by the fancier iSCSI or Fibre Channel protocols and still get good performance, said Jim Bagley, senior analyst with Storage Strategies Now.

Coraid CEO Kevin Brown said the resulting software will let users build and manage pools of shared storage that can then be divvied up or consolidated as needed.  EtherCloud taps into customers’ existing LDAP or AD directories for authentication and will meter the use of compute, network and storage resources. The company said  admins will be able to deploy VMware ESXi VMs — and their associated storage allocation and network connections — in one click.

The company also announced programmable  EtherFlash Cache that uses solid-state drives (SSDs) to boost read performance in time-sensitive server virtualization, database and e-mail applications. That software will let customers “mix and match” drives as needed, Brown said. The use of solid-state or flash drives is another recurring theme this week as vendors prep for the Flash Summit Conference.

Coraid, which landed $50 million in Series C funding in November, is something of an up-and-comer in the a market where it faces much bigger competitors in EMC and NetApp.


—-

http://dlvr.it/226NQs @suryaray
Text
Photo
Quote
Link
Chat
Audio
Video