AnsweredAssumed Answered

HiCommandCLI scripting

Question asked by Léa CHAUVIN on Mar 12, 2014
Latest reply on Mar 13, 2014 by Vinod Subramaniam

Hi All,

My customer want to create resources for LPAR/VM with a script

We use HDVMCLI

After running the script (perl). the host entry still remains in 'others', neither "AIX" as expected.

Want is wrong ?

any other command to pass ?

Thank you

Léa

 

 

our script looks like

     ($rc, $output ) = exec_HDVM_cmd ($cmd, $FhResultat, "AddArrayReservation.txt");

      if ($rc==0) {last} ;

        $cmd = "AddHostStorageDomain portname=$portname1 nickname=$lpar name=$lpar domain=$domain \"hostmode=AIX\" \"hostmodeoption=40\"";

...

       $cmd = "AddHostStorageDomain portname=$portname2 nickname=$lpar name=$lpar domain=$domain  \"hostmode=AIX\" \"hostmodeoption=40\"";

...

      $cmd = "AddHost hostname=$lpar \"wwnlist=$alias,$alias1\"";

....

      $cmd = "AddVirtualVolume capacity=$size poolid=$pool devnum=$ldev ";

....

      $cmd = "AddLabel devnums=$ldev \"label=$dev_name\"";

....

      $cmd = "AddLun  \"name=root\" portname=$portname1 domain=$domain scsi=15 lun=10 devnum=$ldev";

...

      $cmd = "AddLun  \"name=root\" portname=$portname2 domain=$domain scsi=15 lun=10 devnum=$ldev";

.... 

#      $cmd = "AddHostInfo hostname=$lpar devnum=$ldev osscsibus=$addhost->{osscsibus} osscsiid=$addhost->{osscsiid}  oslun=$addhost->{oslun}";

....

     $cmd = "Hostscan";

..

      $cmd = "DeleteArrayReservation";

...                                               

Outcomes