Recording SSH with LoadRunner

473 views
Skip to first unread message

cdelorenzo

unread,
Jan 10, 2010, 10:52:43 PM1/10/10
to LoadRunner
Hi All,

I am wondering what the correct script protocol and implementation for
recording within LoadRunner to basically login to a Linux environment
using SSH protocol and running a script?

Basically summulating functionality similar to Putty/Plink.

Thanks,

Chris De Lorenzo

James Pulley

unread,
Jan 10, 2010, 11:04:56 PM1/10/10
to lr-loa...@googlegroups.com
What would be your working hypothesis for the protocol family based upon
what you know about architecture and communication between terminal
style hosts and their next upstream connection?

How have you tested that hypothesis with the protocol options available
inside of the virtual user generator? Why would be the results of the
tests and how has your hypothesis changed (if at all)?

Fortunately VUGEN is wide open for testing your hypotheses regarding
protocols and your only restriction comes in the controller when it
comes time to execute.

> --
> You received this message because you are subscribed to the Google "LoadRunner" group.
> To post to this group, send email to LR-Loa...@googlegroups.com
> To unsubscribe from this group, send email to
> LR-LoadRunne...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/LR-LoadRunner?hl=en

cdelorenzo

unread,
Jan 10, 2010, 11:34:35 PM1/10/10
to LoadRunner
Hmm I am after someone who has done this before and understands best
practice for producing a script for SSH. Just a quick question to see
if someone had a quick answer...
Cheers if anyone can provide that thanks.

Floris Kraak

unread,
Jan 11, 2010, 2:58:57 AM1/11/10
to lr-loa...@googlegroups.com
On Mon, Jan 11, 2010 at 5:34 AM, cdelorenzo <cdelo...@gmail.com> wrote:
> Hmm I am after someone who has done this before and understands best
> practice for producing a script for SSH.  Just a quick question to see
> if someone had a quick answer...
> Cheers if anyone can provide that thanks.
>

Since SSH is communicating with the server using an encrypted
connection recording this traffic is a tad problematic. In fact, SSH
was designed to make recording the traffic and replaying it
impossible.
So I highly doubt you will have much luck with Loadrunner in this
respect. At least, not unless there is a predesigned protocol for it -
which would have to wrap itself around a SSH client to begin with.

I'd start either a) looking around for specialised tools, or b) start
looking into writing a shell (bash/sh) script around the SSH client.

Regards,
Floris
---
'What does it mean to say that one is 48% slower? That's like saying
that a squirrel is 48% juicier than an orange - maybe it's true, but
anybody who puts the two in a blender to compare them is kind of
sick.'
--- Linus Torvalds

chaitanya bhatt

unread,
Jan 11, 2010, 3:45:47 AM1/11/10
to lr-loa...@googlegroups.com
A quick solution considering your nature of requirement and platform:
1. Select RTE protocol
2. Uncheck all 'IBM Only' options from Recording options.
3. Check 'Cursor' from recording options which will allow cursor synchronization.
4. Press Start Recording Button. (On doing this the Powerterm terminal emulator would appear on screen)
5. Select 'Communication > Connect"
6. Select Session Type = Telnet, Terminal Type = LINUX, Port Number = 22, Enter Host Name,
7. Select Security Dropdown box.
8. Press Details button.
9. In SSH details option screen, check mark the option called : Attempt Keyboard interactive Auth-2  
10. Press Connect.
11. Do your shell activity and press stop recording.
 
Chaitanya M Bhatt

Floris Kraak

unread,
Jan 11, 2010, 6:35:46 AM1/11/10
to lr-loa...@googlegroups.com
On Mon, Jan 11, 2010 at 9:45 AM, chaitanya bhatt
<bhatt.c...@gmail.com> wrote:
> A quick solution considering your nature of requirement and platform:
> 1. Select RTE protocol

RTE protocol = terminal emulation?
Hmn, didn't know this. Nice to know.

chaitanya bhatt

unread,
Jan 11, 2010, 7:23:24 AM1/11/10
to lr-loa...@googlegroups.com
A trivia: Did you know that RTE is a fantastic tool for automating the process of capturing resource utilization from servers?
 
(Unfortunately this method is highly underrated)
Regards,
Chaitanya M Bhatt
 

Deepak Gupta

unread,
Jan 11, 2010, 10:42:10 AM1/11/10
to lr-loa...@googlegroups.com
Hi Chaitanya,

Can I assume here you mean that the manual part of entering command in UNIX terminals to get server stats only or something above ?

Thanks,
Deepak

James Pulley

unread,
Jan 11, 2010, 10:46:26 AM1/11/10
to lr-loa...@googlegroups.com
Yes, you may assume that


From: lr-loa...@googlegroups.com [mailto:lr-loa...@googlegroups.com] On Behalf Of Deepak Gupta
Sent: Monday, January 11, 2010 10:42 AM
To: lr-loa...@googlegroups.com
Subject: Re: Recording SSH with LoadRunner

chaitanya bhatt

unread,
Jan 11, 2010, 11:00:34 AM1/11/10
to lr-loa...@googlegroups.com
As James Pulley stated the answer is 'Yes'.

Especially when you have like dozens of nodes to monitor during execution, RTE can be very handy in cut shorting the amount of time you spend on manually starting and stopping your shell scripts.


Chaitanya M Bhatt
Website: http://www.performancecompetence.com

Deepak Gupta

unread,
Jan 11, 2010, 11:06:21 AM1/11/10
to lr-loa...@googlegroups.com
If in Performance center itself, I add the servers in  (to get same stats), would the process of automation using RTE still be useful ?

chaitanya bhatt

unread,
Jan 11, 2010, 11:31:43 AM1/11/10
to lr-loa...@googlegroups.com
Well, I would leave that to you to figure out. :)

Regards,
Chaitanya M bhatt
http://www.performancecompetence.com

Floris Kraak

unread,
Jan 11, 2010, 6:25:40 PM1/11/10
to lr-loa...@googlegroups.com
On Mon, Jan 11, 2010 at 1:23 PM, chaitanya bhatt
<bhatt.c...@gmail.com> wrote:
> A trivia: Did you know that RTE is a fantastic tool for automating the
> process of capturing resource utilization from servers?
>

I do now ;-)
Thanks for the tip!

Reply all
Reply to author
Forward
0 new messages