Personally, I disagree with any environment consisting of only one type of server. The environment I work in contains HP, Solaris, AS/400, Vax, SGI, etc. I think an environment should be built to it's purpose. Each OS has it's strong points and weak points. Whereas the process listed above...
Hello,
I have a project that required me to replace the two mirrored 36G disks on our S8 box with two 146G disks. I am posting my plan and a couple questions at the end. If anyone has any suggestions to make it easier or sees an error, please let me know. Assume all env changes will happen...
Chacalinc,
Almost had it. The only problem now is when I look at the output, it is the output of the perl script, not the fwtmp command.
ie
`/usr/sbin/acct/fwtmp -ci < /var/adm/wtmp > /tmp/wtmp.out`
`cat /tmp/wtmp.out |awk ' { getline; print $0 } ' |perl script.pl |awk ' { if...
takes output from fwtmp and converts to days.
output from fwtmp:
XXXUSER tc pts/tc 7550 8 0000 0000 1058653784 Jul 19 17:29:44 2003
Output from perl:
XXXUSER tc pts/tc 7550 8 0000 0000 1058653784 Jul 19 17:29:44 2003 204 days
Then I awk for $(NF-1), --> 204, if greater...
We take one line from the file, run it through a perl script, awk - to $(NF-1) to get the value.
In a script we would do;
while true
do
A=`head -1 file`
B=`head -1 file |perl /path/script.pl |awk ' { print $(NF-1) ] '`
if [ B -gt 90 ]
do
sed '/'$A'/d' filein > fileout
done
fi
done
However, by...
Tried both. I am using awk to mine the specific data I am testing in the command. I want to use that inside of sed. man sed does not go into condition statements.
Something like - sed '/'`read each line, |parse.pl | awk NF-1| if X > 91 `'/d'. That way it will delete every line where the...
I have a file with over 5M lines in it. I want to use sed to remove any line where x > 91. In order to get X, I have some logic to run, therefore piping it to sed rewrites 5M + lines for every line it processes. I remember seeing a way of running a conditional sed (sed '/s'/'if etc'/') but...
Hi all,
I hope someone will be able to help me. I am writing a cl to monitor some things on the system. I have a var, lets call it 'A'. It is defined out of a pf as length 25. This is because the value will range anywhere from 1 to 25 positions. When I do a 'if cond(&A *eq &B)' when &B is...
I would think with all the other options available to recover after hosing a kernel or something, it really wouldn't be needed anymore. You can boot cdrom -s and mount your filesystems in /dev/dsk/c0t0d0s0 even when you are using disksuite and fix your problems from there. I would have though...
This may help and may not.
/dev/dsk/c0t0d0s0 is usually linked to something in the /devices/pci@XXXXXXX directory. Metadevices (/dev/md/dsk/d0) are linked to /devices/pseudo/md@0(or 1)XXXXX.
I have a few theories on what it could be, but I am not sure what the '-a' switch does, as I have...
I don't know for sure, but if you do a search out here for 'caljd.sh', that script may help you. I am not sure if it will do that, but it may be worth looking at...
As an update to this, HP has a patch out for this. If anyone runs into this problem, search on the ITRC for the HW part number of the GSP to find the patch.
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.