[ixpmanager] update-l2database.pl
Mike Hammett
ixp-manager at ics-il.net
Tue May 26 00:35:10 IST 2015
Oh yeah, I had to add the -I section to get it to not complain about looking for Config.pm.
-----
Mike Hammett
Intelligent Computing Solutions
http://www.ics-il.com
Midwest Internet Exchange
http://www.midwest-ix.com
----- Original Message -----
From: "Mike Hammett" <ixp-manager at ics-il.net>
To: "INEX IXP Manager Mailing List" <ixpmanager at inex.ie>
Sent: Monday, May 25, 2015 6:32:29 PM
Subject: [ixpmanager] update-l2database.pl
# perl -I /usr/local/ixp/tools/perl-lib/IXPManager/lib/ /usr/local/bin/update-l2database.pl
SNMPopen failed: Unable to resolve the UDP/IPv4 address "nbbc-quanta"
at /usr/share/perl5/Net_SNMP_util.pm line 1580
Net_SNMP_util::snmpopen('HIDESTHECOMMUNITY at nbbc-quanta', 0, 'ARRAY(0x1569fe8)') called at /usr/share/perl5/Net_SNMP_util.pm line 1690
Net_SNMP_util::snmpwalk_flg('HIDESTHECOMMUNITY at nbbc-quanta', undef, .1.3.6.1.2.1.2.2.1.2) called at /usr/share/perl5/Net_SNMP_util.pm line 786
Net_SNMP_util::snmpwalk('HIDESTHECOMMUNITY at nbbc-quanta', .1.3.6.1.2.1.2.2.1.2) called at /usr/local/bin/update-l2database.pl line 314
main::snmpwalk2hash('nbbc-quanta', 'HIDESTHECOMMUNITY', .1.3.6.1.2.1.2.2.1.2) called at /usr/local/bin/update-l2database.pl line 195
main::trawl_switch_snmp('nbbc-quanta', 'HIDESTHECOMMUNITY', undef) called at /usr/local/bin/update-l2database.pl line 89
SNMPWALK Problem for HIDESTHECOMMUNITY at nbbc-quanta at /usr/local/bin/update-l2database.pl line 314
WARNING: nbbc-quanta: cannot read ifDescr. Not processing nbbc-quanta further.
SNMPopen failed: Unable to resolve the UDP/IPv4 address "m-ix-cisco-4500"
at /usr/share/perl5/Net_SNMP_util.pm line 1580
Net_SNMP_util::snmpopen('HIDESTHECOMMUNITY at m-ix-cisco-4500', 0, 'ARRAY(0x1569fe8)') called at /usr/share/perl5/Net_SNMP_util.pm line 1690
Net_SNMP_util::snmpwalk_flg('HIDESTHECOMMUNITY at m-ix-cisco-4500', undef, .1.3.6.1.2.1.2.2.1.2) called at /usr/share/perl5/Net_SNMP_util.pm line 786
Net_SNMP_util::snmpwalk('HIDESTHECOMMUNITY at m-ix-cisco-4500', .1.3.6.1.2.1.2.2.1.2) called at /usr/local/bin/update-l2database.pl line 314
main::snmpwalk2hash('m-ix-cisco-4500', 'HIDESTHECOMMUNITY', .1.3.6.1.2.1.2.2.1.2) called at /usr/local/bin/update-l2database.pl line 195
main::trawl_switch_snmp('m-ix-cisco-4500', 'HIDESTHECOMMUNITY', undef) called at /usr/local/bin/update-l2database.pl line 89
SNMPWALK Problem for HIDESTHECOMMUNITY at m-ix-cisco-4500 at /usr/local/bin/update-l2database.pl line 314
WARNING: m-ix-cisco-4500: cannot read ifDescr. Not processing m-ix-cisco-4500 further.
SNMPopen failed: Unable to resolve the UDP/IPv4 address "MTIN-3550"
at /usr/share/perl5/Net_SNMP_util.pm line 1580
Net_SNMP_util::snmpopen('HIDESTHECOMMUNITY at MTIN-3550', 0, 'ARRAY(0x1569fe8)') called at /usr/share/perl5/Net_SNMP_util.pm line 1690
Net_SNMP_util::snmpwalk_flg('HIDESTHECOMMUNITY at MTIN-3550', undef, .1.3.6.1.2.1.2.2.1.2) called at /usr/share/perl5/Net_SNMP_util.pm line 786
Net_SNMP_util::snmpwalk('HIDESTHECOMMUNITY at MTIN-3550', .1.3.6.1.2.1.2.2.1.2) called at /usr/local/bin/update-l2database.pl line 314
main::snmpwalk2hash('MTIN-3550', 'HIDESTHECOMMUNITY', .1.3.6.1.2.1.2.2.1.2) called at /usr/local/bin/update-l2database.pl line 195
main::trawl_switch_snmp('MTIN-3550', 'HIDESTHECOMMUNITY', undef) called at /usr/local/bin/update-l2database.pl line 89
SNMPWALK Problem for HIDESTHECOMMUNITY at MTIN-3550 at /usr/local/bin/update-l2database.pl line 314
WARNING: MTIN-3550: cannot read ifDescr. Not processing MTIN-3550 further.
I'm no expert at programming or databases as you may have been able to tell form my posts thus far. I looked into update-l2database.pl and couldn't exactly figure it out. The error is indicating that it is pulling the "name" field from the database instead of the "hostname" field. In the Perl script, it is just referencing $host.
Ideas?
-----
Mike Hammett
Intelligent Computing Solutions
http://www.ics-il.com
Midwest Internet Exchange
http://www.midwest-ix.com
_______________________________________________
INEX IXP Manager mailing list
ixpmanager at inex.ie
https://www.inex.ie/mailman/listinfo/ixpmanager
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.inex.ie/pipermail/ixpmanager/attachments/20150525/21c4cec4/attachment.html>
More information about the ixpmanager
mailing list