I second Rich’s comments. We currently manage our interface descriptions
manually with patch panel info and this would cause us great pain! Perhaps
adding it as an option that is configurable in switches.conf would be okay
though.
---------------------------------------------------------------------------------------
Gavin Pyle | Network Engineer | Green River Community College
[email protected]<mailto:[email protected]>
From: Rich Graves [mailto:[email protected]]
Sent: Monday, July 16, 2012 7:02 AM
To: [email protected]
Subject: Re: [PacketFence-users] Adding description to switch port after
setting VLAN
I wouldn't want such a feature added to PacketFence core. People often want
other things for ifDescr, such as patch panel/wall jack information.
You would need to make extensive changes to ~pf/lib/pf/SNMP.pm, and possibly
also to your specific model of swtch in ~pf/lib/pf/SNMP.
The DHCP-Hostname is stored in the node table. It is often exposed at
$node_info->{computername}. This structure is not available in most pf::SNMP
subroutines, but you could add it.
Note that setVlan is only called if the vlan changes. So if you use a
linkup/linkdown or port-security model and device A, which belongs in vlan 5,
is replaced with device B, which also belongs in vlan 5, your ifDescr would not
change unless you go quite deep into the code.
Depending on what it is you really want, it might be better to look into the
(apparently not very well maintained) option-82 code in PacketFence, or an
additional network management package. Consider NeDi.sf.net, netdb.sf.net,
netdisco.org, or (if your network is very large) netdot.uoregon.edu.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users