09-13-2018 08:32 AM
Hey all! Need some help getting plink commands to run on my Small Business switches. I've specifically tried this on SF300 and SG300 and it does the same thing on both devices. I am trying to execute plink to run a simple sh run command. Plink can connect fine to the switch, but it's hanging when running the command.
Here's my example:
plink.exe 192.168.1.1 -ssh -l username -pw password sh run
FYI, this works FINE on IOS like Cisco 800 series routers. And if I do the command:
plink.exe 192.168.1.1 -ssh -l username -pw password
basically just connect to it and tell it not to run a command, it's connects and logs in fine! It's just when I am trying to pipe in the command it just sits and hangs forever. I can look and see that the SSH session is being established.
Anyone else run into this?
Thanks!
09-21-2018 06:02 AM
Have you tried the full command, i.e. show running-config instead of just show run?
The commands on the SMB line are different to the Catalyst ones but the show running-config should still work.
10-04-2022 08:24 AM
Hey Christie,
did you solved the issue? I have exactly the same behavior.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide