Description | Switch modules are instantiated only when first used. If a switch module is broken, here's what you get in the logs:
Oct 14 08:18:38 pfcmd(0) ERROR: Can not load perl module for switch 192.168.1.61, type: pf::SNMP::Cisco::Catalyst_2960.
Either the type is unknown or the perl module has compilation errors. Read the following message for
details: Missing right curly or square bracket at /usr/local/pf/lib/pf/SNMP/Cisco.pm line 1496, at end
of line
syntax error at /usr/local/pf/lib/pf/SNMP/Cisco.pm line 1496, at EOF
Compilation failed in require at (eval 78) line 3.
...propagated at /usr/lib/perl5/5.8.8/base.pm line 85.
BEGIN failed--compilation aborted at /usr/local/pf/lib/pf/SNMP/Cisco/Catalyst_2950.pm line 24.
Compilation failed in require at (eval 77) line 3.
...propagated at /usr/lib/perl5/5.8.8/base.pm line 85.
BEGIN failed--compilation aborted at /usr/local/pf/lib/pf/SNMP/Cisco/Catalyst_2960.pm line 28.
Compilation failed in require at /usr/local/pf/lib/pf/SwitchFactory.pm line 74. (pf::SwitchFactory::instantiate)
I'm not convinced that this is what should happen. Maybe we should do a sanity check of all modules specified in switches.conf at startup and stop starting right there.
What do you guys think? |