<?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: Parsing glance outpout in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/parsing-glance-outpout/m-p/2709212#M60076</link>
    <description>HI Ralph,&lt;BR /&gt;&lt;BR /&gt;Try this way for short intervals.&lt;BR /&gt;&lt;BR /&gt;Create any file ex /. metrics.def with the following contents&lt;BR /&gt;&lt;BR /&gt;PRINT "DiskLogical", gbl_disk_logl_io &lt;BR /&gt;PRINT "DiskSystem", gbl_disk_system_io&lt;BR /&gt;&lt;BR /&gt;(add as many you want)&lt;BR /&gt;&lt;BR /&gt;Now run the command glance with syntax option&lt;BR /&gt;&lt;BR /&gt;glance -j 1 -iterations 1 -adviser_only -syntax metric.def &amp;gt; glance.out&lt;BR /&gt;&lt;BR /&gt;Now you can grep for only DiskLogical or DiskSystem from it.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
    <pubDate>Wed, 24 Apr 2002 20:09:23 GMT</pubDate>
    <dc:creator>Sridhar Bhaskarla</dc:creator>
    <dc:date>2002-04-24T20:09:23Z</dc:date>
    <item>
      <title>Parsing glance outpout</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/parsing-glance-outpout/m-p/2709208#M60072</link>
      <description>Hello everyone,&lt;BR /&gt;&lt;BR /&gt;since it will take some time till I've got accustomed with the abundance of MWA alarm generation and configuration possibilties I for now need a quick and dirty way to retrieve system metrics.&lt;BR /&gt;&lt;BR /&gt;As I have regular disk I/O bottlenecks on some of our servers/disk subsystems, I am interested in the a screen dump of the glance 'u' screen.&lt;BR /&gt;&lt;BR /&gt;So far I've been parsing output from various sar invocations (e.g. -d), but think the midaemon's datalogs will be more suitable in the HP-UX world.&lt;BR /&gt;&lt;BR /&gt;I tried this from a script, to dump disk I/O metrics:&lt;BR /&gt;&lt;BR /&gt;/opt/perf/bin/glance -u -iterations 2 -adviser_off -f /tmp/glance_disk.txt &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;But this isn't really satisfactory.&lt;BR /&gt;First it only dumps the 1st disk screen (we have too many disks to go on one screen).&lt;BR /&gt;Second the device names (i.e. HW paths) are chopped off because the EMC HW addresses are too long to fit the column width, which makes filesystem or LV distinction more cumbersome (ok I could well dump the 'i' screen, but this meant two invocations of glance)&lt;BR /&gt;Third the dumping to a file via the -f switch isn't really what I desire, since I need to further parse this dump.&lt;BR /&gt;Thus I would rather like to pipe it in a another command but this doesn't work although I tried "-f $(tty)" or even "-p $(tty)", or "-f -" etc. the usual Unix way.&lt;BR /&gt;&lt;BR /&gt;Although parsing this dump wouldn't mean much, instead all I really need are the metrics&lt;BR /&gt;&lt;BR /&gt;GBL_DISK_UTIL_PEAK&lt;BR /&gt;BYDISK_UTIL&lt;BR /&gt;GBL_DISK_SUBSYSTEM_QUEUE&lt;BR /&gt;BYDISK_REQUEST_QUEUE&lt;BR /&gt;&lt;BR /&gt;But I'm not sure if you can put these in a file that you pass to glance through the -syntax option.&lt;BR /&gt;All I've seen in the global /var/opt/perf/adviser.syntax file were definitions of symptoms and alarms, but not a choice of metrics as in /var/opt/perf/reptall&lt;BR /&gt;I don't want to restart mwa with a new report file to this end.&lt;BR /&gt;&lt;BR /&gt;Can anyone tell me how to extract what I need from a script in intervalls shorter than the 5 min. of /var/opt/perf/datafiles/log* that can be extracted by extract?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Ralph</description>
      <pubDate>Tue, 23 Apr 2002 13:21:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/parsing-glance-outpout/m-p/2709208#M60072</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2002-04-23T13:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing glance outpout</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/parsing-glance-outpout/m-p/2709209#M60073</link>
      <description>You are on the right track by putting glance into daemon mode.  Go ahead and use adviser syntax to print out the metrics you want:&lt;BR /&gt;&lt;BR /&gt;In a file (e.g. mysyntax) place the following adviser syntax:&lt;BR /&gt;&lt;BR /&gt;    DISK LOOP&lt;BR /&gt;        {&lt;BR /&gt;        PRINT GBL_STATDATE," ",GBL_STATTIME,BYDSK_DEVNAME,BYDSK_UTIL&lt;BR /&gt;        }&lt;BR /&gt;&lt;BR /&gt;Note that I have left out all of the separators to conserve space.  Now run glance in daemon mode:&lt;BR /&gt;&lt;BR /&gt;    glance -adviser_only -syntax mysyntax &amp;gt; mysyntax.data&lt;BR /&gt;&lt;BR /&gt;You may want to adjust the interval to your specifications (and available disk space).&lt;BR /&gt;&lt;BR /&gt;You can make one syntax file, but you will wind up parsing the data out.  Multiple instances of glance will impact your performance, but will allow you to place different data types into separate files.&lt;BR /&gt;&lt;BR /&gt;-dlt-&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Apr 2002 15:37:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/parsing-glance-outpout/m-p/2709209#M60073</guid>
      <dc:creator>David Totsch</dc:creator>
      <dc:date>2002-04-24T15:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing glance outpout</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/parsing-glance-outpout/m-p/2709210#M60074</link>
      <description>could you try using utility and extract commands they will give you information on metrics but am not sure if that is the kind of info you are looking for. You can execute these commands from command line and it was most helpful when I was meassuring system app performance.&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Apr 2002 19:37:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/parsing-glance-outpout/m-p/2709210#M60074</guid>
      <dc:creator>hari jayaram_1</dc:creator>
      <dc:date>2002-04-24T19:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing glance outpout</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/parsing-glance-outpout/m-p/2709211#M60075</link>
      <description>Ralph,&lt;BR /&gt;&lt;BR /&gt;Use "extract" command. It's real easy and it has got the Guide feature that will help you extract the metrics step by step.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Wed, 24 Apr 2002 20:00:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/parsing-glance-outpout/m-p/2709211#M60075</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2002-04-24T20:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing glance outpout</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/parsing-glance-outpout/m-p/2709212#M60076</link>
      <description>HI Ralph,&lt;BR /&gt;&lt;BR /&gt;Try this way for short intervals.&lt;BR /&gt;&lt;BR /&gt;Create any file ex /. metrics.def with the following contents&lt;BR /&gt;&lt;BR /&gt;PRINT "DiskLogical", gbl_disk_logl_io &lt;BR /&gt;PRINT "DiskSystem", gbl_disk_system_io&lt;BR /&gt;&lt;BR /&gt;(add as many you want)&lt;BR /&gt;&lt;BR /&gt;Now run the command glance with syntax option&lt;BR /&gt;&lt;BR /&gt;glance -j 1 -iterations 1 -adviser_only -syntax metric.def &amp;gt; glance.out&lt;BR /&gt;&lt;BR /&gt;Now you can grep for only DiskLogical or DiskSystem from it.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Wed, 24 Apr 2002 20:09:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/parsing-glance-outpout/m-p/2709212#M60076</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2002-04-24T20:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing glance outpout</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/parsing-glance-outpout/m-p/2709213#M60077</link>
      <description>Hi Ralph,&lt;BR /&gt;&lt;BR /&gt;Do u have perfview , if so then these o/p can be obtanied using pv easily.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava</description>
      <pubDate>Wed, 24 Apr 2002 20:19:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/parsing-glance-outpout/m-p/2709213#M60077</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-04-24T20:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing glance outpout</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/parsing-glance-outpout/m-p/2709214#M60078</link>
      <description>Thanks to all,&lt;BR /&gt;&lt;BR /&gt;David,&lt;BR /&gt;your hint was exactly what I was looking for.&lt;BR /&gt;Actually I didn't know the LOOP command of the adviser syntax, but found it after your hint by looking through the glance help screens of the adviser's submenus.&lt;BR /&gt;Now I can iterate over every device or even every process that i have defined in a parmfile.&lt;BR /&gt;The icing on the cake would only be a Perl interface to the MWA stuff, but I fear I will have to write one myself.&lt;BR /&gt;&lt;BR /&gt;Many thanks...&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Apr 2002 06:40:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/parsing-glance-outpout/m-p/2709214#M60078</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2002-04-25T06:40:45Z</dc:date>
    </item>
  </channel>
</rss>

