HI All,

please help me on the below issue...

My problem is: 

When I am trying to do SECURE COPY to update private IP address, the active 
node is hanging for some time.

In My code "The file /etc/bin/scp is not copying file /etc/inet/hosts to the 
private IP".

My code is:

# update /etc/inet/hosts file to Private IP,
sed_file($hash{UNIT0PRIV0},$u0privaddr, "/etc/inet/hosts");
sed_file($hash{UNIT1PRIV0},$u1privaddr, "/etc/inet/hosts");
$thisnode = system("grep unit1-priv0 /etc/hostname.uplink1 >/dev/null");

$thatnodeip = $hash{UNIT0PRIV0};

if ( $thisnode ne 0 ) 
{
         $thatnodeip = $hash{UNIT1PRIV0};
}

if (system("/usr/bin/scp -q -B /etc/inet/hosts $thatnodeip:/etc/inet/hosts"))   
-à Facing with this line
{
          print "Error: Failed to update /etc/inet/hosts on the other node for 
private IP.\n";

           $retval = $needCloneRC;
}

Please look into the above one, and let me know the correct adjustment.

Thanks,
Vardhan
-- 
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to