Menu

Only intstatus.txt populating

Help
Eric Day
2020-11-10
2020-11-10
  • Eric Day

    Eric Day - 2020-11-10

    I am using RHEL 7 and had some issues with getting File::Flock.pm working and had to change the IO::SOCKET::INET6 to INET. flock.pm was found in IO::LockedFile::Flock so I updated NetDBHelper.PM accordingly:
    use IO::LockedFile::Flock;

    So with that, it appears I am able to connect to my 4 devices now (Pair of Nexus 9k's and pair of Nexus 5k's).

    I've turned on full debug for nxosscraper and it appears to be pulling the arp table, mac table, and so forth but only the intstatus.txt file is being populated with data. I am have the netdb_user set to my user on the system which has elevated/sudo access

    |DEBUG|: Trunk: Found trunk port from int status: lex-n9k-a Eth103/1/19
    |DEBUG|: Trunk: Found trunk port from int status: lex-n9k-a Eth103/1/20
    nxosscraper.pl(7529): Writing Data to Disk on lex-n9k-a
    PID(7529): |LOCK| /opt/netdb/data/intstatus.txt
    Undefined subroutine &NetDBHelper::unlock called at /usr/share/perl5/NetDBHelper.pm line 307.
    [root@NET01 netdbscraper]# cd ..
    [root@NET01 netdb]# cd data
    [root@NET01 data]# ls -al
    total 3312
    drwxr-xr-x 3 ericday root 256 Nov 10 15:02 .
    drwxr-xr-x 10 ericday root 4096 Nov 10 14:56 ..
    -rw-r--r-- 1 root root 53 Nov 10 15:02 arptable.txt
    -rw-r--r-- 1 ericday root 127 Nov 10 15:02 devicelist.csv
    -rw-r--r-- 1 root root 68370 Nov 10 15:11 intstatus.txt
    -rw-r--r-- 1 root root 63 Nov 10 15:02 ipv6nt.csv
    -rw-r--r-- 1 root root 99 Nov 10 15:02 mactable.txt
    -rw-r--r-- 1 root root 91 Nov 10 15:02 nd.csv
    -rw-r--r-- 1 root root 53 Nov 10 15:02 newarptable.txt
    -rw-r--r-- 1 root root 24758 Nov 10 15:02 newintstatus.txt
    -rw-r--r-- 1 root root 63 Nov 10 15:02 newipv6nt.csv
    -rw-r--r-- 1 root root 99 Nov 10 15:02 newmactable.txt
    -rw-r--r-- 1 root root 91 Nov 10 15:02 newnd.csv
    -rw-r--r-- 1 ericday users 3248879 Nov 10 14:47 oui.txt
    drwxr-xr-x 6 ericday root 79 May 20 2015 .svn

     
  • Eric Day

    Eric Day - 2020-11-10

    Beyond that, the web portion is now good and as shown it is pulling data... Just having scraper issues with getting the data, and part of me still feels like it is related to FLOCK since the data is shown (ARP and MAC info) during debug. But then again, the intstatus.txt has no issues:

     

Log in to post a comment.