HELLO I WANT TO DO THIS...
I WANT TO ADD A BUTTON IN THE WEB PAGE OF ORION FOR EXECUTE A SCRIPT IN THE WEB SERVER.. I REALLY DONT KNOW HOW TO DO THIS, COULD SOMEONE PLEASE HELP ME?
TIA,
With Best Regards,
Ariel Liguori.
I WANT TO EXECUTE A SCRIPT ON THE ORION WEB SERVER THAT STOP ONE SERVICE, BUT I WANT TO SEND THE ORDER FOR EXECUTE FROM THE WEB PAGE OF ORION. SOMETHING LIKE A LINK THAT EXECUTE THE SCRIPT... BUT I CANT DO IT..
<% set wshell = CreateObject("WScript.Shell") wshell.run "c:\file.bat" set wshell = nothing %>
net stop iisadmin /ynet start w3svc
is not working.. im using the WSH
i made the testing.html file with this lines
and the file .bat had this:
perl c:\test.pl
but when i enter into testing.html nothing happens.
Could you please help me with this problem.
Technically this is outside the scope of Orion, Solarwinds and the Thwack forums. This has more to do with IIS and Windows then anything else. It's my guess that this is a permissions problem since executing processes on the server happens in the context of whatever user is authenticated to IIS if you're using Basic or Windows Integrated Authentication. In the event you're using Orion's forms based authentication, IIS is functioning in "anonymous" mode. In this case the user account being used is most likely "IUSR_MACHINENAME".
Whichever is the case the user must have (at a minimum) permission to read and execute "perl.exe", as well as whatever perl sub-components are needed. The user will also need read access to "c:\test.pl".
I recommend using filemon to find the root cause of permission errors.