how do you connect through SSH to a device?

Votes:

0

Your Vote:

Up

Down

I need to create a VBScript (EXE/Script advanced Sensor) that execute a remote command to a linux device and to catch output for further translation in XLM output.. Linux device is reacheble only by SSH and your standard SSH Sensor (memory, load, etc..) work great! I tried "plink.exe -ssh" (cli version of popular PuTTY) but I've difficulty to make automathic the first ssh-key confirmation.. (I've to clone same sensor in a lot of Linux devices!) I found ChilKat.dll in your probe installation. Is that dll that you use to connetch through SSH? How can I use it in my vbscript?

Thanks a lot!! ..As usual!

Gianluca

sensor ssh vbscript

Created on Feb 26, 2011 8:31:22 PM by  gianluca bona (0) 1



6 Replies

Votes:

0

Your Vote:

Up

Down

Hello,

We connect throught an internal Component via SSh to Linux devices which - I am afraid - is not accessible via VB Script.

Best Regards.

Created on Mar 1, 2011 12:20:17 PM by  Torsten Lindner [Paessler Support] (19,480) 3 1



Votes:

0

Your Vote:

Up

Down

Ok.. So which windows user do you use in probe environment to launch exe/script? I need to make automatic the answers to "ssh first key echange". I gave ssh key-auth to user "administrator", but it doesn't work. I tried to force "Use Windows credentials of parent device" option, but it doesn't work too. Perhaps user "SYSTEM"?

Thanks

Best regards

Created on Mar 1, 2011 12:45:57 PM by  gianluca bona (0) 1



Votes:

0

Your Vote:

Up

Down

Script sensors are executed in the user-context of the PRTG Probe.

Created on Mar 1, 2011 4:41:35 PM by  Torsten Lindner [Paessler Support] (19,480) 3 1



Votes:

0

Your Vote:

Up

Down

Have you managed to get your plink ssh connection running?

Running my ssh batch file from command line works perfectly. Do I run the batch file as a sensor, the output is always empty.

I'm running the PRTG Service with the local admin account - also tried domain admin.

Any further ideas?

Can a PRTG sensor start a batch script which starts a .exe? PTF-Launcher does not make sense in my case.

Created on Oct 18, 2011 9:21:23 AM by  . . (0)



Votes:

0

Your Vote:

Up

Down

I have the same problem. If I run the plink batch file from command line all works fine. But if I test it as Notification in Paessler nothing happens.

Has anyone ideas?

Created on Apr 18, 2012 11:52:43 AM by  Torsten Schöne (0)



Votes:

0

Your Vote:

Up

Down

For exe-/batch-files as notifications in PRTG, please see the following article for troubleshooting tips: How can I execute a batch file as notification?

Created on Apr 18, 2012 1:38:22 PM by  Torsten Lindner [Paessler Support] (19,480) 3 1



Please log in or register to enter your reply.


Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.

PRTG
Network Monitor
Intuitive to Use.
Easy to manage.

150.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Visit
www.paessler.com

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

Top Tags


View all Tags