Bonjour,
Je souhaite lancer un script Powershell qui est sur un serveur dans le LAN.
Est il possible de lancer le script via Solarwinds et d'obtenir la valeur du resultat dans un graphique ?
Merci
vincent45 wrote: ENGLISHHello,I want to run a Powershell script that is on a server in the LAN.Is it possible to run the script via Solarwinds and get the value of the results in a graph?thank you
vincent45 wrote: ENGLISH
Hello,
I want to run a Powershell script that is on a server in the LAN.
Is it possible to run the script via Solarwinds and get the value of the results in a graph?
thank you
English:Absolutely! This is precisely what SAM's PowerShell Script Monitor provides.
French: Absolument ! Ce est précisément ce PowerShell Script Monitor SAM fournit .
I have a Windows server: W2K8SRV-TOTO
C: \ there is a powershell script for Citrix
I want to execute the script with Solarwinds and also that the value of the result back in a graph
In procedures, I can not find examples that launches PS1.
There does it simple examples?
Vincent
The PowerShell script doesn't launch PS1 file.
It has field "Script Body", where you should paste your script.
There is example how to create PowerShell monitor: http://www.solarwinds.com/documentation/en/flarehelp/sam/content/orionapmagcreatingpowershellmonitor.htm
In step #12 you place text of your script.
The script should end with cmdlet to pass statistic value to Orion like this:
Write-Host 'Statistic: ' $MyValue
exit(0)