[rrd-users] Re: Need a script to access switch

Chan Chi Hung chihung at mc-3.org
Wed Jan 11 02:24:55 MET 2006


I think "Expect" is the tool you are looking for.  Expect home page 
(http://expect.nist.gov/) mentioned this:
"Expect is a tool for automating interactive applications such as 
telnet, ftp, passwd, fsck, rlogin, tip, etc ..."

Expect is developed on top of Tcl (http://www.tcl.tk/) and RRDtool has 
Tcl blinding. So, you can automate your telnet and rrd graphing all in Tcl.


Expect is

PAUL WILLIAMSON wrote:
> Have you tried to script it using "expect" and shell?
> 
> Paul
> 
> 
>>>>"shrikumar sukhthankar" <shrikumar.sukhthankar at gmail.com> 01/09/06
> 
> 7:55 PM >>>
> Hi RRD-users
> I have to extract data from a Switch and monitor the traffic going
> through
> it using rrd.
> I want to access the switch from the command line or using a unix
> sxript.Iam not able to access the switch directly from unix as i have
> to use telnet
> and enter a username and passwd .How can i pass the usernmame and
> passwd
> using a unix script.
> 
> Please help me out using this
> 
> Regards
> Shrikumar Sukhthankar
> 
> --
> Unsubscribe
> mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe 
> Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help 
> Archive     http://lists.ee.ethz.ch/rrd-users 
> WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi 
> 
> 
> 
> --
> Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
> Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
> Archive     http://lists.ee.ethz.ch/rrd-users
> WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi
> 

-- 
#
#
rename proc //
// t: n {regexp {^6\d{7,7}$} $n}; // f: n [info body t:]
// m: n {regexp {^9\d{7,7}$} $n}; // e: e {regexp {^[^@]+@[^@]+$} $e}
// a: args {string length $args}; // c: args [info body a:]; if {


[c: managed computing competency centre]                 &&
[a: ntu, mae, blk n3 #01c-10, 50 nanyang ave, s(639798)] &&
[t: 67904420]                                            &&
[f: 63160042]                                            &&
[m: 97317462]                                            &&
[e: chihung at mc-3.org]


} {format {%c%c%c %c%c %c} 84 99 108 105 115 37239}

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-users mailing list