PacketFence - BTS - PacketFence
View Issue Details
0000388PacketFencecorepublic2008-09-16 16:372012-02-29 10:57
user4 
rbalzard 
normalfeaturealways
closedfixed 
 
 
0000388: support for SSH connections
in addition to telnet connections, we should support SSH connections to switches
No tags attached.
related to 0000379closed rbalzard Net::Appliance::Session 
Issue History
2008-09-16 16:37user4New Issue
2008-09-16 16:37user4Statusnew => assigned
2008-09-16 16:37user4Assigned To => user4
2008-09-19 08:59user4Statusassigned => resolved
2008-09-19 08:59user4Resolutionopen => fixed
2008-09-19 08:59user4Note Added: 0000805
2008-09-19 08:59user4Assigned Touser4 => rbalzard
2008-09-19 08:59user4Statusresolved => feedback
2008-09-19 08:59user4Resolutionfixed => reopened
2008-09-19 08:59user4Note Added: 0000806
2008-09-19 09:00user4Relationship addedrelated to 0000379
2008-10-31 14:26user4Category => 1.8.0
2009-01-21 16:41rbalzardNote Added: 0001024
2009-01-21 16:43rbalzardNote Edited: 0001024
2009-01-22 11:36user4Note Added: 0001030
2009-01-23 06:18user4Note Added: 0001033
2009-01-26 12:48user4Statusfeedback => closed
2009-01-26 12:48user4Resolutionreopened => fixed
2010-04-15 17:53obilodeauCategory1.8.0 => 1.8.x
2012-02-29 10:57obilodeauCategory1.8.x => core

Notes
(0000805)
user4   
2008-09-19 08:59   
mtn revision c6fe69a50bcb2a5d4ddd7b639454b357b821f405
(0000806)
user4   
2008-09-19 08:59   
Regis,
could you do the necessary tests to make sure everything works ?

Thanks,
Dominik
(0001024)
rbalzard   
2009-01-21 16:41   
(edited on: 2009-01-21 16:43)
I enabled SSH on our test switch. I am now able to connect to the switch through SSH.

Switches.conf is ok.

First tests do not work. Here is what we get when executing connect_and_read.pl (which uses CLI to 'show mac-address-table'):

[root@pf pf]# ./test/connect_and_read.pl
192.168.0.41
 - sysUptime: 6 hours, 37:16.54
 - nb Vlans : 8
 - Uplinks: 17, 18, 19, 20, 21, 22, 23, 24
Undefined subroutine &Net::Appliance::Session::Transport::WNOHANG called at /usr/lib/perl5/site_perl/5.8.8/Net/Appliance/Session/Transport.pm line 66.
END failed--call queue aborted (0000001)
    (F) The subroutine indicated hasn't been defined, or if it was, it has
    since been undefined.

Uncaught exception from user code:
        Undefined subroutine &Net::Appliance::Session::Transport::WNOHANG called at /usr/lib/perl5/site_perl/5.8.8/Net/Appliance/Session/Transport.pm line 66.
END failed--call queue aborted.
 at ./test/connect_and_read.pl line 0
Unbalanced scopes: 4 more ENTERs than LEAVEs
Unbalanced saves: 140 more saves than restores
Unbalanced tmps: 2 more allocs than frees


After a couple of prints, it looks like the problem appears when sending the command to the CLI. Line 857 in Cisco.pm
my @tmp = $session->cmd($command);

(0001030)
user4   
2009-01-22 11:36   
I notified Oliver Gorwits, the Net::Appliance::Session maintainer, about the issue
(0001033)
user4   
2009-01-23 06:18   
Regis, the issue should be fixed in Net::Appliance::Session 1.36