<?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 Powershell script not running always on schedule - Splunk Add On for Microsoft HyperV in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Powershell-script-not-running-always-on-schedule-Splunk-Add-On/m-p/582159#M102564</link>
    <description>&lt;P&gt;Hello, I am running Splunk Add for Microsoft Hyper-V&amp;nbsp; on 10 different Hyper-V hosts with a splunk forwarder each, but not all powershell scripts are executed on schedule.&amp;nbsp; &amp;nbsp; My problem is with the long running scripts&amp;nbsp;getvm_inventory.ps1 and&amp;nbsp;getvm_inventoryext.ps1. The rest of the scripts are executed on schedule.&lt;/P&gt;&lt;P&gt;I have the following inputs.conf&lt;/P&gt;&lt;P&gt;############# VM #############&lt;BR /&gt;[powershell://GetVM_Inventory]&lt;BR /&gt;script = . "$SplunkHome\etc\apps\Splunk_TA_microsoft-hyperv\bin\GetVM_Inventory.ps1"&lt;BR /&gt;schedule = 0 0 4-8/1 ? * *&lt;BR /&gt;source = microsoft:hyperv:powershell:getvm_inventory.ps1&lt;BR /&gt;sourcetype = microsoft:hyperv:vm&lt;BR /&gt;index = ctc_hyperv_inventory&lt;BR /&gt;disabled = 0&lt;/P&gt;&lt;P&gt;[powershell://GetVM_InventoryEXT]&lt;BR /&gt;script = . "$SplunkHome\etc\apps\Splunk_TA_microsoft-hyperv\bin\GetVM_InventoryEXT.ps1"&lt;BR /&gt;schedule = 0 20 4-8/1 ? * *&lt;BR /&gt;source = microsoft:hyperv:powershell:getvm_inventoryext.ps1&lt;BR /&gt;sourcetype = microsoft:hyperv:vm:ext&lt;BR /&gt;index = ctc_hyperv_inventory&lt;BR /&gt;disabled = 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;from the logs I see that they are executed correctly . The only difference from other scripts is the execution that is much longer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;01-23-2022 06:00:10.4694493+2 INFO End of executing script=. "$SplunkHome\etc\apps\Splunk_TA_microsoft-hyperv\bin\GetVM_Inventory.ps1" for stanza=GetVM_Inventory, execution_time=10.3504674 seconds&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01-23-2022 06:00:00.1169827+2 INFO Start executing script=. "$SplunkHome\etc\apps\Splunk_TA_microsoft-hyperv\bin\GetVM_Inventory.ps1" for stanza=GetVM_Inventory&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01-23-2022 06:00:00.1139817+2 INFO enqueue job for stanza=GetVM_Inventory&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01-23-2022 05:00:10.5518190+2 INFO End of executing script=. "$SplunkHome\etc\apps\Splunk_TA_microsoft-hyperv\bin\GetVM_Inventory.ps1" for stanza=GetVM_Inventory, execution_time=10.4093991 seconds&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01-23-2022 05:00:00.1404194+2 INFO Start executing script=. "$SplunkHome\etc\apps\Splunk_TA_microsoft-hyperv\bin\GetVM_Inventory.ps1" for stanza=GetVM_Inventory&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01-23-2022 05:00:00.1374214+2 INFO enqueue job for stanza=GetVM_Inventory&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01-23-2022 04:00:13.0595973+2 INFO End of executing script=. "$SplunkHome\etc\apps\Splunk_TA_microsoft-hyperv\bin\GetVM_Inventory.ps1" for stanza=GetVM_Inventory, execution_time=11.6046748 seconds&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
    <pubDate>Sun, 23 Jan 2022 05:27:31 GMT</pubDate>
    <dc:creator>scostic</dc:creator>
    <dc:date>2022-01-23T05:27:31Z</dc:date>
    <item>
      <title>Powershell script not running always on schedule - Splunk Add On for Microsoft HyperV</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Powershell-script-not-running-always-on-schedule-Splunk-Add-On/m-p/582159#M102564</link>
      <description>&lt;P&gt;Hello, I am running Splunk Add for Microsoft Hyper-V&amp;nbsp; on 10 different Hyper-V hosts with a splunk forwarder each, but not all powershell scripts are executed on schedule.&amp;nbsp; &amp;nbsp; My problem is with the long running scripts&amp;nbsp;getvm_inventory.ps1 and&amp;nbsp;getvm_inventoryext.ps1. The rest of the scripts are executed on schedule.&lt;/P&gt;&lt;P&gt;I have the following inputs.conf&lt;/P&gt;&lt;P&gt;############# VM #############&lt;BR /&gt;[powershell://GetVM_Inventory]&lt;BR /&gt;script = . "$SplunkHome\etc\apps\Splunk_TA_microsoft-hyperv\bin\GetVM_Inventory.ps1"&lt;BR /&gt;schedule = 0 0 4-8/1 ? * *&lt;BR /&gt;source = microsoft:hyperv:powershell:getvm_inventory.ps1&lt;BR /&gt;sourcetype = microsoft:hyperv:vm&lt;BR /&gt;index = ctc_hyperv_inventory&lt;BR /&gt;disabled = 0&lt;/P&gt;&lt;P&gt;[powershell://GetVM_InventoryEXT]&lt;BR /&gt;script = . "$SplunkHome\etc\apps\Splunk_TA_microsoft-hyperv\bin\GetVM_InventoryEXT.ps1"&lt;BR /&gt;schedule = 0 20 4-8/1 ? * *&lt;BR /&gt;source = microsoft:hyperv:powershell:getvm_inventoryext.ps1&lt;BR /&gt;sourcetype = microsoft:hyperv:vm:ext&lt;BR /&gt;index = ctc_hyperv_inventory&lt;BR /&gt;disabled = 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;from the logs I see that they are executed correctly . The only difference from other scripts is the execution that is much longer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;01-23-2022 06:00:10.4694493+2 INFO End of executing script=. "$SplunkHome\etc\apps\Splunk_TA_microsoft-hyperv\bin\GetVM_Inventory.ps1" for stanza=GetVM_Inventory, execution_time=10.3504674 seconds&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01-23-2022 06:00:00.1169827+2 INFO Start executing script=. "$SplunkHome\etc\apps\Splunk_TA_microsoft-hyperv\bin\GetVM_Inventory.ps1" for stanza=GetVM_Inventory&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01-23-2022 06:00:00.1139817+2 INFO enqueue job for stanza=GetVM_Inventory&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01-23-2022 05:00:10.5518190+2 INFO End of executing script=. "$SplunkHome\etc\apps\Splunk_TA_microsoft-hyperv\bin\GetVM_Inventory.ps1" for stanza=GetVM_Inventory, execution_time=10.4093991 seconds&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01-23-2022 05:00:00.1404194+2 INFO Start executing script=. "$SplunkHome\etc\apps\Splunk_TA_microsoft-hyperv\bin\GetVM_Inventory.ps1" for stanza=GetVM_Inventory&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01-23-2022 05:00:00.1374214+2 INFO enqueue job for stanza=GetVM_Inventory&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01-23-2022 04:00:13.0595973+2 INFO End of executing script=. "$SplunkHome\etc\apps\Splunk_TA_microsoft-hyperv\bin\GetVM_Inventory.ps1" for stanza=GetVM_Inventory, execution_time=11.6046748 seconds&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jan 2022 05:27:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Powershell-script-not-running-always-on-schedule-Splunk-Add-On/m-p/582159#M102564</guid>
      <dc:creator>scostic</dc:creator>
      <dc:date>2022-01-23T05:27:31Z</dc:date>
    </item>
  </channel>
</rss>

