Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

Finding Disks on Scsi Controllers

$
0
0

  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);

        }

}


Viewing all articles
Browse latest Browse all 6251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>