[HPADM] /sbin/sh script taking 100% CPU

From: Joe Crawford (abjcrawford_at_yahoo.com)
Date: 01/17/05

  • Next message: Marshall, Richard: "[HPADM] Openview Management suite"
    Date: Mon, 17 Jan 2005 12:47:37 -0800 (PST)
    To: hp <hpux-admin@dutchworks.nl>
    
    

    Team:

    Today we ran into an issue..A script (run a /sbin/sh)
    took 100% CPU on out prod system. This script runs as
    cron and updates the .rhosts file (we need this file).
    There was a for loop inside the script which performs
    nslookup (which i think never returned anything). My
    question is
    1. should this script be run in /sbin/sh and what are
    the negative effects of that?
    2. I think it was running the nslookup command to get
    the full hostname with domain info. Is it a good idea
    to run nslookup inside a for loop. If there is an
    issue in getng the info wont it go around? what are
    the best way to pickup a full hostname with domain
    info in that case?

    Please advise.

    Thanks

    Joe.

                    
    __________________________________
    Do you Yahoo!?
    Yahoo! Mail - Helps protect you from nasty viruses.
    http://promotions.yahoo.com/new_mail

    --
                 ---> Please post QUESTIONS and SUMMARIES only!! <---
            To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
           Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
     
     Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
                http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)
    

  • Next message: Marshall, Richard: "[HPADM] Openview Management suite"

    Relevant Pages

    • Re: Report in FM 6 or 7
      ... achieve this report format will have to be done via scripting. ... but they will simplify the script and Sort Order. ... End Loop ... The normal 'Dancer' field is used so that if there are more than one ...
      (comp.databases.filemaker)
    • Re: recreate database script not work
      ... I got a script which is supposed to regenerate database systax. ... REM gen_dbse_9.sql ... end loop; ...
      (comp.databases.oracle.server)
    • Re: Loop Problem (At Least I think)
      ... If there are no images matching the product ... "" Then" statement (the one below the loop, outside of it), is this just ... >> script to finish. ... > 2) Read the database table and acess the dictionary object for the ...
      (microsoft.public.scripting.vbscript)
    • Re: How to set up a global variable in a sub-routine?
      ... the 'global variables' are more like constants ... ... single script, I need a way to tell it only once where the file is and ... So, if you construct a loop with a loop variable, you ... >programmers avoid global variables completely. ...
      (perl.beginners)
    • Re: WMI Timeout possible?
      ... In my case, they script just hangs, no errors, no warnings, nothing. ... > for each loop from a dictionary object. ... > fine...just this snag with the WMI timeout thing. ... > 3.4) compare collected data to preexisting data from the OLE source ...
      (microsoft.public.scripting.vbscript)