<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: script problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/2698442#M57313</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;the runq is not doing anything I just wanted to prove the syntax file got used. &lt;BR /&gt;&lt;BR /&gt;I will test on my system the best way to ensure this runs each boot time and get back to you shortly.&lt;BR /&gt;&lt;BR /&gt;John.</description>
    <pubDate>Sat, 06 Apr 2002 07:58:38 GMT</pubDate>
    <dc:creator>John Carr_2</dc:creator>
    <dc:date>2002-04-06T07:58:38Z</dc:date>
    <item>
      <title>script problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/2698438#M57309</link>
      <description>Hi ,&lt;BR /&gt;&lt;BR /&gt;We have glnceplus installed for our superdome servers. Sendmail is also configured for these servers. I want to automate the glace o/p using cron so that we can receive it for each 10 min duration. Following is the workaround I have done but some how it's not fuctioning. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1) Wrote a script glance1 [content of which is attached herewith"&lt;BR /&gt;2) done following entries in crontab file :-&lt;BR /&gt;&lt;BR /&gt;0,10,20,30,40,50 * * * * /shripad/scripts/glance1 &lt;BR /&gt;1,11,21,31,41,51 * * * * mailx -s CPU UTILIZATION ON DBNODE as on $2$3$6 shripad.patkar@seepz.tcs.co.in &amp;lt; /shripad/logs/glancelog/glance$4 $2$3.log</description>
      <pubDate>Sat, 06 Apr 2002 07:04:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/2698438#M57309</guid>
      <dc:creator>deepak_9</dc:creator>
      <dc:date>2002-04-06T07:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: script problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/2698439#M57310</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;cron is executing the script at ten minute intervals but nothings is being passed to the script to process. &lt;BR /&gt;&lt;BR /&gt;In the script you have variables $2... these are meant to hold some info passed to the script at execution time.&lt;BR /&gt;&lt;BR /&gt;cheers&lt;BR /&gt;John.</description>
      <pubDate>Sat, 06 Apr 2002 07:10:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/2698439#M57310</guid>
      <dc:creator>John Carr_2</dc:creator>
      <dc:date>2002-04-06T07:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: script problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/2698440#M57311</link>
      <description>Hi deepak&lt;BR /&gt;&lt;BR /&gt;I looked into what your trying to achieve and I think I have better way to this.&lt;BR /&gt;&lt;BR /&gt;forget cron&lt;BR /&gt;&lt;BR /&gt;run glance in background constantly reporting to a file every ten minutes.&lt;BR /&gt;&lt;BR /&gt;echo "runq=" &amp;gt; /tmp/glance.syntax&lt;BR /&gt;&lt;BR /&gt;/opt/perf/bin/glance -advisor-only -syntax /tmp/glance/syntax -j 600 &amp;gt; /tmp/glance.output &amp;amp;&lt;BR /&gt;&lt;BR /&gt;this will now do what you need and if you man on glance it will tell you about different options you may wish to include in the glance.syntax file.&lt;BR /&gt;&lt;BR /&gt;good luck&lt;BR /&gt;John.</description>
      <pubDate>Sat, 06 Apr 2002 07:38:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/2698440#M57311</guid>
      <dc:creator>John Carr_2</dc:creator>
      <dc:date>2002-04-06T07:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: script problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/2698441#M57312</link>
      <description>Hi John,&lt;BR /&gt;&lt;BR /&gt;I think this will solve my purpose. But how to enable this at system startup so that even after reboot it will be there. Do I have to prepare a RC script or glance has an option. Also what is "runq" and one more doubt is "shall I have to invoke this command only once from the command prompt or?"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;deepak</description>
      <pubDate>Sat, 06 Apr 2002 07:52:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/2698441#M57312</guid>
      <dc:creator>deepak_9</dc:creator>
      <dc:date>2002-04-06T07:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: script problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/2698442#M57313</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;the runq is not doing anything I just wanted to prove the syntax file got used. &lt;BR /&gt;&lt;BR /&gt;I will test on my system the best way to ensure this runs each boot time and get back to you shortly.&lt;BR /&gt;&lt;BR /&gt;John.</description>
      <pubDate>Sat, 06 Apr 2002 07:58:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/2698442#M57313</guid>
      <dc:creator>John Carr_2</dc:creator>
      <dc:date>2002-04-06T07:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: script problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/2698443#M57314</link>
      <description>Hi John,&lt;BR /&gt;&lt;BR /&gt;I am able to get the output but it contains junk characters, don't know how to get rid of this.  Typed below is the output which I have set to receive to a mail id with cron daemon's help.&lt;BR /&gt;&lt;BR /&gt;[?1h [0m [2J [H [48B [;7mProcList [m  [;7mCPU Rpt  [m  [;7mMem Rpt  [m  [;7mDisk Rpt [m [61C [;7mNextKeys [m  [;7mSlctProc [m  [;7m  Help   [m  [;7m  Exit   [2J [H [mB3692A GlancePlus C.03.50.00 15:01:43   dbnode 9000/800 [56CCurrent  Avg High&lt;BR /&gt;------------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt; [4;26H [;7mInitializing... [m [3B&lt;BR /&gt;------------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt; [41B [;7mProcList [m  [;7mCPU Rpt  [m  [;7mMem Rpt  [m  [;7mDisk Rpt [m [61C [;7mNextKeys [m  [;7mSlctProc [m  [;7m  Help   [m  [;7m  Exit   [m [1;40H4 [2B&lt;BR /&gt;CPU  Util    [;7;1mS                                   S [;7mA [;7;1mU    U [m [59C| 43%   43%  43%&lt;BR /&gt;Disk Util    [;7;1mF     F [;7mV [m                  [75C|  7%    7%   7%&lt;BR /&gt;Mem  Util    [;7;1mS                  S [;7mU                 U [;7;1mB                                                 B [m     | 88%   88%  88%&lt;BR /&gt;Swap Util    [;7;1mU                                 U [;7mR          R [m [56C| 46%   46%  46%&lt;BR /&gt; [8;59HCPU BY PROCESSOR [46CUsers=  12 [B&lt;BR /&gt;CPU  State     Util   LoadAvg(1/5/15 min)   CSwitch   Last Pid [B&lt;BR /&gt;-------------------------------------------------------------------------------- [B&lt;BR /&gt;  1 Enable     29.8 0.7/  0.7/  0.7 [7C851 23174 [B&lt;BR /&gt; 12 Enable     52.4 0.5/  0.7/  0.7 [6C1777 25992 [B&lt;BR /&gt;  4 Enable     45.2 0.3/  0.5/  0.6 [6C1180  1254 [B&lt;BR /&gt; 15 Enable     34.7 0.8/  0.7/  0.7 [6C1842 26042 [B&lt;BR /&gt;  0 Enable     35.5 0.9/  0.8/  0.8 [7C778 16535 [B&lt;BR /&gt; 11 Enable     68.5 1.0/  0.8/  0.8 [6C2459 25988 [B&lt;BR /&gt;  5 Enable     16.1 0.5/  0.6/  0.6 [6C1058  4666 [B&lt;BR /&gt;  3 Enable     38.7 0.8/  0.6/  0.6 [6C2374  4666 [B&lt;BR /&gt;  7 Enable     80.6 0.4/  0.5/  0.6 [6C1080 26035 [B&lt;BR /&gt;  8 Enable     28.2 0.6/  0.6/  0.7 [6C1267 18067 [48;121HPage 1 of 2</description>
      <pubDate>Sat, 06 Apr 2002 09:34:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/2698443#M57314</guid>
      <dc:creator>deepak_9</dc:creator>
      <dc:date>2002-04-06T09:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: script problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/2698444#M57315</link>
      <description>Hi deepak&lt;BR /&gt;&lt;BR /&gt;what happens if you "cat" the output file on the unix server ? &lt;BR /&gt;&lt;BR /&gt;I crashed my server testing a few things but will be back up and running shortly.&lt;BR /&gt;&lt;BR /&gt;have you done a man on glance there's lots of help in the pages I suspect your last problem is we need to format the output into an ascii format.&lt;BR /&gt;&lt;BR /&gt;back soon&lt;BR /&gt;John.</description>
      <pubDate>Sat, 06 Apr 2002 09:51:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/2698444#M57315</guid>
      <dc:creator>John Carr_2</dc:creator>
      <dc:date>2002-04-06T09:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: script problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/2698445#M57316</link>
      <description>HI,&lt;BR /&gt;&lt;BR /&gt;If I do "cat glance.out" the output is :-&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;==================== GlancePlus Fatal Error =====================&lt;BR /&gt;Version: B3692A GlancePlus C.03.50.00&lt;BR /&gt;User   :   root                   Date: Sat Apr  6 15:05:19&lt;BR /&gt;File   :   /crm/gp/source/glance/terminal.c   Line: 1319&lt;BR /&gt;System : dbnode B.11.11 9000/800&lt;BR /&gt;&lt;BR /&gt;Glance terminated with error code 5.&lt;BR /&gt;======================================================================&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;===================== GlancePlus Non-Fatal Error =====================&lt;BR /&gt;Version: B3692A GlancePlus C.03.50.00&lt;BR /&gt;User   :   root                   Date: Sat Apr  6 15:05:20&lt;BR /&gt;File   :   /crm/gp/source/glance/glance.c   Line: 976&lt;BR /&gt;System : dbnode B.11.11 9000/800&lt;BR /&gt;&lt;BR /&gt;Unable to perform functions on devices.&lt;BR /&gt;======================================================================&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;===================== GlancePlus Non-Fatal Error =====================&lt;BR /&gt;Version: B3692A GlancePlus C.03.50.00&lt;BR /&gt;User   :   root                   Date: Sat Apr  6 15:05:20&lt;BR /&gt;File   :   /crm/gp/source/glance/glance.c   Line: 978&lt;BR /&gt;System : dbnode B.11.11 9000/800&lt;BR /&gt;&lt;BR /&gt;Unable to perform functions on devices.&lt;BR /&gt;</description>
      <pubDate>Sat, 06 Apr 2002 09:55:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/2698445#M57316</guid>
      <dc:creator>deepak_9</dc:creator>
      <dc:date>2002-04-06T09:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: script problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/2698446#M57317</link>
      <description>Hi again&lt;BR /&gt;&lt;BR /&gt;I have my system back now the file created is in fact a screen dump ready for a printer. There appears to be no options to have an ascii output that I can see.&lt;BR /&gt;&lt;BR /&gt;John.</description>
      <pubDate>Sat, 06 Apr 2002 10:07:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-problem/m-p/2698446#M57317</guid>
      <dc:creator>John Carr_2</dc:creator>
      <dc:date>2002-04-06T10:07:08Z</dc:date>
    </item>
  </channel>
</rss>

