04-07-2011
Quote:
Originally Posted by
aixromeo
My interpretation is when the node initiates communication, it use the persistent the persistent address instead of the service one.
Actually this should not be the case. What is the output of "netstat -rn" ? And what is the output of "lsattr -El inet0"?
bakunin
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I found a way to make a numeric variable persistent for a script :
#!/bin/bash
function Persist() { # 1:Expression like VARIABLE=Value (numeric)
local V=${1%=*}
eval "$1"
sed -i "s/^$V=*/$1/" $(which $(basename $0)) || return 1
}And how to use itAA=12
read -p "Enter a... (2 Replies)
Discussion started by: frans
2 Replies
2. AIX
hi,
when I do a failover, hacmp always starts db2 but recently it fails to start db2..noticed the issue is db2nodes.cfg is not modified by hacmp and is still showing primary node..manually changed the node name to secondary after which db2 started immediately..unable to figure out why hacmp is... (4 Replies)
Discussion started by: gkr747
4 Replies
3. AIX
i am trying to make HACMP but when i add a persistent ip, error shows unable to determine address for 'UPIDGIS1_pers'
pls help me out
AIX - 5.3
HACMP -5.4
thanks (2 Replies)
Discussion started by: reply.ravi
2 Replies
4. Solaris
All,
I hope someone can help me on my problem with an aggregate, as I am a Solaris noob. I tried doing this according to the official documentation from Oracle (unfortunately, as a new user to the forum, I may not post URLs...) and also googled a lot around, but have not found any solution yet.... (15 Replies)
Discussion started by: Captainquark
15 Replies
5. Solaris
Hi all,
please i need your help urgently
I am faced to a serious boot disks issue on an Sun Fire E2900.
The system run with two disque in zpool .
The operating system is Solaris 10 (ZFS)
The first time the issue occured, i got the error below on the two disks:
Apr 7 08:04:33... (0 Replies)
Discussion started by: saki_jumeau
0 Replies
6. War Stories
:wall::wall::wall::wall:
I am sharing some techno-geeky-work related issue, which can best be dissected here only.
I am expecting more of a discussion,as serious as when two guys sharing experience over smoke and beer.
The thing is, till now i have been only a student, so never cared about how... (10 Replies)
Discussion started by: animesharma
10 Replies
7. Programming
I noticed that when attempting to download videos from the url, I receive a 403 forbidden when I get through to a certain point in my downloads. I can download a third of the videos but will error:
Retrieving file 'blah-video.f4v'...
Traceback (most recent call last): ... (0 Replies)
Discussion started by: metallica1973
0 Replies
8. Post Here to Contact Site Administrators and Moderators
Hi,
I just registered to this forums using an e-mail address where the activation mail never was received. Thanks to Scott who activated my account by hand.
So I looked up unix.com in blacklists on mxtoolbox.com (I'm not yet allowed to post URLs...) and found that the site is blacklisted in... (3 Replies)
Discussion started by: rse
3 Replies
9. Linux
Hi ,
I have cent os 6.5 and am trying to make few routes permanent for bond:
i have added two routes using below two commands :
/sbin/route add -net 10.0.0.0 netmask 255.0.0.0 gw 10.59.160.128
/sbin/route add -net 0.0.0.0 netmask 0.0.0.0 gw 49.44.52.90
post which route command output is... (5 Replies)
Discussion started by: omkar.jadhav
5 Replies
10. AIX
I have done other clusters (HP MC/Service Guard and oracle Clusters, and RHEL Cluster services), and have good idea about hacmp (a little older knowledge).
However the term "Boot IP" for some reason is messing with my head. Have not done HACMP since the 4.1.2.X days.
Is the Bootip the... (1 Reply)
Discussion started by: mrmurdock
1 Replies
LEARN ABOUT DEBIAN
shell-quote
SHELL-QUOTE(1p) User Contributed Perl Documentation SHELL-QUOTE(1p)
NAME
shell-quote - quote arguments for safe use, unmodified in a shell command
SYNOPSIS
shell-quote [switch]... arg...
DESCRIPTION
shell-quote lets you pass arbitrary strings through the shell so that they won't be changed by the shell. This lets you process commands
or files with embedded white space or shell globbing characters safely. Here are a few examples.
EXAMPLES
ssh preserving args
When running a remote command with ssh, ssh doesn't preserve the separate arguments it receives. It just joins them with spaces and
passes them to "$SHELL -c". This doesn't work as intended:
ssh host touch 'hi there' # fails
It creates 2 files, hi and there. Instead, do this:
cmd=`shell-quote touch 'hi there'`
ssh host "$cmd"
This gives you just 1 file, hi there.
process find output
It's not ordinarily possible to process an arbitrary list of files output by find with a shell script. Anything you put in $IFS to
split up the output could legitimately be in a file's name. Here's how you can do it using shell-quote:
eval set -- `find -type f -print0 | xargs -0 shell-quote --`
debug shell scripts
shell-quote is better than echo for debugging shell scripts.
debug() {
[ -z "$debug" ] || shell-quote "debug:" "$@"
}
With echo you can't tell the difference between "debug 'foo bar'" and "debug foo bar", but with shell-quote you can.
save a command for later
shell-quote can be used to build up a shell command to run later. Say you want the user to be able to give you switches for a command
you're going to run. If you don't want the switches to be re-evaluated by the shell (which is usually a good idea, else there are
things the user can't pass through), you can do something like this:
user_switches=
while [ $# != 0 ]
do
case x$1 in
x--pass-through)
[ $# -gt 1 ] || die "need an argument for $1"
user_switches="$user_switches "`shell-quote -- "$2"`
shift;;
# process other switches
esac
shift
done
# later
eval "shell-quote some-command $user_switches my args"
OPTIONS
--debug
Turn debugging on.
--help
Show the usage message and die.
--version
Show the version number and exit.
AVAILABILITY
The code is licensed under the GNU GPL. Check http://www.argon.org/~roderick/ or CPAN for updated versions.
AUTHOR
Roderick Schertler <roderick@argon.org>
perl v5.8.4 2005-05-03 SHELL-QUOTE(1p)