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

Reply via email to