Server Management - Systems Insight Manager
1753269 Members
5206 Online
108792 Solutions
New Discussion

Re: Wake On Lan custom Tool

 
Davide Depaoli_3
Valued Contributor

Wake On Lan custom Tool

Hi,
I'm configuring a Wake on Lan tool, but I don't know how to make the command interactive in order to pass the nic mac address of the server to be waked.
I have SIM for windows and the command (wol.exe) resides on the SIM server (the %1 variables after the command doesn't works).

thanks in advance
regards
Davide
3 REPLIES 3
Daniel Leblanc
Honored Contributor

Re: Wake On Lan custom Tool

Here is exemple of a script i am using may be you forgot something in you 're script

FOR /F "tokens=1,2 delims=; " %%i in (%1.csv) do (call :ordi %%i %%j)
goto :end
:ordi
rem %1 computer name(paramètre %i)
rem %2 MAC addresse of the computer(paramètre %j)
echo %1 %2
wol %2
:end

Hope this help out

Dan
Davide Depaoli_3
Valued Contributor

Re: Wake On Lan custom Tool

Hi Fred,
thank you for your script. It works, but when I run the script it fails with following error:

"The "Run as" user does not have adequate permission to manipulate this file: Con
nection timed out: connect"

Do you have any idea ?
regards
Davide
fred Passeron
HPE Pro

Re: Wake On Lan custom Tool

hi

the second tools uses root as a user. If you are on windows a few changes are needed :
1/unregister the tool : mx -r -f wol.xml
2/change user to administrator
3/register again the tool with mxtool -a -f wol.xml

I used a linux based tool to create this one and did not pay attention to this...


hope it helps

fred
“Life is pleasant. Death is peaceful. It's the transition that's troublesome.” Isaac Asimov