All Apps and Add-ons

getlicenseinfo.ps1 citrix xenapp licensing server technology add-on errors

saheb
New Member

The splunkd.log file is filled up with these errors. Any Ideas??

Even when running the script as an admin, it did not run.

The universal forwarder service is running as local system. Same results with admin user running the service.

02-07-2013 11:11:10.845 -0800 ERROR ExecProcessor - message from "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command " &'C:\Program Files\SplunkUniversalForwarder\etc\apps\TA-CitrixLicensing-1\bin\powershell\GetLicenseInfo.ps1'" -index citrix_licensing" Get-WmiObject :
02-07-2013 11:11:10.845 -0800 ERROR ExecProcessor - message from "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command " &'C:\Program Files\SplunkUniversalForwarder\etc\apps\TA-CitrixLicensing-1\bin\powershell\GetLicenseInfo.ps1'" -index citrix_licensing" At C:\Program Files\SplunkUniversalForwarder\etc\apps\TA-CitrixLicensing-1\bin\
02-07-2013 11:11:10.845 -0800 ERROR ExecProcessor - message from "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command " &'C:\Program Files\SplunkUniversalForwarder\etc\apps\TA-CitrixLicensing-1\bin\powershell\GetLicenseInfo.ps1'" -index citrix_licensing" powershell\GetLicenseInfo.ps1:6 char:29
02-07-2013 11:11:10.845 -0800 ERROR ExecProcessor - message from "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command " &'C:\Program Files\SplunkUniversalForwarder\etc\apps\TA-CitrixLicensing-1\bin\powershell\GetLicenseInfo.ps1'" -index citrix_licensing" + $licensePool = Get-wmiobject <<<< -class "Citrix_GT_License_Pool" -Namespace
02-07-2013 11:11:10.845 -0800 ERROR ExecProcessor - message from "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command " &'C:\Program Files\SplunkUniversalForwarder\etc\apps\TA-CitrixLicensing-1\bin\powershell\GetLicenseInfo.ps1'" -index citrix_licensing" "ROOT\CitrixLicensing" -computername $LicenseServer
02-07-2013 11:11:10.845 -0800 ERROR ExecProcessor - message from "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command " &'C:\Program Files\SplunkUniversalForwarder\etc\apps\TA-CitrixLicensing-1\bin\powershell\GetLicenseInfo.ps1'" -index citrix_licensing" + CategoryInfo : InvalidOperation: (:) [Get-WmiObject], COMExcept
02-07-2013 11:11:10.845 -0800 ERROR ExecProcessor - message from "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command " &'C:\Program Files\SplunkUniversalForwarder\etc\apps\TA-CitrixLicensing-1\bin\powershell\GetLicenseInfo.ps1'" -index citrix_licensing" ion
02-07-2013 11:11:10.845 -0800 ERROR ExecProcessor - message from "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command " &'C:\Program Files\SplunkUniversalForwarder\etc\apps\TA-CitrixLicensing-1\bin\powershell\GetLicenseInfo.ps1'" -index citrix_licensing" + FullyQualifiedErrorId : GetWMICOMException,Microsoft.PowerShell.Commands
02-07-2013 11:11:10.845 -0800 ERROR ExecProcessor - message from "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command " &'C:\Program Files\SplunkUniversalForwarder\etc\apps\TA-CitrixLicensing-1\bin\powershell\GetLicenseInfo.ps1'" -index citrix_licensing" .GetWmiObjectCommand
02-07-2013 11:11:10.845 -0800 ERROR ExecProcessor - message from "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command " &'C:\Program Files\SplunkUniversalForwarder\etc\apps\TA-CitrixLicensing-1\bin\powershell\GetLicenseInfo.ps1'" -index citrix_licensing"

02-07-2013 11:11:10.845 -0800 ERROR ExecProcessor - message from "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command " &'C:\Program Files\SplunkUniversalForwarder\etc\apps\TA-CitrixLicensing-1\bin\powershell\GetLicenseInfo.ps1'" -index citrix_licensing" Attempted to divide by zero.
02-07-2013 11:11:10.845 -0800 ERROR ExecProcessor - message from "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command " &'C:\Program Files\SplunkUniversalForwarder\etc\apps\TA-CitrixLicensing-1\bin\powershell\GetLicenseInfo.ps1'" -index citrix_licensing" At C:\Program Files\SplunkUniversalForwarder\etc\apps\TA-CitrixLicensing-1\bin\
02-07-2013 11:11:10.845 -0800 ERROR ExecProcessor - message from "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command " &'C:\Program Files\SplunkUniversalForwarder\etc\apps\TA-CitrixLicensing-1\bin\powershell\GetLicenseInfo.ps1'" -index citrix_licensing" powershell\GetLicenseInfo.ps1:17 char:65
02-07-2013 11:11:10.845 -0800 ERROR ExecProcessor - message from "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command " &'C:\Program Files\SplunkUniversalForwarder\etc\apps\TA-CitrixLicensing-1\bin\powershell\GetLicenseInfo.ps1'" -index citrix_licensing" + $Output += '{0}="{1}"' -f "InUse_pct",(($License.InUseCount/ <<<< $Licens
02-07-2013 11:11:10.845 -0800 ERROR ExecProcessor - message from "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command " &'C:\Program Files\SplunkUniversalForwarder\etc\apps\TA-CitrixLicensing-1\bin\powershell\GetLicenseInfo.ps1'" -index citrix_licensing" e.Count)*100)
02-07-2013 11:11:10.845 -0800 ERROR ExecProcessor - message from "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command " &'C:\Program Files\SplunkUniversalForwarder\etc\apps\TA-CitrixLicensing-1\bin\powershell\GetLicenseInfo.ps1'" -index citrix_licensing" + CategoryInfo : NotSpecified: (:) [], RuntimeException
02-07-2013 11:11:10.845 -0800 ERROR ExecProcessor - message from "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command " &'C:\Program Files\SplunkUniversalForwarder\etc\apps\TA-CitrixLicensing-1\bin\powershell\GetLicenseInfo.ps1'" -index citrix_licensing" + FullyQualifiedErrorId : RuntimeException
02-07-2013 11:11:10.845 -0800 ERROR ExecProcessor - message from "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command " &'C:\Program Files\SplunkUniversalForwarder\etc\apps\TA-CitrixLicensing-1\bin\powershell\GetLicenseInfo.ps1'" -index citrix_licensing"

02-07-2013 11:11:10.845 -0800 INFO ExecProcessor - Ran script: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command " &'C:\Program Files\SplunkUniversalForwarder\etc\apps\TA-CitrixLicensing-1\bin\powershell\GetLicenseInfo.ps1'" -index citrix_licensing, took 639.6 milliseconds to run, 115 bytes read

0 Karma

joshgilliland
Engager

I'm getting the same errors. Anybody have a solution to this?

PS C:\Program Files\SplunkUniversalForwarder\etc\apps\TA-CitrixLicensing-1\bin\powershell> .\GetLicenseInfo.ps1
Get-WmiObject :
At C:\Program Files\SplunkUniversalForwarder\etc\apps\TA-CitrixLicensing-1\bin\powershell\GetLicenseInfo.ps1:6 char:29
+ $licensePool = Get-wmiobject <<<< -class "Citrix_GT_License_Pool" -Namespace "ROOT\CitrixLicensing" -computername $L
icenseServer
+ CategoryInfo : InvalidOperation: (:) [Get-WmiObject], COMException
+ FullyQualifiedErrorId : GetWMICOMException,Microsoft.PowerShell.Commands.GetWmiObjectCommand

Attempted to divide by zero.
At C:\Program Files\SplunkUniversalForwarder\etc\apps\TA-CitrixLicensing-1\bin\powershell\GetLicenseInfo.ps1:17 char:65
+ $Output += '{0}="{1}"' -f "InUse_pct",(($License.InUseCount/ <<<< $License.Count)*100)
+ CategoryInfo : NotSpecified: (:) [], RuntimeException
+ FullyQualifiedErrorId : RuntimeException

11/06/2013 16:41:47 GMT - Product="" Type="" Installed="" InUse="" Available="" ScriptRunTime="130282297071700350"
PS C:\Program Files\SplunkUniversalForwarder\etc\apps\TA-CitrixLicensing-1\bin\powershell>

0 Karma

shabbir_talib
Engager

Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. All rights reserved.

PS N:>

PS N:> & "c:\Program Files\SplunkUniversalForwarder\etc\apps\TA-CitrixLicensing-1\bin\powershell\GetLicenseInfo.ps1"
Get-WmiObject :
At C:\Program Files\SplunkUniversalForwarder\etc\apps\TA-CitrixLicensing-1\bin\powershell\GetLicenseInfo.ps1:6 char:29
+ $licensePool = Get-wmiobject <<<< -class "Citrix_GT_License_Pool" -Namespace "ROOT\CitrixLicensing" -computername $L
icenseServer
+ CategoryInfo : InvalidOperation: (:) [Get-WmiObject], COMException
+ FullyQualifiedErrorId : GetWMICOMException,Microsoft.PowerShell.Commands.GetWmiObjectCommand

Attempted to divide by zero.
At C:\Program Files\SplunkUniversalForwarder\etc\apps\TA-CitrixLicensing-1\bin\powershell\GetLicenseInfo.ps1:17 char:65
+ $Output += '{0}="{1}"' -f "InUse_pct",(($License.InUseCount/ <<<< $License.Count)*100)
+ CategoryInfo : NotSpecified: (:) [], RuntimeException
+ FullyQualifiedErrorId : RuntimeException

02/07/2013 19:41:15 GMT - Product="" Type="" Installed="" InUse="" Available="" ScriptRunTime="130047396757878004"
PS N:>

0 Karma

jconger
Splunk Employee
Splunk Employee

Hi saheb,

Looking at the error log, I can see a runtime exception that may be caused by a divide by 0. Can you run the PowerShell script from the command prompt on your license server and post the output? It will be easier to see the correct error that way.

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...