Anyone got any ideas on how to do a fuzzy type search on a string in ksh, without cutting the string up (too many naming variations)
my script works when lsvg output like
VOL_PROD_NO1_vg
and vcs command produces
VOL_PROD_NO1
but when
lsvg produces something like
VOL_PROD_NO1_vg...
Is this possible?
SPLIT=40
awk '{
if (NR % ${SPLIT})
printf ("%s #", $0)
NR doesn't seem to like the Var $SPLIT
I've seen examples like
NR % V1 ; V1=$SPLIT
but can't seem to get my head round it.
Mike
"Whenever I dwell for any length of time on my own shortcomings, they gradually...
Hi,
I have a text file in the following format
field1,field2,"fie,ld,3",field4,"fie,ld,5"
I need to grab numerous fields from the file, but am struggling to find a way to protect the field-seperator if it appears in quotes.
E.g
awk -F, '{print $3}'
I need "fie,ld,3"
and not
fie
any...
Hi
I'm working on a front-end login menu system based on LDAP but am hitting a few problems.
The process itself works if a user is in a particular netgroup they get a list of servers in that netgroup, if a users is in multiple netgroups, they get a list of servers from multiple netgroups, but...
Just tinkering around with a few ideas and wanted to get some feedback.
How useful would it be to people to have remote access to a AIX / HP-UX / Solaris server as a sandbox. I have several servers laying about at home and was thinking about chucking them on the net and hiring them out (remote...
Hi,
Can anyone think of a nicer way to do the following, I'm creating a lpar autobuild script, got to the point where I need to check if the lpar profile already exists, is it created in line with a config file, if it is let the scripts that follow run (Add vhost / rootvg), if not stop.
Had a...
All,
Got an interesting problem to deal with, I'm creating part of an autobuild script (in ksh).
We receive a range of disk metas that will be assigned to a AIX vio server.
0733 - 07D4
I need a way of creating a list from the values above.
I was thinking of converting them to dec then using...
Hi zaxxon,
I appear to be having the same issues you had (re NFS) thread52-1447315 , did you manage to find a solution?
Mike
"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the...
Anyone using hanim?
Got a problem when doing a
nim -o takeover -a force=yes nim1
If it comes across a server that is not up it appears to hang forever, anyone know if there is a timeout option.
Got a call open with IBM but they arn't being very helpful at the moment.....
Mike
"Whenever I...
Bit of a strange one this.
AIX 5.3 TL9 SP1
datavg
datavg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
export_lv jfs2 1680 3360 6 open/syncd /export
loglv00 jfs2log 1 2 2 open/syncd N/A
cvsroot...
I'm in the process of planning to migrate from borrowed SAN disk to New SAN on a few of my server, I've though about serveral options available to me.
1. SAN Tools - Non Avaialble.
2. Multiple Copies in Parallel - A nightmare.
3. Migratepv / Replacepv - Horrible if it goes wrong.
4. mklvcopy /...
I have a file containing
ENC0
ENC1
....
how would I read the file contents and assign each line to a variable?
VAR1=ENC0
VAR2=ENC1
VAR3=.....
The lines (enclosure type) vary depending on the SAN type, we could have more than two lines.
I know I could use
awk 'NR==1'
awk 'NR==2'
Mike...
How can I replace a null value within a variable?
I know the var has a value set using
if [ -z $ver ] ; then
if [ $(ver+EMPTY} = EMPTY] ; then
echo "var empty"
else
echo "var not set"
fi
else
echo "var has value"
fi
but if I echo $ver > file
the file appears empty.
Ideas?
Mike...
Quick question does anyone have any insights into monitoring disk mirrors on Dual VIO's
Mike
"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's...
Hello all,
I have the following data
--------------------------------------
10.0.193.1
Name: servername.company.com
--------------------------------------
10.0.193.2
No NS Record
--------------------------------------
10.0.193.3
No NS Record
--------------------------------------
I'm...
I have a list
P590-AAAc-123
P590-BBBcc-123
P520-CCCc-123
P590-DDDccc-123
P550-EEEc-123
That I would like to format the following way
P590-AAAc-123 P590-BBBcc-123 P590-CCCc-123
P590-DDDccc-123 P590-EEEc-123
So far I've got
$SSHU $HMC -l $HMCUSER lssyscfg -r sys | awk -F, '{print $1}'|sed...
Anyone know if you can rename a vhost on a HMC, we seem to have a mis-match and rather than delete the virtual scsi details I wondered if they could just be re-named. E.g. vhost4 to vhost100?
Mike
"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.