10 More Discussions You Might Find Interesting
1. Red Hat
Hi
I need to install expect in redhat.
through net I came to know that I must install tcl too in order to make expect work.
I have downloaded both packages but not able to install
# ls -lrt
total 3720
18:33 tcl8.4.20-src.tar.gz
18:33 expect5.45.3.tar.gz
18:40 expect5.45.3... (7 Replies)
Discussion started by: scriptor
7 Replies
2. Shell Programming and Scripting
hi experts,
how will i convert the first part of my script into expect or tcl since shell script cannot be embedded into expect script ? i have 100+ servers in my serverlist. how will i call or declare it in expect or tcl ?
#!/usr/sbin/expect -f
serverlist=`cat $1`
for i in serverlist... (2 Replies)
Discussion started by: linuxgeek
2 Replies
3. Shell Programming and Scripting
Hello,
I write a TCL script for Expect/ Telnet.
I want to send command to the telnet server.
But I want to close after the command is sent.
Anybody know which command can flush the expect so I can sure the command is sent to the telnet server???
EX:
send "./command1\r"
close... (0 Replies)
Discussion started by: linboco
0 Replies
4. UNIX for Dummies Questions & Answers
hi, I am new in Expect.
I have a question about expect timeout.
suppose I have a structure of
expect { ".."{
send"............"}
timeout{
...............
}
}
The silly question is if I reach timeout, how can I store the error message showing on the screen to... (2 Replies)
Discussion started by: allenxiao7
2 Replies
5. Shell Programming and Scripting
I am having an issue with TCL\Expect; I am passing arguments via the commandline that are read in via "lrange $argv". One of those var's is a password with characters that need to be escapaed, after escaping them an hitting enter expect is placing curly braces around my password... why?!
... (4 Replies)
Discussion started by: RiSk
4 Replies
6. Shell Programming and Scripting
I'm having this problem with a very simple tcl expect script that is running on Solaris 5.3 with TCL version 8.4.7 and expect version 5.0.
below is the simplified version of the code snippet, which I think has everything to illustrate the problem, the full version is at the very bottom in... (0 Replies)
Discussion started by: pinchharmonic
0 Replies
7. Shell Programming and Scripting
Can someone identify what is the problem here?.
no children
while executing
"exp_wait -nowait -i -1"
(procedure "logOptions" line 45)
invoked from within
"logOptions"
(procedure "doExecute" line 98)
invoked from within
"doExecute"
(procedure "main" line 32)
... (7 Replies)
Discussion started by: calsum
7 Replies
8. Shell Programming and Scripting
In the following "for" loop I assume the the script will expect "anyway", "first" NOT in any paticular order and send "yes" when there found, breaking out of the loop when "$prompt" is found. The way it is working is like 3 individual expect lines, and they MUST be in cronological order. ANY help... (0 Replies)
Discussion started by: dave_m
0 Replies
9. UNIX for Dummies Questions & Answers
Does anyone know of an expect/tcl forum that is as helpful as this one is for shell scripting?
Or if anyone has any expect knowledge, can you please provide some guidance on how to write to a local error log based on output from a ssh session?
I have something like this:
foreach host... (2 Replies)
Discussion started by: earnstaf
2 Replies
10. Shell Programming and Scripting
I am rewriting the first big script project I ever coded to clean up some issues, mainly my really clumsy bash code, and to migrate to TCL/Expect. I have a couple of questions that I could use some help with.
1.) The script needs to know where it is located. I realize that I could use "find /... (1 Reply)
Discussion started by: thumper
1 Replies
Net::CLI::Interact::Manual::Phrasebook(3pm) User Contributed Perl Documentation Net::CLI::Interact::Manual::Phrasebook(3pm)
NAME
Net::CLI::Interact::Manual::Phrasebook - List of Supported CLIs
INTRODUCTION
The bundled phrasebook includes support for a variety of network device CLIs. Many were contributed by users of the module. If you set up
a new CLI dictionary, please consider contributing it back! The phrasebook specification is given in Net::CLI::Interact::Phrasebook.
For each supported CLI, there is a name which must be passed in the "personality" option to Net::CLI::Interact's "new()" method. After
that, you can call the included Macros, and the module will use the included Prompt to match the current state of the CLI. More information
is available in the Tutorial and Cookbook.
Below is a list of all current bundled CLI dictionaries. Each lists its name, the available Prompts, Macros and Continuations, and from
which other CLI dictionaries it inherits.
IOS # Cisco IOS
CatOS # for older, pre-IOS Cisco devices
PIXOS # for PIX OS-based devices
PIXOS7 # Slightly different commands from other PIXOS versions
FWSM # currently the same as 'PIXOS'
FWSM3 # for FWSM Release 3.x devices (slightly different to FWSM 2.x)
JunOS # Juniper JUNOS support
HP # HP support
Nortel # Nortel support
ExtremeOS # Extreme Networks support
Foundry # Foundry/Brocade device support
PERSONALITIES
Cisco
This personality goes by the name of "cisco" and provides a basis for many other CLI dictionaries.
Prompts are "basic", "privileged", "configure", "user", and "pass".
Macros are "begin_privileged", "end_privileged", "begin_configure", "end_configure", and "disconnect".
CatOS
This personality goes by the name of "catos" and inherits from the "cisco" dictionary.
Additionally it provides the "privileged" Prompt.
Additionally it also provides the "paging" Macro to set the terminal page size.
ExtremeOS
This personality goes by the name of "extremeos" and inherits from the "cisco" dictionary.
Additional Prompts are "basic", "privileged", "configure", "user", and "pass".
Additional Macros are "begin_privileged", "end_privileged", and "disconnect".
Foundry / Brocade
This personality goes by the name of "foundry" and inherits from the "cisco" dictionary. Before connecting to the device you probably want
to set the output separator to be:
$nci->transport->ors("
");
For users of Net::Appliance::Session this should be:
$session_obj->nci->transport->ors("
");
IOS
This personality goes by the name of "ios" and inherits from the "cisco" dictionary.
Additionally it provides the "paging" Macro to set the terminal page size.
HP
This personality goes by the name of "hp" and inherits from the "cisco" dictionary.
Additionally it provides the "basic" and "user" Prompts.
JunOS
This personality goes by the name of "junos" and inherits from the "cisco" dictionary.
Additionally it provides the "privileged", "configure", and "user" Prompts.
Additionally it also provides the "begin_configure" and "paging" Macros.
Nortel
This personality goes by the name of "nortel" and inherits from the "cisco" dictionary.
Additionally it provides the "user" Prompt.
PIXOS
This personality goes by the name of "pixos" and inherits from the "cisco" dictionary.
Additionally it provides the "paging" Macro to set the terminal page size.
It can be used in its own right for Cisco PIX firewalls, but is also used as a base for other dictionaries.
PIXOS 7
This personality goes by the name of "pixos7" and inherits from the "pixos" dictionary.
Additionally it provides the "paging" Macro to set the terminal page size.
FWSM
This personality goes by the name of "fwsm" and inherits from the "pixos" dictionary.
It provides no further functionality, as Cisco FWSM software version 1 and 2 was the same as the PIX OS.
FWSM 3
This personality goes by the name of "fwsm3" and inherits from the "pixos" dictionary.
Additionally it provides the "paging" Macro to set the terminal page size.
perl v5.14.2 2012-06-12 Net::CLI::Interact::Manual::Phrasebook(3pm)