checkout the tree:
cvs -d :ext:rcolantuoni@cvs.sf.net:/cvsroot/netpass co
NetPass
cp your rogue script to bin/rogue-dhcp-detect.pl
cvs add bin/rogue-dhcp-detect.pl
add code to extract interface name and vlan from
$np->cfg by using getNetworks() and
availableVlans(-network => network).
decide how you want to structure the tables (exceptions
+ disabled ports). keep in mind that auditing is
important. timestamp each record, include username what
made change, if appropriate, etc. also use
$np->db->audit() to submit a netpass audit log entry.
vi install.d/tables.sql
add tables to MySQL (npw2-d% mysql -u root netpass)
examine bin/macscan.pl for an example of how to:
1) comment the code
2) add standard command line options (-U -c)
3) use those options to connect to netpass (new Netpass())
4) use threads
decide how you want to interface with the database
(SQL) and put that code/routines in DB.pm
add appropriate perl modules "/opt/perl/bin/perl -MCPAN
-e shell"
add modules to lib/Bundle/NetPass2.pm
email mtbell,jcmurphy and ask that "a new perl binary
dist be posted to foobar because i added module X, Y and Z"
add web interface htdocs/Admin/roguedhcp.mhtml with
functionality:
1) modify exception list
2) review disabled port list
3) modify port status (turn on/off)
add any appropriate routines to all SNMP Device modules
(including cisco module - we have ciscos to test against)