<?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: how to get email in excel format or macro? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-email-in-excel-format-or-macro/m-p/5012512#M426810</link>
    <description>I tried with&lt;BR /&gt;# tr -cs test.log test.csv&lt;BR /&gt;&lt;BR /&gt;But could not get the desired output&lt;BR /&gt;&lt;BR /&gt;Please suggest</description>
    <pubDate>Tue, 07 Nov 2006 07:08:59 GMT</pubDate>
    <dc:creator>praveen..</dc:creator>
    <dc:date>2006-11-07T07:08:59Z</dc:date>
    <item>
      <title>how to get email in excel format or macro?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-email-in-excel-format-or-macro/m-p/5012510#M426808</link>
      <description>Hi,&lt;BR /&gt;I am using one scripts for the cpu / memory logs of last 24 hours using glance utility.&lt;BR /&gt;&lt;BR /&gt;1. vi cpumem.sh&lt;BR /&gt;&lt;BR /&gt;cd /opt/cpu_mem/cpumem_logs&lt;BR /&gt;touch cpumem.log&lt;BR /&gt;&lt;BR /&gt;echo "CPU &amp;amp; Memory Utilization logs for last 24 Hours of Server " &amp;gt;&amp;gt; cpumem.log&lt;BR /&gt;echo "" &amp;gt;&amp;gt; cpumem.log&lt;BR /&gt;echo "----------------------------------------------------------------------------------" &amp;gt;&amp;gt; cpumem.log&lt;BR /&gt;echo " Date: Time: (%)CPU Used: (%)Memory Used: " &amp;gt;&amp;gt; cpumem.log&lt;BR /&gt;echo "----------------------------------------------------------------------------------" &amp;gt;&amp;gt; cpumem.log&lt;BR /&gt;&lt;BR /&gt;cd /opt/cpu_mem/cpumem_logs&lt;BR /&gt;/opt/perf/bin/glance -adviser_only -j 600 -iterations 144 -syntax /opt/cpu_mem/cpumem.syn &amp;gt;&amp;gt; cpumem.log&lt;BR /&gt;&lt;BR /&gt;echo " " &amp;gt;&amp;gt; cpumem.log&lt;BR /&gt;echo "----------------------------------------------------------------------------------" &amp;gt;&amp;gt; cpumem.log&lt;BR /&gt;echo "Monitoring of CPU and Memory done at `date` . " &amp;gt;&amp;gt; cpumem.log&lt;BR /&gt;echo "UPTIME= `uptime ` " &amp;gt;&amp;gt; cpumem.log&lt;BR /&gt;echo "----------------------------------------------------------------------------------" &amp;gt;&amp;gt; cpumem.log&lt;BR /&gt;&lt;BR /&gt;mv cpumem.log cpumem.`date +%m%d%y`.log&lt;BR /&gt;cat /opt/cpu_mem/cpumem_logs/cpumem.`date +%m%d%y`.log | mailx -s "CPU/Mem logs" praveen@company.com&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2. #vi cpumem.syn&lt;BR /&gt;print gbl_statdate, " ", gbl_stattime, " ", gbl_cpu_total_util, " ", gbl_mem_util&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;this mail is text formatted,&lt;BR /&gt;&lt;BR /&gt;at present, output of this script is like....&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;CPU &amp;amp; Memory Utilization logs for last 24 Hours of Server &lt;BR /&gt;&lt;BR /&gt;----------------------------------------------------------------------------------&lt;BR /&gt;Date: Time: (%)CPU Used: (%)Memory Used: &lt;BR /&gt;----------------------------------------------------------------------------------&lt;BR /&gt;08/20/2006 00:00:04 2.2 28.8&lt;BR /&gt;08/20/2006 00:10:04 4.9 28.8&lt;BR /&gt;08/20/2006 00:20:04 4.5 28.8&lt;BR /&gt;08/20/2006 00:30:04 4.7 28.8&lt;BR /&gt;08/20/2006 00:40:04 5.5 28.8&lt;BR /&gt;08/20/2006 00:50:04 5.7 28.8&lt;BR /&gt;08/20/2006 01:00:04 6.1 28.8&lt;BR /&gt;08/20/2006 01:10:04 6.1 28.8&lt;BR /&gt;08/20/2006 01:20:04 5.4 28.8&lt;BR /&gt;08/20/2006 01:30:04 5.4 28.8&lt;BR /&gt;08/20/2006 01:40:04 8.4 28.8&lt;BR /&gt;08/20/2006 01:50:04 8.4 28.8&lt;BR /&gt;:::::::::::::::::::::::::&lt;BR /&gt;:::::::::::::::::::::::::&lt;BR /&gt;:::::::::::::::::::::::::........&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;can i get all the logs in excel format , if yes, please help me ......</description>
      <pubDate>Tue, 07 Nov 2006 03:02:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-email-in-excel-format-or-macro/m-p/5012510#M426808</guid>
      <dc:creator>praveen..</dc:creator>
      <dc:date>2006-11-07T03:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to get email in excel format or macro?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-email-in-excel-format-or-macro/m-p/5012511#M426809</link>
      <description>Hi,&lt;BR /&gt;excel uses an internal format for full spreadsheets. The closest to 'excel format' in your case is probably CSV.&lt;BR /&gt;Write the output of your glance command to a temporary file and substitute spaces with commas (See "man tr"). You can then use this new file to load into excel, as long as it has a .csv filename extension.</description>
      <pubDate>Tue, 07 Nov 2006 03:10:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-email-in-excel-format-or-macro/m-p/5012511#M426809</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-11-07T03:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to get email in excel format or macro?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-email-in-excel-format-or-macro/m-p/5012512#M426810</link>
      <description>I tried with&lt;BR /&gt;# tr -cs test.log test.csv&lt;BR /&gt;&lt;BR /&gt;But could not get the desired output&lt;BR /&gt;&lt;BR /&gt;Please suggest</description>
      <pubDate>Tue, 07 Nov 2006 07:08:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-email-in-excel-format-or-macro/m-p/5012512#M426810</guid>
      <dc:creator>praveen..</dc:creator>
      <dc:date>2006-11-07T07:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to get email in excel format or macro?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-email-in-excel-format-or-macro/m-p/5012513#M426811</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;excel will import ascii files with appropiate field delimters.&lt;BR /&gt;&lt;BR /&gt;I put say | between every field, make sure the columns balance and when it hits excel import it comes out reasonable.&lt;BR /&gt;&lt;BR /&gt;If you trust it, excel can be programmed to ssh onto the system and run the reports and capture the output.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 07 Nov 2006 07:26:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-email-in-excel-format-or-macro/m-p/5012513#M426811</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-11-07T07:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to get email in excel format or macro?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-email-in-excel-format-or-macro/m-p/5012514#M426812</link>
      <description>Hi,&lt;BR /&gt;# cat c&lt;BR /&gt;08/20/2006 00:00:04 2.2 28.8&lt;BR /&gt;08/20/2006 00:10:04 4.9 28.8&lt;BR /&gt;08/20/2006 00:20:04 4.5 28.8&lt;BR /&gt;08/20/2006 00:30:04 4.7 28.8&lt;BR /&gt;08/20/2006 00:40:04 5.5 28.8&lt;BR /&gt;# tr " " "," &amp;lt; c &amp;gt; d.csv&lt;BR /&gt;# cat d.csv&lt;BR /&gt;08/20/2006,00:00:04,2.2,28.8&lt;BR /&gt;08/20/2006,00:10:04,4.9,28.8&lt;BR /&gt;08/20/2006,00:20:04,4.5,28.8&lt;BR /&gt;08/20/2006,00:30:04,4.7,28.8&lt;BR /&gt;08/20/2006,00:40:04,5.5,28.8</description>
      <pubDate>Tue, 07 Nov 2006 07:43:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-email-in-excel-format-or-macro/m-p/5012514#M426812</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-11-07T07:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to get email in excel format or macro?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-email-in-excel-format-or-macro/m-p/5012515#M426813</link>
      <description>Hi Praveen,&lt;BR /&gt;&lt;BR /&gt;1. check in your Xcel setup what's the separtor. Usually it should be ;&lt;BR /&gt;&lt;BR /&gt;2. chnage the script cpumem.syn so:&lt;BR /&gt;print gbl_statdate, " ", gbl_stattime, ";", gbl_cpu_total_util, ";", gbl_mem_util&lt;BR /&gt;to obtain: &lt;BR /&gt;08/20/2006 00:00:04;2.2;28.8&lt;BR /&gt;&lt;BR /&gt;3. change name of teh log file from .log to .csv&lt;BR /&gt;&lt;BR /&gt;4. remove the comment header or change from: &lt;BR /&gt;----------------------------------------------------------------------------------&lt;BR /&gt;Date: Time: (%)CPU Used: (%)Memory Used: &lt;BR /&gt;----------------------------------------------------------------------------------&lt;BR /&gt;to:&lt;BR /&gt;Date;(%)CPU Used; (%)Memory Used&lt;BR /&gt;&lt;BR /&gt;That's all.&lt;BR /&gt;&lt;BR /&gt;N.B&amp;gt; Take care to use the same separtor defined in Xcell. In my example is ';'.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Art</description>
      <pubDate>Wed, 08 Nov 2006 04:12:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-email-in-excel-format-or-macro/m-p/5012515#M426813</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2006-11-08T04:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to get email in excel format or macro?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-email-in-excel-format-or-macro/m-p/5012516#M426814</link>
      <description>Now I am getting the output in csv format using Arturo Galbiati' Solution&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks for your help</description>
      <pubDate>Thu, 09 Nov 2006 07:15:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-email-in-excel-format-or-macro/m-p/5012516#M426814</guid>
      <dc:creator>praveen..</dc:creator>
      <dc:date>2006-11-09T07:15:46Z</dc:date>
    </item>
  </channel>
</rss>

