Re: unable to connect to all the hosts using Net::SSH2 module

2009-03-12 Thread monnappa appaiah
can u suggest me some book or material from which i can understand some advance concepts of perl...i'm refering to learning perl On Thu, Mar 12, 2009 at 3:53 PM, Gunnar Hjalmarsson wrote: > monnappa appaiah wrote: > >> I"m sorry for starting the new threadi t

Re: unable to connect to all the hosts using Net::SSH2 module

2009-03-12 Thread monnappa appaiah
, Mar 12, 2009 at 5:40 AM, Gunnar Hjalmarsson wrote: > monnappa appaiah wrote: > >> Below is the script to login to multiple hosts and then execute the >> command >> and give the ouput in text file >> >> This script will login to all the hosts in input.txt(this file co

Re: connecting to multiple hosts using Net::SSH2

2009-03-10 Thread monnappa appaiah
Hi All, I'm facing another problem: Below is the script to login to multiple hosts and then execute the command and give the ouput in text file This script will login to all the hosts in input.txt(this file contains around 137 hosts) but when i run the scriptits giving me outpu

unable to connect to all the hosts using Net::SSH2 module

2009-03-10 Thread monnappa appaiah
Hi all, Below is the script to login to multiple hosts and then execute the command and give the ouput in text file This script will login to all the hosts in input.txt(this file contains around 137 hosts) but when i run the scriptits giving me output for only 5 hosts whereas input file h

Re: connecting to multiple hosts using Net::SSH2

2009-03-06 Thread monnappa appaiah
Hi Gunnar, It worked, thanks a lot for helping out...thanks to all for helping Thanks, Monnappa On 3/5/09, Gunnar Hjalmarsson wrote: > monnappa appaiah wrote: >> This the error i'm getting >> >> Net::SSH2::connect: failed to connect to 10.10

Re: connecting to multiple hosts using Net::SSH2

2009-03-04 Thread monnappa appaiah
4, 2009 at 5:44 PM, Dermot wrote: > 2009/3/4 monnappa appaiah : > > Hi, > > > >I tried that warn(and next) still its not logging into the next > > host...Kindly help me with this > > It's a bit hard to help without seeing the errors. > > D

Re: connecting to multiple hosts using Net::SSH2

2009-03-04 Thread monnappa appaiah
Hi, I tried that warn(and next) still its not logging into the next host...Kindly help me with this Thanks, Monnappa On Wed, Mar 4, 2009 at 4:53 PM, Dermot wrote: > 2009/3/4 monnappa appaiah : > > Hi all, > Hi > > > Hi i'm able to connect to muli

Re: connecting to multiple hosts using Net::SSH2

2009-03-04 Thread monnappa appaiah
ie 'More than ', BUFLEN, ' characters in listing' if $read >= BUFLEN; print OUTPUT "$buf\n"; print OUTPUT "\n\n\n"; print OUTPUT "--------"; $chan->exec('exit'); $ssh2->disconnect; Thanks, Monnappa On Th

module to work with csv files

2009-03-01 Thread monnappa appaiah
Hi all, can somebody please suggest me a module to work with csv files...majority of the function i use manually is sort, unique, pivot table and also i shud be able to read the data and write to a different csv file.Kindly suggest me a module that i can use?and i also use win

connecting to multiple hosts using Net::SSH2

2009-02-26 Thread monnappa appaiah
Hi all, I'm using windows machine and i'm using Net::SSH2 module to connect to remote machine below is the code i'm using, its working fine if i'm connecting to one host #!/usr/bin/perl -w use strict; use Net::SSH2; my $ssh2 = Net::SSH2->new(); $ssh2->connect("hostname") or die "Unabl

Re: understand this regular expression

2008-12-11 Thread monnappa appaiah
12, 2008 at 1:12 AM, Rob Dixon wrote: > monnappa appaiah wrote: > > Hi all, > > > > i have this regex > > > > > [\x3c][i][m][a][g][e]\x20[s][r][c][=][h][t][t][p][:]\x2f\x2f[\x26][#]114[;][\x26][#]2570[;][\x26][#]114[;][.][b][o][o][k][.][c][o][m] > > >

understand this regular expression

2008-12-11 Thread monnappa appaiah
Hi all, i have this regex [\x3c][i][m][a][g][e]\x20[s][r][c][=][h][t][t][p][:]\x2f\x2f[\x26][#]114[;][\x26][#]2570[;][\x26][#]114[;][.][b][o][o][k][.][c][o][m] when i tried to put it into human readable form this i got this http://%26#114;%26#2570;%26#114;.book.com is that right?...if no

error while installing Net::APPliance::Session module from Cygwin

2008-11-26 Thread monnappa appaiah
Hi all, I'm gettin an error while installing Net::APPliance::Session module from Cygwin, can someone help me with this $ perl -MCPAN -e "install Net::Applianc

getting error when running Net::SSH2

2008-11-24 Thread monnappa appaiah
Hi all, I'm running kubuntu linuxI used Net::SSH2 to login to remote machine, execute commands and give me the ouput...when i run the below code i get this error "Segmentation fault"...does anybody have an idea wat this error is?

Re: which module is suitable for logging into cisco devices

2008-11-23 Thread monnappa appaiah
i forgot to mention that, i'l be running the script from the windows machine ..so pls let me know the module which can login to cisco devices using ssh, execute certain commands and give me the output. Thanks, Monnappa On Sun, Nov 23, 2008 at 11:51 PM, monnappa appaiah <[EMAIL P

which module is suitable for logging into cisco devices

2008-11-23 Thread monnappa appaiah
Hi all, I'm looking for a module which can login to cisco devices using ssh, execute certain commands and give me the output.can somebody suggest me the module which is best suitable for loggin into cisco devices via ssh. Thanks, Monnappa

problem installing Net::SSH2

2008-11-23 Thread monnappa appaiah
Hi all I'm getting error while installing Net::SSH2 module on Kubuntu linux 8.10, I had installed the same module on in a different machine which was also running Kubuntu linux 8.10can somebody please help me with this, find the error below.

Re: no output Net::SSH2

2008-11-20 Thread monnappa appaiah
l method "exec" on an undefined value at C:\perl_scripts\ssh2.pl line 1 0. Press any key to continue . . ." Kindly let me know if i didn't anything wrong.please help me with this and it wud great if u can provide me with link which can giv

no output Net::SSH2

2008-11-19 Thread monnappa appaiah
Hi All, I have written 2 codes using "Net::SSH2" module which will connect to remote machine (linux), execute commands and give me the output...i'm running the script on my windows machine (win xp)..The problem is when i run this script i don't get any ouput and i also don't get any

error when using net::SSH::perl

2008-11-19 Thread monnappa appaiah
Hi All, I wanted to write a script which could login to a remote machine and execute commands and give me the output, so i used Net::SSH::Perl module on my windows xp machine after running the script i get the this error "mkdir C:/: Invalid argument; The filename, directory name, or

Re: problem with Net::SSH::Perl

2008-11-18 Thread monnappa appaiah
18, 2008 at 1:29 AM, Chas. Owens <[EMAIL PROTECTED]> wrote: > On Mon, Nov 17, 2008 at 13:42, monnappa appaiah <[EMAIL PROTECTED]> > wrote: > > Hi All, > > > > I wanted to write a script which could login into the server and > > execute a command and return

problem with Net::SSH::Perl

2008-11-17 Thread monnappa appaiah
Hi All, I wanted to write a script which could login into the server and execute a command and return the output for that i used "Net::SSH::Perl" module but when i run the script (i'm running on the windows machine) i'm getting this error "The getpwuid function is unimplemented at C:/Pe

Re: Help required in writing a script

2008-10-23 Thread monnappa appaiah
Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible Failed during this command: RGIERSIG/Expect-1.21.tar.gz : make NO RGIERSIG/IO-Tty-1.07.tar.gz : writemakefile NO 'C:\Perl\bin\pe rl.exe Mak

error while installing the module

2008-10-23 Thread monnappa appaiah
Hi all, i tried insalling the module "Expect" but i'm getting the below error msg, can someone help me in installing this module under windows cpan> m /Expect/ Going to read C:\Perl\cpan\Metadata Database was generated on Mon, 20 Oct 2008 08:27:31 GMT ModuleBio::MAGE::Quantitation

Re: Help required in writing a script

2008-10-23 Thread monnappa appaiah
i want to run specific commands and the output of those shud be put into a file. On Thu, Oct 23, 2008 at 8:13 PM, Chas. Owens <[EMAIL PROTECTED]> wrote: > On Thu, Oct 23, 2008 at 10:34, monnappa appaiah <[EMAIL PROTECTED]> > wrote: > > Hi, > > i connect to

Re: Help required in writing a script

2008-10-23 Thread monnappa appaiah
Hi, i connect to machines using ssh, i need to collect only stdout..connecting to all those machines serially or parllely is fine. Thanks, Monnappa On Thu, Oct 23, 2008 at 7:50 PM, Chas. Owens <[EMAIL PROTECTED]> wrote: > On Thu, Oct 23, 2008 at 09:36, monnappa appaia

Help required in writing a script

2008-10-23 Thread monnappa appaiah
Hi all, i need help on something i'm working on.I have 127 systems connected in the network, i want to write a script which will run on a management server, i shud be able to connect to each and every system (all the systems have same password) and execute certain commands an