[prev in list] [next in list] [prev in thread] [next in thread]
List: opensolaris-testing-discuss
Subject: [testing-discuss] Doing SCP(Secure Copy) to the Private IP
From: Harsha <kurma.mandeepala () wipro ! com>
Date: 2010-12-21 21:53:22
Message-ID: 846541146.31292997233600.JavaMail.Twebapp () sf-app1
[Download RAW message or body]
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
_______________________________________________
testing-discuss mailing list
testing-discuss@opensolaris.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic