Hi All,
Please anyone let me know, how the scp is working for private IP.
now my exact question is:
# update /etc/inet/hosts file at last,
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"); #
is this unit1?
$thatnodeip = $hash{UNIT0PRIV0};
if ( $thisnode ne 0 ) { # this is unit0
$thatnodeip = $hash{UNIT1PRIV0};
}
if (system("/usr/bin/scp -q -B /etc/inet/hosts
$thatnodeip:/etc/inet/hosts")) --> this line not working...
{
print "Error: Failed to update /etc/inet/hosts on the other node for
private IP.\n";
$retval = $needCloneRC;
}
}
Now there i am planing to do scp to the other unit.
Thanks in Advance,
Vardhan
--
This message posted from opensolaris.org
_______________________________________________
caiman-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/caiman-discuss