Hi,
I need to write a script that connects to my firewall (a Netscreen 25) and sends it a single command (a manual DNS refresh). I've been guided so far to use Putty/Plink, but have got stuck about how to proceed.
I plan to connect using SSH or Telnet protocol. Using SSH with plink, I can pass the username and password and hostname as parameters in the command line, but also want to pass a single command as well, e.g.
plink -ssh HOSTNAME - l LOGIN - pw PASSWORD .......SINGLE LINE COMMAND HERE....
My question is, is this possible? Or do I haave to get into the realms of linking to external files of commands, or automating a session using putty etc? I'm after a simple quick solution for this!
Thanks
Start Free Trial