Mantis - pm_net_telnet
Viewing Issue Advanced Details
5211 regular use crash always 2014-10-15 16:40 2014-12-03 12:01
keziacp  
dam  
normal  
closed  
no change required  
none    
none  
0005211: Can't locate Net/Telnet/Cisco.pm
Hi Iam trying to execute login of pm_nettelnet, but it is not working. It should work! I already installed the right packege.

# pkgutils -i CSWpmnettelnet
Installation of <CSWpmnettelnet> was successful.

# ./acs_ecs01 -H 10.243.177.151 -U operator -P Customer -S HDHBOE
Can't call method "login" on an undefined value at ./acs_ecs01 line 49.

(On Line 49:)
use Net::Telnet;
...
(48) $telnet = new Net::Telnet (Host=> "$Host", Prompt=>'/%/', Timeout=>30, Errmode=>'return');
(49) $telnet->login($User, $Pwss) or die $telnet->errmsg();
...
Issue History
2014-10-15 16:40 keziacp New Issue
2014-10-15 16:41 keziacp Note Added: 0010936
2014-10-15 21:01 dam Status new => assigned
2014-10-15 21:01 dam Assigned To => dam
2014-10-15 21:02 dam Note Added: 0010937
2014-10-15 21:02 dam Status assigned => feedback
2014-12-03 12:01 dam Note Added: 0010987
2014-12-03 12:01 dam Status feedback => closed
2014-12-03 12:01 dam Resolution open => no change required

Notes
(0010936)
keziacp   
2014-10-15 16:41   
Sorry, the title does not match with the problem. Just ignore the title. The problem is down on the description. Thanks
(0010937)
dam   
2014-10-15 21:02   
Most certainly $Host is not reachable for telnet. Just remove Errmote=>'return' and see why it fails.
(0010987)
dam   
2014-12-03 12:01   
No feedback, most certainly the module works as designed.