using Plink as notification

Hello ,
I’m trying to use Plink.exe as a notification
when I run the command manually (windows CMD) - it’s working and i can see on the router

12:25:51 system,info,account user admin logged in from 192.168.1.167 via ssh
12:25:51 system,info,account user admin logged out from 192.168.1.167 via ssh


c:\plink\plink.exe -ssh -l admin -pw admin192.168.1.1 "/beep"

but when I put the same command in the Dude and do “test” I get error

12:20:56 ssh,info client timeout

and I don’t ever see it connect to the router

any explain ?
am I doing something wrong?

Thanks,

David1234, try this code:

ros-autoexecute.cmd

::
set host=192.168.1.1
set port=22
set user=admin
set password=admin
set "command=/beep"
::
echo y | С:\Putty\PLINK.EXE -P %port% -l %user% -pw %password% %host% "%command%"
::

if I create file and run it from the dude it’s working
but how do I change the file so it will give me device.status ?

because now its sending me a static SMS ,
I want it to send to me per device SMS
"Device name is now down "

Thanks ,

David1234, based on topic SMS send by Dude I created a post Dude - SMS notification trough USB modem on ROS from Windows - using plink.

If you want, you cant try this solution.

Thank you!