Menu

GetArp.pl First Run Problem

Emrys
2019-06-28
2019-07-01
  • Emrys

    Emrys - 2019-06-28

    I'm standing up a new instance of SwitchMap 14.0 (replacing our old 13.1 instance) and am running into a problem with the initial run of GetArp.pl (full debug below). I've verified permissions on the $DestinationDirectory and $StateFileDirectory, and I'm a bit stumped. Can anyone point me in the right direction?

    2019/06/28 15:06:05 main::: GetArp version 14.0 starting...
    2019/06/28 15:06:05   Timer::new: called
    2019/06/28 15:06:05   Timer::new: returning
    2019/06/28 15:06:05   SnmpCommunities::initialize: called
    2019/06/28 15:06:05   SnmpCommunities::initialize: got 1 SNMP community strings
    2019/06/28 15:06:05   SnmpCommunities::initialize: returning
    2019/06/28 15:06:05   main::readMacListFile: called
    2019/06/28 15:06:05   main::readMacListFile: Couldn't open /var/local/switchmap/MacList for reading. returning
    2019/06/28 15:06:05     Timer::new: called
    2019/06/28 15:06:05     Timer::new: returning
    2019/06/28 15:06:05   main::getMacTables: getting ARP table from XXX.XXX.XXX.XXX...
    2019/06/28 15:06:05     Timer::new: called
    2019/06/28 15:06:05     Timer::new: returning
    2019/06/28 15:06:05     SwitchUtils::OpenSnmpSession: called to open a session to XXX.XXX.XXX.XXX
    2019/06/28 15:06:05     SwitchUtils::OpenSnmpSession: trying to open an SNMP session to XXX.XXX.XXX.XXX
    2019/06/28 15:06:05       SnmpCommunities::GetCommunities: called, DeviceName = "XXX.XXX.XXX.XXX"
    2019/06/28 15:06:05         SnmpCommunities::PutCachedCommunityFirst: called
    2019/06/28 15:06:05           SnmpCommunities::ReadCommunityFromCacheFile: ReadCommunityFromCache: called
    2019/06/28 15:06:05           SnmpCommunities::ReadCommunityFromCacheFile: no entry for XXX.XXX.XXX.XXX yet
    2019/06/28 15:06:05           SnmpCommunities::ReadCommunityFromCacheFile: ReadCommunityFromCache: returning
    2019/06/28 15:06:05         SnmpCommunities::PutCachedCommunityFirst: returning
    2019/06/28 15:06:05     SwitchUtils::OpenSnmpSession: trying community = "cherub"
    2019/06/28 15:06:05     SwitchUtils::OpenSnmpSession: SNMPv2 session open, testing a GET of the sysObjectId
    2019/06/28 15:06:05       SwitchUtils::GetOneOidValue: called to fetch sysObjectID from XXX.XXX.XXX.XXX
    2019/06/28 15:06:05       SwitchUtils::GetOneOidValue: returning "1.3.6.1.4.1.9.1.283"
    2019/06/28 15:06:05     SwitchUtils::OpenSnmpSession: SNMPv2 GET succeeded, valid SNMP session opened
    2019/06/28 15:06:05       SnmpCommunities::WriteCommunityToCacheFile: Couldn't create /var/local/switchmap/community, No such file or directory
    

    Thanks!

     
    • Pete Siemsen

      Pete Siemsen - 2019-07-01

      Glad you got it resolved. I started to compose a response, then saw that
      you'd fixed it. Please let me know how it goes.

      On Fri, Jun 28, 2019 at 9:15 AM Emrys Koenigsmann emrys767@users.sourceforge.net wrote:

      I'm standing up a new instance of SwitchMap 14.0 (replacing our old 13.1
      instance) and am running into a problem with the initial run of GetArp.pl
      (full debug below). I've verified permissions on the $DestinationDirectory
      and $StateFileDirectory, and I'm a bit stumped. Can anyone point me in the
      right direction?

      2019/06/28 15:06:05 main::: GetArp version 14.0 starting...
      2019/06/28 15:06:05 Timer:🆕 called
      2019/06/28 15:06:05 Timer:🆕 returning
      2019/06/28 15:06:05 SnmpCommunities::initialize: called
      2019/06/28 15:06:05 SnmpCommunities::initialize: got 1 SNMP community strings
      2019/06/28 15:06:05 SnmpCommunities::initialize: returning
      2019/06/28 15:06:05 main::readMacListFile: called
      2019/06/28 15:06:05 main::readMacListFile: Couldn't open /var/local/switchmap/MacList for reading. returning
      2019/06/28 15:06:05 Timer:🆕 called
      2019/06/28 15:06:05 Timer:🆕 returning
      2019/06/28 15:06:05 main::getMacTables: getting ARP table from XXX.XXX.XXX.XXX...
      2019/06/28 15:06:05 Timer:🆕 called
      2019/06/28 15:06:05 Timer:🆕 returning
      2019/06/28 15:06:05 SwitchUtils::OpenSnmpSession: called to open a session to XXX.XXX.XXX.XXX
      2019/06/28 15:06:05 SwitchUtils::OpenSnmpSession: trying to open an SNMP session to XXX.XXX.XXX.XXX
      2019/06/28 15:06:05 SnmpCommunities::GetCommunities: called, DeviceName = "XXX.XXX.XXX.XXX"
      2019/06/28 15:06:05 SnmpCommunities::PutCachedCommunityFirst: called
      2019/06/28 15:06:05 SnmpCommunities::ReadCommunityFromCacheFile: ReadCommunityFromCache: called
      2019/06/28 15:06:05 SnmpCommunities::ReadCommunityFromCacheFile: no entry for XXX.XXX.XXX.XXX yet
      2019/06/28 15:06:05 SnmpCommunities::ReadCommunityFromCacheFile: ReadCommunityFromCache: returning
      2019/06/28 15:06:05 SnmpCommunities::PutCachedCommunityFirst: returning
      2019/06/28 15:06:05 SwitchUtils::OpenSnmpSession: trying community = "cherub"
      2019/06/28 15:06:05 SwitchUtils::OpenSnmpSession: SNMPv2 session open, testing a GET of the sysObjectId
      2019/06/28 15:06:05 SwitchUtils::GetOneOidValue: called to fetch sysObjectID from XXX.XXX.XXX.XXX
      2019/06/28 15:06:05 SwitchUtils::GetOneOidValue: returning "1.3.6.1.4.1.9.1.283"
      2019/06/28 15:06:05 SwitchUtils::OpenSnmpSession: SNMPv2 GET succeeded, valid SNMP session opened
      2019/06/28 15:06:05 SnmpCommunities::WriteCommunityToCacheFile: Couldn't create /var/local/switchmap/community, No such file or directory

      Thanks!

      GetArp.pl First Run Problem
      https://sourceforge.net/p/switchmap/discussion/378009/thread/6adc5de91e/?limit=25#58f7


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/switchmap/discussion/378009/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       
  • Emrys

    Emrys - 2019-07-01

    This is resolved. I found that I had a typo in the $StateFileDirectory in ThisSite.pm.

     

Log in to post a comment.