Previously we were using switchmap 10.18 and it was able gather info from our n7k switches. I am in the process of finishing the install of switchmap 14 and everything is working except for gathering info from our n7k switches.
scanswitch.pl returns the output below in a debug so it can connect successfully but isn't able to retrieve any data. I also tried with snmpv2 but got the same results.
any suggestions?
thanks
mike
scanswitch.pl output
main::doSwitches: opening SNMP session to roc-core1
2016/04/19 13:01:19 SwitchUtils::OpenSnmpSession: called to open a session to roc-core1
2016/04/19 13:01:19 SwitchUtils::OpenSnmpSession: trying to open an SNMP session to roc-core1
2016/04/19 13:01:19 SwitchUtils::OpenSnmpSession: SNMPv3 session open, testing a GET of the sysObjectId
2016/04/19 13:01:19 SwitchUtils::GetOneOidValue: called to fetch sysObjectID from roc-core1
2016/04/19 13:01:19 SwitchUtils::GetOneOidValue: returning "1.3.6.1.4.1.9.12.3.1.3.932"
2016/04/19 13:01:19 SwitchUtils::OpenSnmpSession: SNMPv3 GET succeeded, valid SNMP session opened
2016/04/19 13:01:19 SwitchUtils::OpenSnmpSession: returning SUCCESS, sysObjectID = 1.3.6.1.4.1.9.12.3.1.3.932
2016/04/19 13:01:19 main::doOneSwitch: called to process roc-core1
2016/04/19 13:01:19 Timer:🆕 called
2016/04/19 13:01:19 Timer:🆕 returning
2016/04/19 13:01:19 SwitchUtils::GetNameTables: called
2016/04/19 13:01:19 SwitchUtils::GetNameTables: getting interface-to-name tables
2016/04/19 13:01:19 SwitchUtils::GetSnmpTable: called, getting ifName table...
2016/04/19 13:01:19 Timer:🆕 called
2016/04/19 13:01:19 Timer:🆕 returning
2016/04/19 13:01:29 SwitchUtils::GetSnmpTable: Couldn't get ifName table: No response from remote host "roc-core1", SNMP error status: 0, SNMP error index: 85
2016/04/19 13:01:29 Timer::stop: called
2016/04/19 13:01:29 Timer::stop: returning
2016/04/19 13:01:29 SwitchUtils::GetSnmpTable: returning failure
2016/04/19 13:01:29 SwitchUtils::GetNameTables: returning failure
2016/04/19 13:01:29 main::doOneSwitch: roc-core1: couldn't get the ifName table, skipping
2016/04/19 13:01:29 Timer::stop: called
2016/04/19 13:01:29 Timer::stop: returning
2016/04/19 13:01:29 main::doOneSwitch: returning
2016/04/19 13:01:29 Timer::stop: called
2016/04/19 13:01:29 Timer::stop: returning
2016/04/19 13:01:29 main::doSwitches: returning
2016/04/19 13:01:29 Timer::stop: called
2016/04/19 13:01:29 Timer::stop: returning
2016/04/19 13:01:29 main::: exiting normally...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
after investigating I found that get_table(snmpbulkget) was failing because the n7k device wasn't returning any results when max_repetitions was bigger than a value of 48 (which appears to produce a packet size of 1515). Out network can handle larger packet sizes but not sure at this point why the n7k won't respond. As a work around/fix I changed the -maxmsgsize values in SwitchUtils.pm to a smaller value which in turn reduced the max_repetitions value being passed in the snmpbulkget calls.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Previously we were using switchmap 10.18 and it was able gather info from our n7k switches. I am in the process of finishing the install of switchmap 14 and everything is working except for gathering info from our n7k switches.
scanswitch.pl returns the output below in a debug so it can connect successfully but isn't able to retrieve any data. I also tried with snmpv2 but got the same results.
any suggestions?
thanks
mike
scanswitch.pl output
main::doSwitches: opening SNMP session to roc-core1
2016/04/19 13:01:19 SwitchUtils::OpenSnmpSession: called to open a session to roc-core1
2016/04/19 13:01:19 SwitchUtils::OpenSnmpSession: trying to open an SNMP session to roc-core1
2016/04/19 13:01:19 SwitchUtils::OpenSnmpSession: SNMPv3 session open, testing a GET of the sysObjectId
2016/04/19 13:01:19 SwitchUtils::GetOneOidValue: called to fetch sysObjectID from roc-core1
2016/04/19 13:01:19 SwitchUtils::GetOneOidValue: returning "1.3.6.1.4.1.9.12.3.1.3.932"
2016/04/19 13:01:19 SwitchUtils::OpenSnmpSession: SNMPv3 GET succeeded, valid SNMP session opened
2016/04/19 13:01:19 SwitchUtils::OpenSnmpSession: returning SUCCESS, sysObjectID = 1.3.6.1.4.1.9.12.3.1.3.932
2016/04/19 13:01:19 main::doOneSwitch: called to process roc-core1
2016/04/19 13:01:19 Timer:🆕 called
2016/04/19 13:01:19 Timer:🆕 returning
2016/04/19 13:01:19 SwitchUtils::GetNameTables: called
2016/04/19 13:01:19 SwitchUtils::GetNameTables: getting interface-to-name tables
2016/04/19 13:01:19 SwitchUtils::GetSnmpTable: called, getting ifName table...
2016/04/19 13:01:19 Timer:🆕 called
2016/04/19 13:01:19 Timer:🆕 returning
2016/04/19 13:01:29 SwitchUtils::GetSnmpTable: Couldn't get ifName table: No response from remote host "roc-core1", SNMP error status: 0, SNMP error index: 85
2016/04/19 13:01:29 Timer::stop: called
2016/04/19 13:01:29 Timer::stop: returning
2016/04/19 13:01:29 SwitchUtils::GetSnmpTable: returning failure
2016/04/19 13:01:29 SwitchUtils::GetNameTables: returning failure
2016/04/19 13:01:29 main::doOneSwitch: roc-core1: couldn't get the ifName table, skipping
2016/04/19 13:01:29 Timer::stop: called
2016/04/19 13:01:29 Timer::stop: returning
2016/04/19 13:01:29 main::doOneSwitch: returning
2016/04/19 13:01:29 Timer::stop: called
2016/04/19 13:01:29 Timer::stop: returning
2016/04/19 13:01:29 main::doSwitches: returning
2016/04/19 13:01:29 Timer::stop: called
2016/04/19 13:01:29 Timer::stop: returning
2016/04/19 13:01:29 main::: exiting normally...
after investigating I found that get_table(snmpbulkget) was failing because the n7k device wasn't returning any results when max_repetitions was bigger than a value of 48 (which appears to produce a packet size of 1515). Out network can handle larger packet sizes but not sure at this point why the n7k won't respond. As a work around/fix I changed the -maxmsgsize values in SwitchUtils.pm to a smaller value which in turn reduced the max_repetitions value being passed in the snmpbulkget calls.