Skip to content
Snippets Groups Projects
  1. Oct 07, 2024
  2. Sep 08, 2024
  3. Sep 01, 2024
  4. Jul 31, 2024
    • Markus Gothe's avatar
      net-snmp: Add pipe_cmd() · 510e31b8
      Markus Gothe authored
      Remove references to deprecated 'questd'.
      510e31b8
    • Lwithwma Brahma's avatar
      R#29252 IPTV Multicast transport stream analysis · e201831f
      Lwithwma Brahma authored and Markus Gothe's avatar Markus Gothe committed
      Adds iptables-mod-mpeg2ts package.
      
      Change-Id: I7256fa201534cfe5176cb8c6130895ac438236a2
      e201831f
    • Markus Gothe's avatar
      net-snmp: Use portorder.sh · b26c2c71
      Markus Gothe authored
      b26c2c71
    • Markus Gothe's avatar
      net-snmp: Fixes for GenXOS 12 · a51b893c
      Markus Gothe authored
      Change-Id: Ie6154caddf47d627e040da99f2de184b4c536330
      a51b893c
    • Erik Karlsson's avatar
      RM#34349 - Merge iopsys-6.4.0BETA2 · 8c7b01c0
      Erik Karlsson authored and Markus Gothe's avatar Markus Gothe committed
      Do not use hw.board.ethernetPorts for SNMP as this option has been
      deprecated. Count the ports in hw.board.ethernetPortOrder instead. Add
      checks to avoid overflowing g_port_map or port_name in case
      hw.board.ethernetPortOrder would contain too many ports or too long
      port names.
      
      Change-Id: I471f8a0f8f35ff79ea0740c01ef54b1bc04cb3c4
      8c7b01c0
    • Mohd Husaam Mehdi's avatar
      Remove ports UCI usage from SNMP · ea09bd7e
      Mohd Husaam Mehdi authored and Markus Gothe's avatar Markus Gothe committed
      Modify BRIDGE-MIB module to use db instead.
      
      Change-Id: Ie7e81e3ede9fe39b56eff0ade1ff4262ba957e12
      ea09bd7e
    • Lwithwma Brahma's avatar
      R#36035 SNMP : ifPhysAddress returns wrong format data · f0ee1269
      Lwithwma Brahma authored and Markus Gothe's avatar Markus Gothe committed
      Fix issue of ifPhysAddress wrong format data, base on RFC1213 : type of PhysAddress is OCTET string
      
      Testing:
      root@D_wan_136_1:~# snmpwalk -v 2c -c public 192.168.1.1 .1.3.6.1.2.1.2.2.1.6
      iso.3.6.1.2.1.2.2.1.6.1 = Hex-STRING: 02 10 18 01 BB 02
      iso.3.6.1.2.1.2.2.1.6.2 = Hex-STRING: 02 10 18 01 BB 02
      iso.3.6.1.2.1.2.2.1.6.3 = Hex-STRING: 02 10 18 01 BB 02
      iso.3.6.1.2.1.2.2.1.6.4 = Hex-STRING: 02 10 18 01 BB 02
      iso.3.6.1.2.1.2.2.1.6.5 = ""
      iso.3.6.1.2.1.2.2.1.6.6 = Hex-STRING: 02 10 18 01 BB 03
      
      Change-Id: I189d86a0ed4707cfab08fd7f00c6184aae6ab7d6
      f0ee1269
    • Pragati Pandey's avatar
      R#38802 - Failed to upgrade image using tftp via SNMP on XGX-L3 device · 6a0964ad
      Pragati Pandey authored and Markus Gothe's avatar Markus Gothe committed
      No of retries have been increased to ensure that download through
      tftp works
      
      Change-Id: I07556dd691aa204fedd827e413d15f288d32f527
      6a0964ad
    • Lwithwma Brahma's avatar
      R#31984 - SNMP upgrade via TFTP is not working · 9393be88
      Lwithwma Brahma authored and Markus Gothe's avatar Markus Gothe committed
      Changed the rule of firewall to allow TFTP traffic before downloding the image and delete rule after download is complete.
      
      Test:
      -SNMP upgrade image via TFTP
      -Image upgrade using autotest 'pure/snmp/SnmpUpgrade.py'
      
      Change-Id: Iaeab1461087f5bd4fbbd9726cc9398f9a979c458
      9393be88
    • Surya  Pratap  Singh's avatar
      R#44670 - SNMP: snmpwalk of .1 abruptly terminates with genError after... · 3b2c6bf0
      Surya Pratap Singh authored and Markus Gothe's avatar Markus Gothe committed
      R#44670 - SNMP: snmpwalk of .1 abruptly terminates with genError after GENEXIS-INFO-MIB for products without CATV
      
      Fixed issue of snmpwalk failure if catv module is not present
      
      Change-Id: Ib063a30cab9eefc27fbe591ba29467cb2fe82150
      3b2c6bf0
    • Surya  Pratap  Singh's avatar
      R#44710 - SNMP: snmpwalk does not work if sysObjectID is not present · 0dca0685
      Surya Pratap Singh authored and Markus Gothe's avatar Markus Gothe committed
      Fixed snmpwalk error if sysObjectID is not present or
      system interface in snmpd config not present
      
      Change-Id: I42dad87b6f1fde6efb4a096fbe9960f7b459b65c
      0dca0685
    • Lwithwma Brahma's avatar
      R#42670 SNMP: 1.3.6.1.2.1.1.2.0 = (SysOID) · 7b1169af
      Lwithwma Brahma authored and Markus Gothe's avatar Markus Gothe committed
      OID 1.3.6.1.2.1.1.2.0  points to iso.3.6.1.4.1.25167.5.3.1.1.1.0
      
      Test Result:
      snmpget -v 2c -c public 172.25.115.100 iso.3.6.1.2.1.1.2.0
      iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.25167.5.3.1.1.1.0
      
      Related task:
      https://gerrit.genexislocal.nl:8443/c/feed_genexis_config/+/12380
      
      Change-Id: Idb5e3649e0e29237623a9ed241a1f5f3e08d3e44
      7b1169af
    • Mohd Husaam Mehdi's avatar
      R#33559 SNMP: Control LAN port ON/OFF status via MIB · 874f3404
      Mohd Husaam Mehdi authored and Markus Gothe's avatar Markus Gothe committed
      Adds logic to support setting ifAdminStatus to control port via SNMP.
      
      Change-Id: I2ebb89526c72f415147511d267db294c34dc2bfb
      874f3404
    • Lwithwma Brahma's avatar
      R#40312 Support for objects in system mib · b2521630
      Lwithwma Brahma authored and Markus Gothe's avatar Markus Gothe committed
      Following system object types are implemented:
      	-sysDescr
      	-sysName
      	-sysLocation
      	-sysContact
      
      Change-Id: I45435071a0276df636b174a194ebda4fd65e4e87
      b2521630
    • Lwithwma Brahma's avatar
      R#36053 Add SNMP helper/utility function implementation for setting uci values · d601f79b
      Lwithwma Brahma authored and Markus Gothe's avatar Markus Gothe committed
      Add new api to set option value of uci file.
      
      Change-Id: I9adb5f3dd7512f9874454fa88a69ec50a2124bbf
      d601f79b
    • Mohd Husaam Mehdi's avatar
      R38672 GENEXIS-INFO-MIB translation for productInfo is not working in SNMP · 8de64e23
      Mohd Husaam Mehdi authored and Markus Gothe's avatar Markus Gothe committed
      Changes productInfo objects OID from 3 to 1, so that translation is correct.
      
      Change-Id: I24918dbe61afb984eb17258e807177805687fb86
      8de64e23
    • Pragati Pandey's avatar
      R#35906 SNMP Extensions products · 1f4262b6
      Pragati Pandey authored and Markus Gothe's avatar Markus Gothe committed
      New snmp extensions have been created for product name, product serial no,
      firmware version and mac addressi
      
      Testing results:
      
      snmpwalk -v 2c -c public 172.25.115.102 1.3.6.1.4.1.25167.5.3
      iso.3.6.1.4.1.25167.5.3.1.1.1.0 = STRING: "FT-P3410B"
      iso.3.6.1.4.1.25167.5.3.1.1.2.0 = STRING: "W.4320270023"
      iso.3.6.1.4.1.25167.5.3.1.1.3.0 = STRING: "GenXOS-panther-GNXL2-genxos-11.4.0-N211205"
      iso.3.6.1.4.1.25167.5.3.1.1.4.0 = STRING: "34:e3:80:cb:84:90"
      iso.3.6.1.4.1.25167.5.3.1.2.1.0 = INTEGER: 1
      iso.3.6.1.4.1.25167.5.3.1.2.4.0 = INTEGER: 1
      root@D_wan_115_1:~# snmpget -v 2c -c public 172.25.115.102 iso.3.6.1.4.1.25167.5.3.1.1.1.0
      iso.3.6.1.4.1.25167.5.3.1.1.1.0 = STRING: "FT-P3410B"
      root@D_wan_115_1:~# snmpget -v 2c -c public 172.25.115.102 iso.3.6.1.4.1.25167.5.3.1.1.2.0
      iso.3.6.1.4.1.25167.5.3.1.1.2.0 = STRING: "W.4320270023"
      root@D_wan_115_1:~# snmpget -v 2c -c public 172.25.115.102 iso.3.6.1.4.1.25167.5.3.1.1.3.0
      iso.3.6.1.4.1.25167.5.3.1.1.3.0 = STRING: "GenXOS-panther-GNXL2-genxos-11.4.0-N211205"
      root@D_wan_115_1:~# snmpget -v 2c -c public 172.25.115.102 iso.3.6.1.4.1.25167.5.3.1.1.4.0
      iso.3.6.1.4.1.25167.5.3.1.1.4.0 = STRING: "34:e3:80:cb:84:90"
      
      Change-Id: Ic7de2b5389929e2e1e539bb6bd615a4e4a7daf5c
      1f4262b6
    • Mohd Husaam Mehdi's avatar
      R38672 GENEXIS-INFO-MIB translation for productInfo is not working in SNMP · 9ed825d5
      Mohd Husaam Mehdi authored and Markus Gothe's avatar Markus Gothe committed
      Changes productInfo objects OID from 3 to 1, so that translation is correct.
      
      Change-Id: I24918dbe61afb984eb17258e807177805687fb86
      9ed825d5
    • Pragati Pandey's avatar
      R#35906 SNMP Extensions products · cef50205
      Pragati Pandey authored and Markus Gothe's avatar Markus Gothe committed
      New snmp extensions have been created for product name, product serial no,
      firmware version and mac addressi
      
      Testing results:
      
      snmpwalk -v 2c -c public 172.25.115.102 1.3.6.1.4.1.25167.5.3
      iso.3.6.1.4.1.25167.5.3.1.1.1.0 = STRING: "FT-P3410B"
      iso.3.6.1.4.1.25167.5.3.1.1.2.0 = STRING: "W.4320270023"
      iso.3.6.1.4.1.25167.5.3.1.1.3.0 = STRING: "GenXOS-panther-GNXL2-genxos-11.4.0-N211205"
      iso.3.6.1.4.1.25167.5.3.1.1.4.0 = STRING: "34:e3:80:cb:84:90"
      iso.3.6.1.4.1.25167.5.3.1.2.1.0 = INTEGER: 1
      iso.3.6.1.4.1.25167.5.3.1.2.4.0 = INTEGER: 1
      root@D_wan_115_1:~# snmpget -v 2c -c public 172.25.115.102 iso.3.6.1.4.1.25167.5.3.1.1.1.0
      iso.3.6.1.4.1.25167.5.3.1.1.1.0 = STRING: "FT-P3410B"
      root@D_wan_115_1:~# snmpget -v 2c -c public 172.25.115.102 iso.3.6.1.4.1.25167.5.3.1.1.2.0
      iso.3.6.1.4.1.25167.5.3.1.1.2.0 = STRING: "W.4320270023"
      root@D_wan_115_1:~# snmpget -v 2c -c public 172.25.115.102 iso.3.6.1.4.1.25167.5.3.1.1.3.0
      iso.3.6.1.4.1.25167.5.3.1.1.3.0 = STRING: "GenXOS-panther-GNXL2-genxos-11.4.0-N211205"
      root@D_wan_115_1:~# snmpget -v 2c -c public 172.25.115.102 iso.3.6.1.4.1.25167.5.3.1.1.4.0
      iso.3.6.1.4.1.25167.5.3.1.1.4.0 = STRING: "34:e3:80:cb:84:90"
      
      Change-Id: Ic7de2b5389929e2e1e539bb6bd615a4e4a7daf5c
      cef50205
    • Lwithwma Brahma's avatar
      R#33946 SNMP Extentions CATV · e1bde250
      Lwithwma Brahma authored and Markus Gothe's avatar Markus Gothe committed
      Added SNMP Extention of CATV module
      
      Test:
      >1. For catv102, when at catv uci, catv=1 and agc=1
      
      root@D_wan_136_1:~# snmpwalk -v 2c -c public 192.168.1.1 1.3.6.1.4.1.25167.5.6.1
      iso.3.6.1.4.1.25167.5.6.1.1.3.0 = INTEGER: 1
      iso.3.6.1.4.1.25167.5.6.1.1.4.0 = INTEGER: 1
      iso.3.6.1.4.1.25167.5.6.1.1.11.0 = INTEGER: 1
      iso.3.6.1.4.1.25167.5.6.1.1.12.0 = INTEGER: 3
      iso.3.6.1.4.1.25167.5.6.1.2.1.0 = INTEGER: 0
      iso.3.6.1.4.1.25167.5.6.1.2.2.0 = INTEGER: 0
      
      >2. For catv103, when at catv uci, catv=1 and agc=1
      
      root@D_wan_136_1:~# snmpwalk -v 2c -c public 192.168.1.1 1.3.6.1.4.1.25167.5.6.1
      iso.3.6.1.4.1.25167.5.6.1.1.3.0 = INTEGER: 1
      iso.3.6.1.4.1.25167.5.6.1.1.4.0 = INTEGER: 1
      iso.3.6.1.4.1.25167.5.6.1.1.11.0 = INTEGER: 1
      iso.3.6.1.4.1.25167.5.6.1.1.12.0 = INTEGER: 1
      iso.3.6.1.4.1.25167.5.6.1.2.1.0 = INTEGER: -124
      iso.3.6.1.4.1.25167.5.6.1.2.2.0 = INTEGER: 730
      
      >3. With invalid catv module name, when at catv uci, catv=0 and agc=1
      
      root@D_wan_136_1:~# snmpwalk -v 2c -c public 192.168.1.1 1.3.6.1.4.1.25167.5.6.1
      iso.3.6.1.4.1.25167.5.6.1.1.3.0 = INTEGER: 2
      iso.3.6.1.4.1.25167.5.6.1.1.4.0 = INTEGER: 3
      iso.3.6.1.4.1.25167.5.6.1.1.11.0 = INTEGER: 1
      iso.3.6.1.4.1.25167.5.6.1.1.12.0 = INTEGER: 3
      iso.3.6.1.4.1.25167.5.6.1.2.1.0 = INTEGER: 0
      iso.3.6.1.4.1.25167.5.6.1.2.2.0 = INTEGER: 0
      
      >4. snmpget and snmpset was also tested.
      
      Change-Id: I6f79d2eb69639a51bce4e6d15dc0d554318e3fec
      e1bde250
    • Lwithwma Brahma's avatar
      R#38875 Some SNMP variables are unknown to snmpd · 4af01695
      Lwithwma Brahma authored and Markus Gothe's avatar Markus Gothe committed
      Included the "agent" and "agent/extend" SNMP Mib modules to recognize
      variable exec and extend respectively.
      
      For system variables, since our implementation in "system_mib.c" doesn't read/write
      variable from snmpd.conf and directly deals with only ubus call, the
      copying of system section from snmpd uci to snmpd.conf is removed to
      avoid the warning.
      
      Change-Id: I2aee4817170c524ad7ba52a2d01c7b11f541f0b7
      4af01695
    • Mohd Husaam Mehdi's avatar
      Remove ports UCI dependancy from SNMP · e805e0b0
      Mohd Husaam Mehdi authored and Markus Gothe's avatar Markus Gothe committed
      * Use db instead to determine if a port is EXT port.
      * Move the logic to init function to reduce repeated calling.
      
      Change-Id: Ie96eea7f3882d16c2b4df5a53edbe15e4f4a0b68
      e805e0b0
    • Surya  Pratap  Singh's avatar
      R#42956 - SNMP: support for ifHighSpeed in XGX · 0628df7f
      Surya Pratap Singh authored and Markus Gothe's avatar Markus Gothe committed
      Added support for ifHighSpeed and made changes in ifSpeeed
      in case of overflow to set the max value of ifSpeed
      
      Change-Id: I4cc5a4192823f48c410cb052b7c9bb5869444579
      0628df7f
    • Lwithwma Brahma's avatar
      R#33949 SNMP: 64 bit counters instead of 32 bit for all interfaces · 0f7ed024
      Lwithwma Brahma authored and Markus Gothe's avatar Markus Gothe committed
      Added following 64 bit counters:
              ifHCInOctets(6)
              ifHCInUcastPkts(7)
              ifHCInMulticastPkts(8)
              ifHCOutOctets(10)
              ifHCOutUcastPkts(11)
              ifHCOutMulticastPkts(12)
      
      Related patch:
      https://gerrit.genexislocal.nl:8443/c/feed_inteno_packages/+/9988
      
      Change-Id: I8bd5390e5cd63a1b65a9b09eee471394b58b072c
      0f7ed024
    • George Yang's avatar
      Fix #36043 - SNMP : IF-MIB::ifLastChange is not updated accordingly · 218a2572
      George Yang authored and Markus Gothe's avatar Markus Gothe committed
      Change-Id: I7e1a7e3f80df98a5e6869ae8456dcf72d5a163e3
      218a2572
    • Lwithwma Brahma's avatar
      R#36101 Periodic SNMP Polling timesout · 334a9326
      Lwithwma Brahma authored and Markus Gothe's avatar Markus Gothe committed
      Fix the issue of periodic snmp polling timeout.
      
      Change-Id: I277866c6cb2cb9ec78f5aa837c1f34c39d2661f7
      334a9326
    • Mohd Husaam Mehdi's avatar
      R#33045 Merge SNMP Fix For EXT/LAN5 To GNX-11 · a346be84
      Mohd Husaam Mehdi authored and Markus Gothe's avatar Markus Gothe committed
      Merge commit : cd2778a4c9cb30210d1823ff90d2f50fbc8f3b28
      to GNX-11.
      
      Cherry-picked and tested on GNX-11.
      
      Change-Id: I9693b06a2942c9920efcb8a52ef56d2a5846eb60
      a346be84
    • Mohd Husaam Mehdi's avatar
      R#32909 Merge commit : 6d76992536eddbcb2c9fdd9053dad9f40f58c70e · af8b1116
      Mohd Husaam Mehdi authored and Markus Gothe's avatar Markus Gothe committed
      Merge from genexis-10 to genexis-11.
      Added support for rx and tx multicast packet counters.
      Extended ifXTable of IF-MIB for the same.
      
      Change-Id: Ia5a790fc046d14f45f6a0b3a88073ff951d3325f
      af8b1116
    • Rohit Topno's avatar
      R#32364 - [cherry-pick] Merge SNMP fix to GenXOS-11-Admin status of all ports is always down · 512b2582
      Rohit Topno authored and Markus Gothe's avatar Markus Gothe committed
      Fix: Admin status of all ports are now up by default and
      the admin status is fetched correctly for all ports.
      
      Test - Admin status of all ports are up by default.
      root@D_wan_115_1:~# snmpwalk -v 2c -c public 172.25.115.100 .1.3.6.1.2.1.2.2.1.7
      iso.3.6.1.2.1.2.2.1.7.1 = INTEGER: 1
      iso.3.6.1.2.1.2.2.1.7.2 = INTEGER: 1
      iso.3.6.1.2.1.2.2.1.7.3 = INTEGER: 1
      iso.3.6.1.2.1.2.2.1.7.4 = INTEGER: 1
      iso.3.6.1.2.1.2.2.1.7.5 = INTEGER: 1
      
      After changing the status of eth1 to down, the admin status is as below
      root@D_wan_115_1:~# snmpget -v 2c -c public 172.25.115.100 .1.3.6.1.2.1.2.2.1.7.2
      iso.3.6.1.2.1.2.2.1.7.2 = INTEGER: 2
      
      Similar testing is conducted on all ports.
      
      (cherry picked from commit 95e8257bf4adf6bd96a666426c4b47083aa78e17)
      Change-Id: I1145c8f513463f41179674bd7ac693d32fd0e99c
      512b2582
    • Rohit Topno's avatar
      R#31607 - [cherry-pick] SNMP patches from genexis-10 · e483f125
      Rohit Topno authored and Markus Gothe's avatar Markus Gothe committed
      SNMP features have been cherry-picked from genexis-10 branch to genexis-11 branch
      
      Fix : Makefile is modified to fix compilation error
      
      (cherry picked from commit 62d19691f951f0ea4b7a0f39507952cb9300adbe)
      (cherry picked from commit f505502c30b0e31b39c335835ba7bc2c5fa0715e)
      (cherry picked from commit 991d0e3bbac3e74cc24a610e902f5fef8728ac05)
      (cherry picked from commit 4146a86dc998d458e391883b6dae5252f7d55008)
      (cherry picked from commit ecffcfa7beddcc63c0e45a0a5c5b2bf9e10bd12f)
      (cherry picked from commit faaeb94f619ee5b981b0df80dca55b0154b84d49)
      (cherry picked from commit 097add11715ba9a3276801083aa93ba81218c195)
      (cherry picked from commit 3734410f22f40facbdf37ac007004cfae529e295)
      (cherry picked from commit 54206a33df28bc1101a8aebfb9b4cbbff873b571)
      (cherry picked from commit 32eb6af13736fb18a4afd1d0d37d59ed2668c176)
      (cherry picked from commit 8e6a0911a46250d9fc77d0bd077c8aad30fd964a)
      (cherry picked from commit 63fbe5e05288c3eb953212384d99f9b20fb3f15c)
      (cherry picked from commit ab35e69d6e08d6c262b880129fb5a6013e0871cd)
      Change-Id: I45e8be160a53ba6c97bdea6c426ca4b02d6d5849
      e483f125
    • Mohd Husaam Mehdi's avatar
      R#37811 - Tacacs/Radius authentication support · 9838ecc5
      Mohd Husaam Mehdi authored and Markus Gothe's avatar Markus Gothe committed
      Fallback to Radius authentication if local user is not present,
      but in that case, the user will be logged in as root.
      
      Change-Id: I0d9030f04bc0acfdf24d0403127c97935a5c7607
      9838ecc5
    • Mohd Husaam Mehdi's avatar
      R#37811 Tacacs/Radius authentication support · 9415f7ef
      Mohd Husaam Mehdi authored and Markus Gothe's avatar Markus Gothe committed
      * Modifies openssh defaults to allow ssh for root.
      * Adds commented pam_radius_auth.so to sshd.pam so that user does not have to manually copy it.
      
      Change-Id: Ib5d78d2defb201f048cf04aee13adbb1e5c55c8e
      9415f7ef
    • Markus Gothe's avatar
      RM#34647 - DNSSEC & DNS-over-HTTPS (DoH) · 2b441b3b
      Markus Gothe authored
      Add logic for https-dns-proxy to not modify
      dhcp-configuration unless DNS-over-HTTPS has
      been configured.
      
      Change-Id: I3578a917b4f748f31d8b6035f39f8c077c6e3986
      2b441b3b
    • George Yang's avatar
      Fix #41983 - Support for DDNS · 4e17641e
      George Yang authored and Markus Gothe's avatar Markus Gothe committed
      The patch addressed following 2 ddns-scripts issues:
      
       * procd_lock is not released by dynamic_dns_updater.sh daemons
         which caused later /etc/init.d/ddns always locked out.
      
         It caused hang of "ubus call luci.ddns get_ddns_state",
         and further hang of webgui Dynamic DNS.
      
       * /etc/init.d/ddns reload did not function
      
         Under current /bin/sh, "killall -1 dynamic_dns_updater.sh"
         does not send signal to the dynamic_dns_updater.sh daemon.
      
      Change-Id: I9fa1d773dd8e4c4971f3c4cf053b13dbc99048c9
      4e17641e
    • Erik Karlsson's avatar
      nss: fix parallel build · 363a1eb3
      Erik Karlsson authored and Markus Gothe's avatar Markus Gothe committed
      There is a hack for building subdirectories before the parent
      directory. There is a bug in this which causes the EXPORTS and
      PRIVATE_EXPORTS targets to be built twice leading to a race condition.
      
      Change-Id: I94230722671aa6c0c10afdfe376bbb3fa86d109f
      363a1eb3
Loading