<?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: One-liner to show live CPU usage of all FWK instances of a VS on VSX in Scripts</title>
    <link>https://community.checkpoint.com/t5/Scripts/FWK-CPU-Usage/m-p/73338#M720</link>
    <description>One-liners rule!</description>
    <pubDate>Fri, 24 Jan 2020 18:38:03 GMT</pubDate>
    <dc:creator>Danny</dc:creator>
    <dc:date>2020-01-24T18:38:03Z</dc:date>
    <item>
      <title>FWK CPU Usage</title>
      <link>https://community.checkpoint.com/t5/Scripts/FWK-CPU-Usage/m-p/73294#M719</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I've created a little one-liner to run on VSX. First switch to a particular VS with vsenv command. When the one-liner is started it displays current CPU usage of all the FWK instances of that particular VS. Output of top is refreshed every second.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Command (Expert mode):&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;top -d 1 -H -p $(pgrep fwk$(echo $INSTANCE_VSID))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;It's possible you do not see a P column which shows the current utilized CPU core of the FWK instance. Just press the following two letters (case-sensitive!) when top is running: f j (and hit ENTER). If you want to save that view in top the press: shift W.&lt;/P&gt;
&lt;P&gt;Example of VSID 2 and its 10 FWK instances (fwk2_0 to fwk2_9):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fwktop.jpg"&gt;&lt;img src="https://community.checkpoint.com/skins/images/1F2104F44A779710A92DF4C48A49F910/responsive_peak/images/image_not_found.png" alt="fwktop.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I hope it's useful.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 09:32:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/FWK-CPU-Usage/m-p/73294#M719</guid>
      <dc:creator>RickHoppe</dc:creator>
      <dc:date>2020-11-26T09:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner to show live CPU usage of all FWK instances of a VS on VSX</title>
      <link>https://community.checkpoint.com/t5/Scripts/FWK-CPU-Usage/m-p/73338#M720</link>
      <description>One-liners rule!</description>
      <pubDate>Fri, 24 Jan 2020 18:38:03 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/FWK-CPU-Usage/m-p/73338#M720</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2020-01-24T18:38:03Z</dc:date>
    </item>
  </channel>
</rss>

