Trouble with cisco switches PORT.CFG is empty

edited September 14 in LAN
Hi

I have empty PORT.CFG file after execute load_lanperf.sh.

~/stor2rrd/etc$ snmpwalk -v 2c -c rea 192.168.147.104 1.3.6.1.2.1.1.5

iso.3.6.1.2.1.1.5.0 = STRING: "A1-LOWER-2960G"


~/stor2rrd/logs$ tail -40 error.log

Sat Sep 14 22:23:03 2019: Could not find ports for A1-LOWER-2960G in /home/lpar2rrd/stor2rrd/data/A1-LOWER-2960G/PORTS.cfg /home/lpar2rrd/stor2rrd/bin/lan.pl:596 :

no ports - no data (
STOR2RRD 2.52 Docker


Comments

  • Hi,

    can you try the following commands? Send us the outputs, thanks.
        
    snmpwalk -v 2c -c rea 192.168.147.104 1.3.6.1.2.1.31.1.1.1.1
    snmpwalk -v 2c -c rea 192.168.147.104 1.3.6.1.2.1.31.1.1.1.10


  • Hi ! 
    lpar2rrd@fdf115420051:~/stor2rrd$ snmpwalk -v 2c -c rea 192.168.147.104 1.3.6.1.2.1.31.1.1.1.1
    iso.3.6.1.2.1.31.1.1.1.1.1 = STRING: "Vl1"
    iso.3.6.1.2.1.31.1.1.1.1.5 = STRING: "Vl5"
    iso.3.6.1.2.1.31.1.1.1.1.5001 = STRING: "Po1"
    iso.3.6.1.2.1.31.1.1.1.1.5005 = STRING: "Po5"
    iso.3.6.1.2.1.31.1.1.1.1.5006 = STRING: "Po6"
    iso.3.6.1.2.1.31.1.1.1.1.10101 = STRING: "Gi0/1"
    iso.3.6.1.2.1.31.1.1.1.1.10102 = STRING: "Gi0/2"
    iso.3.6.1.2.1.31.1.1.1.1.10103 = STRING: "Gi0/3"
    iso.3.6.1.2.1.31.1.1.1.1.10104 = STRING: "Gi0/4"
    iso.3.6.1.2.1.31.1.1.1.1.10105 = STRING: "Gi0/5"
    iso.3.6.1.2.1.31.1.1.1.1.10106 = STRING: "Gi0/6"
    iso.3.6.1.2.1.31.1.1.1.1.10107 = STRING: "Gi0/7"
    iso.3.6.1.2.1.31.1.1.1.1.10108 = STRING: "Gi0/8"
    iso.3.6.1.2.1.31.1.1.1.1.10109 = STRING: "Gi0/9"
    iso.3.6.1.2.1.31.1.1.1.1.10110 = STRING: "Gi0/10"
    iso.3.6.1.2.1.31.1.1.1.1.10111 = STRING: "Gi0/11"
    iso.3.6.1.2.1.31.1.1.1.1.10112 = STRING: "Gi0/12"
    iso.3.6.1.2.1.31.1.1.1.1.10113 = STRING: "Gi0/13"
    iso.3.6.1.2.1.31.1.1.1.1.10114 = STRING: "Gi0/14"
    iso.3.6.1.2.1.31.1.1.1.1.10115 = STRING: "Gi0/15"
    iso.3.6.1.2.1.31.1.1.1.1.10116 = STRING: "Gi0/16"
    iso.3.6.1.2.1.31.1.1.1.1.10117 = STRING: "Gi0/17"
    iso.3.6.1.2.1.31.1.1.1.1.10118 = STRING: "Gi0/18"
    iso.3.6.1.2.1.31.1.1.1.1.10119 = STRING: "Gi0/19"
    iso.3.6.1.2.1.31.1.1.1.1.10120 = STRING: "Gi0/20"
    iso.3.6.1.2.1.31.1.1.1.1.10121 = STRING: "Gi0/21"
    iso.3.6.1.2.1.31.1.1.1.1.10122 = STRING: "Gi0/22"
    iso.3.6.1.2.1.31.1.1.1.1.10123 = STRING: "Gi0/23"
    iso.3.6.1.2.1.31.1.1.1.1.10124 = STRING: "Gi0/24"
    iso.3.6.1.2.1.31.1.1.1.1.10125 = STRING: "Gi0/25"
    iso.3.6.1.2.1.31.1.1.1.1.10126 = STRING: "Gi0/26"
    iso.3.6.1.2.1.31.1.1.1.1.14001 = STRING: "Nu0"
    iso.3.6.1.2.1.31.1.1.1.1.14002 = STRING: "Fa0"


    lpar2rrd@fdf115420051:~/stor2rrd$ snmpwalk -v 2c -c rea 192.168.147.104 1.3.6.1.2.1.31.1.1.1.10
    iso.3.6.1.2.1.31.1.1.1.10.1 = Counter64: 0
    iso.3.6.1.2.1.31.1.1.1.10.5 = Counter64: 195093
    iso.3.6.1.2.1.31.1.1.1.10.5001 = Counter64: 6544066
    iso.3.6.1.2.1.31.1.1.1.10.5005 = Counter64: 0
    iso.3.6.1.2.1.31.1.1.1.10.5006 = Counter64: 270453201
    iso.3.6.1.2.1.31.1.1.1.10.10101 = Counter64: 6385244
    iso.3.6.1.2.1.31.1.1.1.10.10102 = Counter64: 264069621
    iso.3.6.1.2.1.31.1.1.1.10.10103 = Counter64: 183881217
    iso.3.6.1.2.1.31.1.1.1.10.10104 = Counter64: 183187055
    iso.3.6.1.2.1.31.1.1.1.10.10105 = Counter64: 17684205
    iso.3.6.1.2.1.31.1.1.1.10.10106 = Counter64: 17683703
    iso.3.6.1.2.1.31.1.1.1.10.10107 = Counter64: 227343539
    iso.3.6.1.2.1.31.1.1.1.10.10108 = Counter64: 227854034
    iso.3.6.1.2.1.31.1.1.1.10.10109 = Counter64: 231401401
    iso.3.6.1.2.1.31.1.1.1.10.10110 = Counter64: 223262989
    iso.3.6.1.2.1.31.1.1.1.10.10111 = Counter64: 222540817
    iso.3.6.1.2.1.31.1.1.1.10.10112 = Counter64: 223486324
    iso.3.6.1.2.1.31.1.1.1.10.10113 = Counter64: 340619
    iso.3.6.1.2.1.31.1.1.1.10.10114 = Counter64: 339357
    iso.3.6.1.2.1.31.1.1.1.10.10115 = Counter64: 342996
    iso.3.6.1.2.1.31.1.1.1.10.10116 = Counter64: 342039
    iso.3.6.1.2.1.31.1.1.1.10.10117 = Counter64: 342587
    iso.3.6.1.2.1.31.1.1.1.10.10118 = Counter64: 346679
    iso.3.6.1.2.1.31.1.1.1.10.10119 = Counter64: 6544706
    iso.3.6.1.2.1.31.1.1.1.10.10120 = Counter64: 24064
    iso.3.6.1.2.1.31.1.1.1.10.10121 = Counter64: 0
    iso.3.6.1.2.1.31.1.1.1.10.10122 = Counter64: 0
    iso.3.6.1.2.1.31.1.1.1.10.10123 = Counter64: 0
    iso.3.6.1.2.1.31.1.1.1.10.10124 = Counter64: 0
    iso.3.6.1.2.1.31.1.1.1.10.10125 = Counter64: 0
    iso.3.6.1.2.1.31.1.1.1.10.10126 = Counter64: 0
    iso.3.6.1.2.1.31.1.1.1.10.14002 = Counter64: 0


  • Hi,

    this one yet pls.

    snmpwalk -v 2c -c rea 192.168.147.104 1.3.6.1.2.1.2.2.1.3


  • lpar2rrd@fdf115420051:~/stor2rrd$ snmpwalk -v 2c -c rea 192.168.147.104 1.3.6.1.2.1.2.2.1.3
    iso.3.6.1.2.1.2.2.1.3.1 = INTEGER: 53
    iso.3.6.1.2.1.2.2.1.3.5 = INTEGER: 53
    iso.3.6.1.2.1.2.2.1.3.5001 = INTEGER: 53
    iso.3.6.1.2.1.2.2.1.3.5005 = INTEGER: 53
    iso.3.6.1.2.1.2.2.1.3.5006 = INTEGER: 53
    iso.3.6.1.2.1.2.2.1.3.10101 = INTEGER: 6
    iso.3.6.1.2.1.2.2.1.3.10102 = INTEGER: 6
    iso.3.6.1.2.1.2.2.1.3.10103 = INTEGER: 6
    iso.3.6.1.2.1.2.2.1.3.10104 = INTEGER: 6
    iso.3.6.1.2.1.2.2.1.3.10105 = INTEGER: 6
    iso.3.6.1.2.1.2.2.1.3.10106 = INTEGER: 6
    iso.3.6.1.2.1.2.2.1.3.10107 = INTEGER: 6
    iso.3.6.1.2.1.2.2.1.3.10108 = INTEGER: 6
    iso.3.6.1.2.1.2.2.1.3.10109 = INTEGER: 6
    iso.3.6.1.2.1.2.2.1.3.10110 = INTEGER: 6
    iso.3.6.1.2.1.2.2.1.3.10111 = INTEGER: 6
    iso.3.6.1.2.1.2.2.1.3.10112 = INTEGER: 6
    iso.3.6.1.2.1.2.2.1.3.10113 = INTEGER: 6
    iso.3.6.1.2.1.2.2.1.3.10114 = INTEGER: 6
    iso.3.6.1.2.1.2.2.1.3.10115 = INTEGER: 6
    iso.3.6.1.2.1.2.2.1.3.10116 = INTEGER: 6
    iso.3.6.1.2.1.2.2.1.3.10117 = INTEGER: 6
    iso.3.6.1.2.1.2.2.1.3.10118 = INTEGER: 6
    iso.3.6.1.2.1.2.2.1.3.10119 = INTEGER: 6
    iso.3.6.1.2.1.2.2.1.3.10120 = INTEGER: 6
    iso.3.6.1.2.1.2.2.1.3.10121 = INTEGER: 6
    iso.3.6.1.2.1.2.2.1.3.10122 = INTEGER: 6
    iso.3.6.1.2.1.2.2.1.3.10123 = INTEGER: 6
    iso.3.6.1.2.1.2.2.1.3.10124 = INTEGER: 6
    iso.3.6.1.2.1.2.2.1.3.10125 = INTEGER: 6
    iso.3.6.1.2.1.2.2.1.3.10126 = INTEGER: 6
    iso.3.6.1.2.1.2.2.1.3.14001 = INTEGER: 1
    iso.3.6.1.2.1.2.2.1.3.14002 = INTEGER: 6

  • Hi,

    we would need more information. Deploy this file and follow steps below, thanks.

    Gunzip it and copy to /home/stor2rrd/stor2rrd/bin (755, stor2rrd owner)
    -rwxr-xr-x 1 stor2rrd stor2rrd 54046 Aug 19 08:12 lanperf.pl
    If your web browser gunzips it automatically then just rename it: mv lanperf.pl.gz lanperf.pl
    NOTE: Use lpar2rrd user instead of stor2rrd if you are using our Virtual Appliance

    1. enable LAN debugging
    Just add line "export LAN_DEBUG=1" to etc/.magic
    cd /home/stor2rrd/stor2rrd # or where is your STOR2RRD working dir
    echo "export export LAN_DEBUG=1" >>  etc/.magic

    2. let it work about 20 minutes
    3. after then send us logs
    Note a short problem description in the text field of the upload form.
    cd /home/stor2rrd/stor2rrd # or where is your STOR2RRD working dir
    tar cvhf logs.tar logs tmp/*txt
    gzip -9 logs.tar
    Send us logs.tar.gz via https://upload.stor2rrd.com

    4. disable LAN debugging
    Remove line described in the first step from etc/.magic

  • Thx. for you help i sent logs.
  • Hi,

    can you try this file as a fix?

    Gunzip it and copy to /home/stor2rrd/stor2rrd/bin (755, stor2rrd owner)
    -rwxr-xr-x 1 stor2rrd stor2rrd 54062 Sep 16 13:52 lanperf.pl
    If your web browser gunzips it automatically then just rename it: mv lanperf.pl.gz lanperf.pl
    NOTE: Use lpar2rrd user instead of stor2rrd if you are using our Virtual Appliance

    Wait about 30 minutes after deploying that file.
    Let us know, thanks.
  • It's better, but I see not all ports.
    Some ports does not exist in PORT.CFG file. By example 3, 4, 5, 6
    lpar2rrd@fdf115420051:~/stor2rrd$ cat ./data/A1-LOWER-2960G/PORTS.cfg
    Gi0-1 : Gi0-1.rrd : Campus_Core : physical :
    Gi0-2 : Gi0-2.rrd : Campus_Core : physical :
    Gi0-7 : Gi0-7.rrd : trunk for esx : physical :
    Gi0-8 : Gi0-8.rrd : trunk for esx : physical :
    Gi0-9 : Gi0-9.rrd : trunk for esx : physical :
    Gi0-11 : Gi0-11.rrd : trunk for esx : physical :
    Gi0-13 : Gi0-13.rrd : vlan 5 : physical :
    Gi0-14 : Gi0-14.rrd : vlan 5 : physical :
    Gi0-15 : Gi0-15.rrd : vlan 5 : physical :
    Gi0-16 : Gi0-16.rrd : vlan 5 : physical :
    Gi0-17 : Gi0-17.rrd : vlan 5 : physical :
    Gi0-18 : Gi0-18.rrd : vlan 5 : physical :
    Gi0-19 : Gi0-19.rrd : Oracle trunk : physical :
    Gi0-20 : Gi0-20.rrd : Oracle trunk : physical :
    lpar2rrd@fdf115420051:~/stor2rrd$


    Data folder contains more files, but not for all ports.

    lpar2rrd@fdf115420051:~/stor2rrd$ ls -al ./data/A1-LOWER-2960G/
    total 33896
    drwxr-xr-x. 2 lpar2rrd lpar2rrd    4096 Sep 16 15:30 .
    drwxr-xr-x. 9 lpar2rrd lpar2rrd     127 Sep 15 13:17 ..
    -rw-r--r--. 1 lpar2rrd lpar2rrd  265640 Sep 16 15:25 1.lcd
    -rw-r--r--. 1 lpar2rrd lpar2rrd   19391 Sep 16 14:25 A1-LOWER-2960G_lanconf_20190916_1425.out.tmp
    -rw-r--r--. 1 lpar2rrd lpar2rrd   24465 Sep 16 15:30 A1-LOWER-2960G_lanconf_20190916_1530.out.tmp
    -rw-r--r--. 1 lpar2rrd lpar2rrd    2750 Sep 16 15:30 A1-LOWER-2960G_lanperf_20190916_1530.out.tmp
    -rw-r--r--. 1 lpar2rrd lpar2rrd  265640 Sep 16 15:25 Driver_text.lmd
    -rw-r--r--. 1 lpar2rrd lpar2rrd       2 Sep 16 15:30 GROUP.cfg
    -rw-r--r--. 1 lpar2rrd lpar2rrd     108 Sep 16 15:25 Gi0-1-last-stats.txt
    -rw-r--r--. 1 lpar2rrd lpar2rrd 1590560 Sep 16 15:25 Gi0-1.rrd
    -rw-r--r--. 1 lpar2rrd lpar2rrd      92 Sep 16 15:25 Gi0-10-last-stats.txt
    -rw-r--r--. 1 lpar2rrd lpar2rrd 1590560 Sep 16 15:25 Gi0-10.rrd
    -rw-r--r--. 1 lpar2rrd lpar2rrd      98 Sep 16 15:25 Gi0-11-last-stats.txt
    -rw-r--r--. 1 lpar2rrd lpar2rrd 1590560 Sep 16 15:25 Gi0-11.rrd
    -rw-r--r--. 1 lpar2rrd lpar2rrd      92 Sep 16 15:25 Gi0-12-last-stats.txt
    -rw-r--r--. 1 lpar2rrd lpar2rrd 1590560 Sep 16 15:25 Gi0-12.rrd
    -rw-r--r--. 1 lpar2rrd lpar2rrd      91 Sep 16 15:25 Gi0-13-last-stats.txt
    -rw-r--r--. 1 lpar2rrd lpar2rrd 1590560 Sep 16 15:25 Gi0-13.rrd
    -rw-r--r--. 1 lpar2rrd lpar2rrd      94 Sep 16 15:25 Gi0-14-last-stats.txt
    -rw-r--r--. 1 lpar2rrd lpar2rrd 1590560 Sep 16 15:25 Gi0-14.rrd
    -rw-r--r--. 1 lpar2rrd lpar2rrd      94 Sep 16 15:25 Gi0-15-last-stats.txt
    -rw-r--r--. 1 lpar2rrd lpar2rrd 1590560 Sep 16 15:25 Gi0-15.rrd
    -rw-r--r--. 1 lpar2rrd lpar2rrd      94 Sep 16 15:25 Gi0-16-last-stats.txt
    -rw-r--r--. 1 lpar2rrd lpar2rrd 1590560 Sep 16 15:25 Gi0-16.rrd
    -rw-r--r--. 1 lpar2rrd lpar2rrd      94 Sep 16 15:25 Gi0-17-last-stats.txt
    -rw-r--r--. 1 lpar2rrd lpar2rrd 1590560 Sep 16 15:25 Gi0-17.rrd
    -rw-r--r--. 1 lpar2rrd lpar2rrd      94 Sep 16 15:25 Gi0-18-last-stats.txt
    -rw-r--r--. 1 lpar2rrd lpar2rrd 1590560 Sep 16 15:25 Gi0-18.rrd
    -rw-r--r--. 1 lpar2rrd lpar2rrd      93 Sep 16 15:25 Gi0-19-last-stats.txt
    -rw-r--r--. 1 lpar2rrd lpar2rrd 1590560 Sep 16 15:25 Gi0-19.rrd
    -rw-r--r--. 1 lpar2rrd lpar2rrd     109 Sep 16 15:25 Gi0-2-last-stats.txt
    -rw-r--r--. 1 lpar2rrd lpar2rrd 1590560 Sep 16 15:25 Gi0-2.rrd
    -rw-r--r--. 1 lpar2rrd lpar2rrd      90 Sep 16 15:25 Gi0-20-last-stats.txt
    -rw-r--r--. 1 lpar2rrd lpar2rrd 1590560 Sep 16 15:25 Gi0-20.rrd
    -rw-r--r--. 1 lpar2rrd lpar2rrd      92 Sep 16 15:25 Gi0-3-last-stats.txt
    -rw-r--r--. 1 lpar2rrd lpar2rrd 1590560 Sep 16 15:25 Gi0-3.rrd
    -rw-r--r--. 1 lpar2rrd lpar2rrd      92 Sep 16 15:25 Gi0-4-last-stats.txt
    -rw-r--r--. 1 lpar2rrd lpar2rrd 1590560 Sep 16 15:25 Gi0-4.rrd
    -rw-r--r--. 1 lpar2rrd lpar2rrd      90 Sep 16 15:25 Gi0-5-last-stats.txt
    -rw-r--r--. 1 lpar2rrd lpar2rrd 1590560 Sep 16 15:25 Gi0-5.rrd
    -rw-r--r--. 1 lpar2rrd lpar2rrd      90 Sep 16 15:25 Gi0-6-last-stats.txt
    -rw-r--r--. 1 lpar2rrd lpar2rrd 1590560 Sep 16 15:25 Gi0-6.rrd
    -rw-r--r--. 1 lpar2rrd lpar2rrd     107 Sep 16 15:25 Gi0-7-last-stats.txt
    -rw-r--r--. 1 lpar2rrd lpar2rrd 1590560 Sep 16 15:25 Gi0-7.rrd
    -rw-r--r--. 1 lpar2rrd lpar2rrd     109 Sep 16 15:25 Gi0-8-last-stats.txt
    -rw-r--r--. 1 lpar2rrd lpar2rrd 1590560 Sep 16 15:25 Gi0-8.rrd
    -rw-r--r--. 1 lpar2rrd lpar2rrd     109 Sep 16 15:25 Gi0-9-last-stats.txt
    -rw-r--r--. 1 lpar2rrd lpar2rrd 1590560 Sep 16 15:25 Gi0-9.rrd
    -rw-r--r--. 1 lpar2rrd lpar2rrd     432 Sep 16 15:30 HEALTH_STATUS.txt
    -rw-r--r--. 1 lpar2rrd lpar2rrd  265640 Sep 16 15:25 IO.lmd
    -rw-r--r--. 1 lpar2rrd lpar2rrd       0 Sep 15 13:17 LAN-CISCO
    -rw-r--r--. 1 lpar2rrd lpar2rrd     642 Sep 16 15:30 PORTS.cfg
    -rw-r--r--. 1 lpar2rrd lpar2rrd  265640 Sep 16 15:25 Processor.lmd
    -rw-r--r--. 1 lpar2rrd lpar2rrd   24465 Sep 16 15:30 config.cfg
    -rw-r--r--. 1 lpar2rrd lpar2rrd      10 Sep 16 15:25 last_rec
    -rw-r--r--. 1 lpar2rrd lpar2rrd      38 Sep 16 15:25 total_summary-last-update
    -rw-r--r--. 1 lpar2rrd lpar2rrd      10 Sep 16 15:08 total_summary.first
    -rw-r--r--. 1 lpar2rrd lpar2rrd 1590560 Sep 16 15:25 total_summary.rrs



  • Hi,

    it looks like the missing ports are unused.
    If data counter we use is 0 for some port, then we filter out this port.

    It depends on these statistics (ifHCOutOctets, ifHCInOctets):

    snmpwalk -v 2c -c rea 192.168.147.104 1.3.6.1.2.1.31.1.1.1.10
    snmpwalk -v 2c -c rea 192.168.147.104 1.3.6.1.2.1.31.1.1.1.6


  • Ok. I understeand you logic. Really, missing port is up (have "admin_status=up" in config.cfg) and used in portchannel, but now have no traffic. Is it possible to display all up ports or all ports?
  • Hi,

    we do not keep and present data for ports where has never been any traffic.
    It is usless for us just insert zeros into the database, occupy space, processing it, it is just wastiong of resources. There could be thousads of such ports in big environments.
  • Thank you for helpfull. I understeand you concept. All work fine. Wish you all success!!!

    p.s.
    Maybe zeros in next versions do not requared many space )))


  • we have to pre-allocate same space for each port we collect data, does not matter when there are some number or zeros, occupied space is alwas the same for each port
Sign In or Register to comment.