Customer Service Center
Home
Knowledge Base
Contact Support
License Activation
|
Contact Support
|
License Activation
|
Spirent KB Article
Doc ID: FAQ12168
Printer Friendly
Email Article Link
Spirent TestCenter Conformance: How to use ssh instead of telnet for IUT Automation from the GUI?
Environment/Versions
v4.56,v4.69
v4.72, v5.01, v5.30
Configure IUT
Test Procedures
ConnectToIut
Answer
In versions 4.56 and 4.69:
we changed exp_spawn telnet to exp_spawn ssh2
we could also us an application like putty and indicate: exp_spawn plink -ssh <ip address>
example: exp_spawn plink -ssh $IutAddress or exp_spawn plink -ssh 10.98.5.3
In versions 4.7x or higher, the above procedures for ssh no longer works.
Although ssh worked in previous releases, it was never a supported feature.
Note that script only method is still working with ssh but it requires a 32 bit version.
See KNI16135
Currently the GUI automation method only supports the windows telnet feature.
When using the windows telnet feature it may require an additional return near the end of the procedure.
Example: (see highlighted return below)
set logInCmds [list "$LoginPrompt" "$Login" "$PasswordPrompt" "$Password" "$evalPrompt" ""]
exp_spawn telnet $IutAddress 2006
foreach {output input} $logInCmds {
expect {
-re $output {
append expectRetValue $expect_out(buffer)
if {$input != ""} {
exp_send "$input\r"
after $sndCmdDelay
}
}
-re {(.+)} {
append expectRetValue $expect_out(buffer)
exp_continue
}
timeout {
LogInfo "$output not received from IUT"
return -1
}
}
exp_send "\r"
}
Version
4.0
Publish Date
2022-03-07
Categories
Product : CTS
Related Articles