I have a PuTTY sessin (SSH) connecting to a host, and my "Command 1" is to cd to a directory. This never happens. I've delayed it up to 5 seconds, well beyond after successfully connecting and logging in.
Have you tried in embedded or external mode?
David Hervieux
Furthermore, which device are connecting to?
I recently did a HP switch config update with putty commands (thru telnet) and it worked like a charm.
Digged a little deeper:
My first try on SSH external seemed to fail, since embedded worked with a standard delay of 500 ms.
I noticed that SSH works in external mode also. But I had to put delay to 5000 ms to see the commands.
It is also slightly different if you use a saved putty session or have the options set in RDM.
With the native putty session the delay has to be set higher than the RDM-configured one.
But it definitely works in every case if delay is high enough.
I wish we could set the initial delay separately from the subsequent command calls to get a quicker response.
So it might depend on the responsiveness of the device you are connecting to.
I would recommend embedded mode on use cases with commands since the chance that a command be swallowed is less in this mode.
Very annoying if the commands are depending one on another...
edited by stevecharon on 5/5/2012
RDM 10.5.2.0 Enterprise
RDMS 2.2.7.0
I tried embedded, but it goes external (that's another thing). However, I now chose external, and it's working! So what's up with PuTTY that it can't be as an embedded session? I wonder if there is a way to fix that, whether the login commands would also work.
Embedding Putty is tricky. It's based on an hack. Do you use a session or it's an embedded config?
David Hervieux
Embedded config - should I use a session? I just tried using a PuTTY configured session and get the same results - works if configured for External, doesn't if configured for Embedded (and the session is goes external anyway)
Hi, what kind of device do you have?
Is it a router, switch, computer?
What make and model?
RDM 10.5.2.0 Enterprise
RDMS 2.2.7.0
I mean for the embedded problem. It goes external for both. What OS do you use and have you tried to run RDM as Administrator?
David Hervieux
Windows 7 on both test machines. I am in the Administrators group, but haven't tried logged in as the Administrator account, but running the application *AS* Administrator has the same behavior. I've tried on 2 separate machines (Win 7), one connecting to a Linux host, another one connecting to an ESX host.
edited by BKeadle on 5/5/2012
What version of Putty do you use?
David Hervieux
v 0.56
Hi, I tested my own Putty with an ESX host and it works just fine!
here is my config:
<?xml version="1.0"?>
<ArrayOfConnection>
<Connection>
<ConnectionType>Putty</ConnectionType>
<Events />
<Group>SSH</Group>
<ID>6fe01a55-a2f7-42c3-a04b-3bd102caa421</ID>
<MetaInformation>
<Expiration d4p1:nil="true" xmlns:d4p1="http://www.w3.org/2001/XMLSchema-instance" />
</MetaInformation>
<Name>ESX1</Name>
<Putty>
<Host>ESX1</Host>
<LoginName>root</LoginName>
<PortFowardingArray />
<SafePassword>secret</SafePassword>
<Scripting>
<string>uptime</string>
<string>esxtop</string>
</Scripting>
<UseSession>false</UseSession>
</Putty>
<Stamp>4128fd58-7e5c-4e2a-862f-93050888ca81</Stamp>
<SubMode>-1</SubMode>
<WebBrowserApplication>IE</WebBrowserApplication>
</Connection>
</ArrayOfConnection>
RDM 10.5.2.0 Enterprise
RDMS 2.2.7.0
ESX1.rdm
Thanks for providing your config (.rdm). I see it too is configured for external, and we've established that external works. Embedded does not. Switching your provided RDM to Embedded/tabbed display then also fails to pass commands.
Certainly, not a big issue, just would be nice if it could be tabbed.
Have you tried the embedded SSH/Telnet built-in in RDM instead of Putty?
David Hervieux
Hi, I tested my ESX Putty with embedded and it works with the second try.
David, embedded SSH with typing macro works too. I had to do an initial delay of 3 secs to have it running.
Having RDM 7.0.3.0 by the way.
RDM 10.5.2.0 Enterprise
RDMS 2.2.7.0
Just for the record: the reason why "after login"commands don't work in embedded mode (but in external) is simple: the embedded PuTTY session does not have the focus (you have to click into the window to give it the focus). If you select "Focus content on application activation" option (Advanced > General) it works.
By the way: PuTTY has the same functionality under Connection > SSH > Remote Command