Sponsored Content
Full Discussion: perl telnet issue with cisco
Top Forums Shell Programming and Scripting perl telnet issue with cisco Post 302476013 by mtomar on Tuesday 30th of November 2010 02:34:55 PM
Old 11-30-2010
Hi Experts...
I am sorry to bring thing old issue up again. I was busy with some other stuff so this thing was kept on hold. I did try sending multiple lines at once option and it did work for commands with small outputs.
I need to take care of "show logs" that means 1000 lines may be more and I am not willing put 50 "\n" in script.
Either i am must able to run a loop using "waitfor" to take care of --More-- or something else.

any hints ?
 

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Perl telnet to cisco router and compare the ping ms

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)
Discussion started by: optimus
4 Replies

2. Shell Programming and Scripting

Webpage to Telnet via Perl and Expect: Telnet problem?

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)
Discussion started by: jondo
1 Replies

3. Shell Programming and Scripting

Expect/telnet/testing tacacs on a cisco

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)
Discussion started by: popeye
1 Replies

4. Shell Programming and Scripting

Perl variables inside Net::Telnet::Cisco Module doesn't work

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)
Discussion started by: ahmed_zaher
5 Replies

5. Shell Programming and Scripting

Perl cisco copy running to startup

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)
Discussion started by: IvanMP
0 Replies

6. Shell Programming and Scripting

Perl Telnet cisco routers

Hi all 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... (0 Replies)
Discussion started by: IvanMP
0 Replies
Info::CiscoRTT(3pm)					User Contributed Perl Documentation				       Info::CiscoRTT(3pm)

NAME
SNMP::Info::CiscoRTT - SNMP Interface to Cisco's Round Trip Time MIBs AUTHOR
Alexander Hartmaier SYNOPSIS
# Let SNMP::Info determine the correct subclass for you. my $rtt = new SNMP::Info( AutoSpecify => 1, Debug => 1, DestHost => 'myswitch', Community => 'public', Version => 2 ) or die "Can't connect to DestHost. "; my $class = $rtt->class(); print "SNMP::Info determined this device to fall under subclass : $class "; DESCRIPTION
SNMP::Info::CiscoRTT is a subclass of SNMP::Info that provides information about a cisco device's RTT values. Use or create in a subclass of SNMP::Info. Do not use directly. Inherited Classes none. Required MIBs CISCO-RTTMON-MIB MIBs can be found at ftp://ftp.cisco.com/pub/mibs/v2/v2.tar.gz GLOBALS
None TABLE METHODS
Overall Control Group Table This table is from "CISCO-RTTMAN-MIB::rttMonCtrlAdminTable" $rtt->rtt_desc() ("rttMonCtrlAdminOwner") Overall Control Group Table This table is from "CISCO-RTTMON-MIB::rttMonCtrl" $rtt->rtt_last() ("rttMonLatestRttOperCompletionTime") perl v5.12.4 2011-09-28 Info::CiscoRTT(3pm)
All times are GMT -4. The time now is 08:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy