PacketFence - BTS - PacketFence
View Issue Details
0000942PacketFencepublic2010-04-06 12:452011-01-26 15:38
obilodeau 
obilodeau 
highmajoralways
closedfixed 
 
1.9.0 
176c87c96dfb0b1d5f8212eead5209f884ce642e
0000942: problem with pfcmd's locationhistorymac and locationhistoryswitch
Report by Jason on the -users mailing list:

I cannot run these two options “locationhistorymac” and “locationhistoryswitch”
 
[root@pf bin]# ./pfcmd locationhistorymac 00:00:aa:7b:31:75
mac|switch|port|vlan|start_time|end_time
Can't use string ("0") as a HASH ref while "strict refs" in use at ./pfcmd line
        1818 (0000001)
    (F) Only hard references are allowed by "strict refs". Symbolic
    references are disallowed. See perlref.
 
Uncaught exception from user code:
        Can't use string ("0") as a HASH ref while "strict refs" in use at ./pfcmd line 1818.
 at ./pfcmd line 1818
        main::print_results('locationlog_history_mac', '00:00:aa:7b:31:75', 'mac', '00:00:aa:7b:31:75') called at ./pfcmd line 302
        main::locationhistorymac() called at ./pfcmd line 161
        main::__ANON__() called at ./pfcmd line 192

[root@pf bin]# ./pfcmd locationhistoryswitch 10.99.0.15 2
mac|switch|port|vlan|start_time|end_time
Can't use string ("27") as a HASH ref while "strict refs" in use at ./pfcmd
        line 1818 (0000001)
    (F) Only hard references are allowed by "strict refs". Symbolic
    references are disallowed. See perlref.
 
Uncaught exception from user code:
        Can't use string ("27") as a HASH ref while "strict refs" in use at ./pfcmd line 1818.
 at ./pfcmd line 1818
        main::print_results('locationlog_history_switchport', 10.99.0.15, 'ifIndex', 2) called at ./pfcmd line 92
        main::locationhistoryswitch() called at ./pfcmd line 162
        main::__ANON__() called at ./pfcmd line 192
[root@pf bin]#
 
 
 [root@pf bin]# ./pfcmd version
PacketFence 1.8.7
DB MD5SUM: 63a6853a76ce3cde242e9cc8b9d0c71c

[root@pf bin]# rpm -qa | grep packetfence
packetfence-1.8.8-0.20100311.el5
php-jpgraph-packetfence-2.3.4-1

Note : I’m not sure why ./pfcmd version does not show 1.8.8 when rpm –qa does….

Let me know if I can provide any additional details…

Thank you,

Jason Gauruder
IT Network/Systems Administrator
No tags attached.
Issue History
2010-04-06 12:45obilodeauNew Issue
2010-04-06 12:45obilodeauStatusnew => assigned
2010-04-06 12:45obilodeauAssigned To => obilodeau
2010-04-06 14:47obilodeauNote Added: 0001504
2010-04-06 14:47obilodeauStatusassigned => resolved
2010-04-06 14:47obilodeauFixed in Version => 1.8.8
2010-04-06 14:47obilodeauResolutionopen => fixed
2010-04-06 14:47obilodeaumtn revision => 176c87c96dfb0b1d5f8212eead5209f884ce642e
2010-04-06 16:35obilodeauNote Added: 0001506
2010-04-29 13:38obilodeauFixed in Version1.8.8 => 1.9.0
2011-01-26 15:38obilodeauStatusresolved => closed

Notes
(0001504)
obilodeau   
2010-04-06 14:47   
Found the source of the issue, and fixed it.

The fix was needed locationlog.pm and ifoctetslog, not only locationhistoryswitch and locationhistorymac.
(0001506)
obilodeau   
2010-04-06 16:35   
Just released updated snapshot packages.