i have little problem finding solution about simple telnet script .... i have 250 routers and on some i have different password and on some they ask just for password no username. So for example 1,2,3 have username and password (user,password) 4, and 5 have different username and password 6,7 have just password .... so i need a simple solution about this. Im new to perl but im learning now.
here is what i have for now ...
And if you have some other solution pleas shear it, i relay need this ....
Hi all,
i have a small simple perl that i cant make it work it is really stupid but i cant find solution and i needed fast.
im trying to copy running to startup on a cisco router and show me the output like is ok
Destination filename ?
Building configuration...
so the code i have is ... (0 Replies)
Hi all,
I use a bash script which use expect to connect throught ssh and run command on a cisco router. The ssh connection with expect work fine, but the first command on the cisco router failed,
I try to run the command in error by hand and it work fine... :(
the first part of the script... (2 Replies)
I am writing perl script to configure Cisco device but Variables inside Net::Telnet::Cisco Module doesn't work and passed to device without resolving.
Please advise.
here is a sample of script:
use Net::Telnet::Cisco;
$device = "10.14.199.1";
($o1, $o2, $o3, $o4) = split(/\./,$device);... (5 Replies)
Hi Experts,
I am using perl to telnet on cisco boxes. We have this stupid cisco node which does not support "terminal Length0" command.
Since I am using Net::Telnet and capturing output with
@output = $telnet->cmd('cmd');
Say
@output = $telnet->cmd('show version');
Now problem... (2 Replies)
At times I find the need to test that the tacacs port 49 is open.
The code below works but is painfully slow because I have to wait on the timeouts.
Examples of possible responds
router1#telnet 10.11.20.14 49
Trying 206.112.204.140, 49 ... Open
route1#telnet 10.11.19.14 49
Trying... (1 Reply)
Somewhat long story:
I have a simple Perl CGI script that uses Expect to Telnet to a device and grab some data, and then spits it back to Perl for display on the Webpage.
This works for many devices I've tried, but one device just fails, it keeps rejecting the password on this device, only... (1 Reply)
All
Please help, i will telnet to router to obain the ping status and compare, if higher than normal latency, i will have further action..
if i do the telent and in perl script then ....
e.g the result i obtain from the router will be =' Success rate is 100 percent (5/5), round-trip... (4 Replies)
LSH-PAM-CHECKPW(8) lsh manuals LSH-PAM-CHECKPW(8)NAME
lsh-pam-checkpw - program to check a PAM username/password combination
SYNOPSIS
lsh-pam-checkpw username-to-check
DESCRIPTION
This manual page documents briefly the lsh-pam-checkpw command. This manual page was written for the Debian distribution because the orig-
inal program does not have a manual page. Instead, it has documentation in the GNU Info format; see below.
lsh-pam-checkpw is a program that checks if a username and password combination is valid for login by doing a PAM lookup. It is designed to
be used as a password helper program for lshd (8), (eg. --password-helper=/usr/sbin/lsh-pam-checkpw.
lsh-pam-checkpw takes one required argument, which is the username, and reads the password from stdin, then returns 0 if the password is
valid, or 1 otherwise. Note that the password must be supplied exactly, ie. there must be no newline after the password, so if invoking
from a shell, just type "<your-password><CTRL-D>".
SEE ALSO lsh(1), lshd(8). The programs are documented fully by Lsh, available via the Info system.
AUTHOR
This manual page was written by Timshel Knoll <timshel@debian.org>, for the Debian GNU/Linux system (but may be used by others).
lsh-pam-checkpw Jul 05 2002 LSH-PAM-CHECKPW(8)