monskie has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/local/bin/perl -w use Net::Telnet; $uID = "uname"; $uPASS = "pwd"; $telnet = new Net::Telnet ( Timeout=>20, Errmode=>'die', Prompt => '/\$ $/i'); $telnet->open('hpsgncw.sgp.hp.com'); $telnet->login($uID, $uPASS); print $telnet->cmd('manage'); print $telnet->cmd('exec manage'); print $telnet->cmd('show mcc 0');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Telnet Connection
by jettero (Monsignor) on Dec 21, 2006 at 09:57 UTC |