segadson
Contributor
Contributor

Finding Disks on Scsi Controllers

  Hello,

I have disks that are splay across multiple SCSI controllers and I want to find out which disks are on which SCSI controller but in my switch statement I get a error

for each (var scsiController in scsiControllers){

    scsiID = scsiControllers[pos-1];'

    if

    switch (pos)

    {

        case 1:

        for each (disk in Disks){

        if (disk.key in scsiID.device){

        scsiControllerBus0Disks.push(disk);

        }

        System.log(scsiControllerBus0Disks);

        break;

        case 2:

        for each (disk in Disks){

        if (disk.key in scsiID.device){

        scsiControllerBus1Disks.push(disk);

        }

        System.log(scsiControllerBus1Disks);

        break;

        case 3:

        for each (disk in Disks){

        if (disk.key in scsiID.device){

        scsiControllerBus0Disks.push(disk);

        }

        System.log(scsiControllerBus2Disks);

        }

}

0 Kudos
0 Replies