<?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 Collect data from windows hosts via a command line command? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Collect-data-from-windows-hosts-via-a-command-line-command/m-p/146929#M29938</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I have a system that runs a service, the only way to get data out and see the status is to go onto the box and run '&lt;EM&gt;system name&lt;/EM&gt; stats'&lt;/P&gt;

&lt;P&gt;It then outputs data in format:&lt;/P&gt;

&lt;P&gt;Variable name:      value&lt;/P&gt;

&lt;P&gt;Variable name2:     value&lt;/P&gt;

&lt;P&gt;Or 'Error not running' if its broken.&lt;BR /&gt;
Is there a way to script this input in Splunk so it runs every 10-15 minutes to collect this information?&lt;/P&gt;

&lt;P&gt;System is McAfee MOVE AV offload scanner, the details reset after each reboot/service reboot otherwise the details keep increasing in value if that's important&lt;/P&gt;

&lt;P&gt;command is 'mvadm stats'&lt;/P&gt;

&lt;P&gt;Sample result:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Total number of cksum req:               21119723
Total number of file transfer req:        4893939
Total number of smart file req:            570794
Cksum cache hit:                         16218566
Total av scan req:                        4893843
Total av scan failure:                          0
Data recv failure:                           7445
Resp send failure:                            235
Total scan threads:                           300
Total heart beat threads:                     757
Total idle threads:                           299
Number of requests in queue:                    0
Number of items in cache:                  934445
Avg request process time:                0.060458 sec
Avg request wait time:                   0.000026 sec
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 30 Apr 2014 10:18:43 GMT</pubDate>
    <dc:creator>Pierceyuk</dc:creator>
    <dc:date>2014-04-30T10:18:43Z</dc:date>
    <item>
      <title>Collect data from windows hosts via a command line command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Collect-data-from-windows-hosts-via-a-command-line-command/m-p/146929#M29938</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I have a system that runs a service, the only way to get data out and see the status is to go onto the box and run '&lt;EM&gt;system name&lt;/EM&gt; stats'&lt;/P&gt;

&lt;P&gt;It then outputs data in format:&lt;/P&gt;

&lt;P&gt;Variable name:      value&lt;/P&gt;

&lt;P&gt;Variable name2:     value&lt;/P&gt;

&lt;P&gt;Or 'Error not running' if its broken.&lt;BR /&gt;
Is there a way to script this input in Splunk so it runs every 10-15 minutes to collect this information?&lt;/P&gt;

&lt;P&gt;System is McAfee MOVE AV offload scanner, the details reset after each reboot/service reboot otherwise the details keep increasing in value if that's important&lt;/P&gt;

&lt;P&gt;command is 'mvadm stats'&lt;/P&gt;

&lt;P&gt;Sample result:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Total number of cksum req:               21119723
Total number of file transfer req:        4893939
Total number of smart file req:            570794
Cksum cache hit:                         16218566
Total av scan req:                        4893843
Total av scan failure:                          0
Data recv failure:                           7445
Resp send failure:                            235
Total scan threads:                           300
Total heart beat threads:                     757
Total idle threads:                           299
Number of requests in queue:                    0
Number of items in cache:                  934445
Avg request process time:                0.060458 sec
Avg request wait time:                   0.000026 sec
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Apr 2014 10:18:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Collect-data-from-windows-hosts-via-a-command-line-command/m-p/146929#M29938</guid>
      <dc:creator>Pierceyuk</dc:creator>
      <dc:date>2014-04-30T10:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Collect data from windows hosts via a command line command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Collect-data-from-windows-hosts-via-a-command-line-command/m-p/146930#M29939</link>
      <description>&lt;P&gt;Hi Pierceyuk,&lt;/P&gt;

&lt;P&gt;Yes, this is possible in Splunk. &lt;/P&gt;

&lt;P&gt;If you're using a Splunk universal forwarder on this McAfee MOVE AV offload scanner, you can setup a script which will run the command and will be triggered by Splunk UF (universal forwarder) so the Splunk indexer will index the result in the end. &lt;/P&gt;

&lt;P&gt;Please read the docs &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.3/AdvancedDev/ScriptedInputsIntro"&gt;about scripted inputs&lt;/A&gt; to learn more on this.&lt;/P&gt;

&lt;P&gt;hope this helps to get you started ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2014 11:48:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Collect-data-from-windows-hosts-via-a-command-line-command/m-p/146930#M29939</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-04-30T11:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Collect data from windows hosts via a command line command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Collect-data-from-windows-hosts-via-a-command-line-command/m-p/146931#M29940</link>
      <description>&lt;P&gt;Hi, Yes I am indeed running a UF on these devices, will take a look thanks for the pointers!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2014 12:21:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Collect-data-from-windows-hosts-via-a-command-line-command/m-p/146931#M29940</guid>
      <dc:creator>Pierceyuk</dc:creator>
      <dc:date>2014-04-30T12:21:08Z</dc:date>
    </item>
  </channel>
</rss>

