Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. wtrepani

    Certain users cannot login

    Make sure that each user has a home directory that exists.
  2. wtrepani

    Disk migration

    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...
  3. wtrepani

    Disk migration

    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...
  4. wtrepani

    conditional sed statement

    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...
  5. wtrepani

    conditional sed statement

    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...
  6. wtrepani

    conditional sed statement

    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...
  7. wtrepani

    conditional sed statement

    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...
  8. wtrepani

    conditional sed statement

    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...
  9. wtrepani

    AS/400 CL help

    Never mind, I figured it out. &quot; dcl var(&cmd) type(*char) len(1024) dcl var(&newset) type(*char) dclf file crtdtaara dtaara(qtemp/temp) type(*char) rcvf chgvar var(&cmd) value('chgdtaara dtaara(qtemp/temp) value(''*tcat &setting *tcat '')') call pgm(qsys/qcmdexc) parm (&cmd 1024)...
  10. wtrepani

    AS/400 CL help

    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...
  11. wtrepani

    Solaris 8 Solstice mirroring

    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...
  12. wtrepani

    Solaris 8 Solstice mirroring

    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...
  13. wtrepani

    Shell script for manipulating the current date

    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...
  14. wtrepani

    Interesting Problem with Network

    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.
  15. wtrepani

    A question from my SCSA 2 exam.

    'man resolv.conf' will tell you where to start looking...
  16. wtrepani

    Solstice Disksuite

    you may also consider removing the entries from /etc/lvm/md.cf and /etc/lvm/md.tab files. Again, make a backup first.
  17. wtrepani

    allocating space to un-used slice

    Did you run format and set slice seven to all available space? Set the beginning cylinder to the next in line and the end to '$' and it should take whatever remaining space is on the drive. The system won't do this automatically... This assumes that the slices are set in sequential order...
  18. wtrepani

    Solstice Disksuite

    I haven't encountered this, but I would try commenting everything from /etc/system starting with '* Begin MDD root info (do not edit) ' to '* End MDD database info (do not edit) ' out and reboot. To do this, you will need to boot to single user mode from the cd, mount the device, then edit...
  19. wtrepani

    Server drops to OK prompt everynight?

    If there is a serial terminal attached to it, that could cause what you are seeing. If a serial terminal is attached at boot, then it is considered the console. If it is disconnected, powered off, or the connection is broken in any way, it will stop the system and drop you to an OK prompt. I...
  20. wtrepani

    Funny netmask

    Yup, that setting is there, and I recreated the file from the default to eliminate the possibility of extra white space to be sure. But I have not had the opportunity to reboot yet. In the /etc/networks file, there are a lot of networks defined that do not exist anymore, and 10 is defined...

Part and Inventory Search

Back
Top