Hi,

 

I'm using Packetfence version 1.9.0 but I'm having problems with
PacketFence not detecting my VLAN settings on my switch. (DES 1012-24).
I suppose this is because the switch isn't supported correctly, but if
this is the case, is there a way I can get it work regardless?

 

Pfcmd_vlan logging:

2010/09/22 09:24:20 (460) pf::SNMP::getVlan

    SNMP get_request for dot1qPvid: 1.3.6.1.2.1.17.7.1.4.5.1.1.3

 

If I do this manually:

snmpwalk -v2c -cpublic 10.10.1.42 1.3.6.1.2.1.17.7.1.4.3.1.1.3

SNMPv2-SMI::mib-2.17.7.1.4.3.1.1.3 = No Such Object available on this
agent at this OID

 

Other Queries work just fine:

2010/09/22 09:24:19 (225) pf::SNMP::connectRead

    SNMP get_request for sysLocation: 1.3.6.1.2.1.1.6.0

 

Manually:

snmpwalk -v2c -cpublic 10.10.1.42 1.3.6.1.2.1.1.6.0

SNMPv2-MIB::sysLocation.0 = STRING: Studio

 

----

/usr/local/pf/test/connect_and_read.pl

10.10.1.42

 - sysUptime: 4 days, 22:10:54.96

 - nb Vlans : 0

 - Uplinks: 24

Use of uninitialized value in numeric eq (==) at

        /usr/local/pf/test/../lib/pf/SNMP.pm line 1833 (#1)

    (W uninitialized) An undefined value was used as if it were already

    defined.  It was interpreted as a "" or a 0, but maybe it was a
mistake.

    To suppress this warning assign a defined value to your variables.

 

    To help you figure out what was undefined, perl tells you what
operation

    you used the undefined value in.  Note, however, that perl optimizes
your

    program and the operation displayed in the warning may not
necessarily

    appear literally in your program.  For example, "that $foo" is

    usually optimized into "that " . $foo, and the warning will refer to

    the concatenation (.) operator, even though there is no . in your

    program.

 

Switches.conf:

[10.10.1.42]

type=Dlink::DES_3526

mode=production

uplink=24

 

[r...@localhost bin]# /usr/local/pf/bin/pfcmd_vlan -verbose 100 -isolate
-ifIndex 7 -switch 10.10.1.42

 

2010/09/22 09:10:19 (2200) pf::db::db_query_execute

    attempt #0 to run query node_view_sql from module node

2010/09/22 09:10:19 (2201) pf::db::db_query_execute

    attempt #0 to run query locationlog_view_open_switchport_no_VoIP_sql
from module locationlog

2010/09/22 09:10:19 (2202) pf::db::db_query_execute

    attempt #0 to run query locationlog_insert_start_with_mac_sql from
module locationlog

2010/09/22 09:10:19 (2205) pf::SNMP::isDefinedVlan

    SNMP get_request for dot1qVlanStaticName:
1.3.6.1.2.1.17.7.1.4.3.1.1.3

2010/09/22 09:10:19 (2213) pf::SNMP::setVlan

    new VLAN 3 is not defined on switch 10.10.1.42 -> replacing VLAN 3
with MAC detection VLAN 4

2010/09/22 09:10:19 (2213) pf::SNMP::isDefinedVlan

    SNMP get_request for dot1qVlanStaticName:
1.3.6.1.2.1.17.7.1.4.3.1.1.4

2010/09/22 09:10:19 (2222) pf::SNMP::setVlan

    MAC detection VLAN 4 is also not defined on switch 10.10.1.42 -> Do
nothing

2010/09/22 09:10:19 (2222) pf::SNMP::getDot1dBasePortForThisIfIndex

    SNMP get_table for dot1dBasePortIfIndex: 1.3.6.1.2.1.17.1.4.1.2

2010/09/22 09:10:19 (2451) pf::SNMP::getDot1dBasePortForThisIfIndex

    dot1dBasePort corresponding to ifIndex 7 is 7

2010/09/22 09:10:19 (2451) pf::SNMP::getVlan

    SNMP get_request for dot1qPvid: 1.3.6.1.2.1.17.7.1.4.5.1.1.7

Use of uninitialized value in concatenation (.) or string at

        /usr/local/pf/bin/pfcmd_vlan line 572 (#1)

new VLAN:

 

 

Manual Flip.pl:

 

Sep 22 09:11:19 flip.pl(0) INFO: flip.pl called with 00:0e:a6:8c:2b:4f
(main::)

Sep 22 09:11:19 flip.pl(0) INFO: switch port for 00:0e:a6:8c:2b:4f is
10.10.1.42 ifIndex 7 (main::)

Sep 22 09:11:22 pfsetvlan(21) INFO: local (127.0.0.1) trap for switch
10.10.1.42 (main::parseTrap)

Sep 22 09:11:22 pfsetvlan(1) INFO: nb of items in queue: 1; nb of
threads running: 0 (main::startTrapHandlers)

Sep 22 09:11:22 pfsetvlan(1) INFO: reAssignVlan trap received on
10.10.1.42 ifIndex 7 (main::handleTrap)

Sep 22 09:11:22 pfsetvlan(1) WARN: received reAssignVlan trap on
10.10.1.42 ifIndex 7 but can't determine non VoIP MAC (main::handleTrap)

Sep 22 09:11:22 pfsetvlan(1) INFO: finished (main::cleanupAfterThread)

 

 

Kind Regards,

 

Sander Naudts

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Packetfence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to