Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • None
    • None
    • Scripts
    • None

    Description

      This script uses the frr config to populate the ifAliases. The script is based on the existing one which uses /etc/network/interfaces.

      Under Debian the following commands are needed so that snmpd is able to read the config file:

      setfacl -m u:Debian-snmp:rx /etc/frr
      setfacl -m u:Debian-snmp:r /etc/frr/frr.conf

      Attachments

        Issue Links

          Activity

            [OBS-4036] ifAlias perisist script for frr

            In r12998 added complete new pass_persist script, now python based.

            For FRR it try read from both places (by vtysh and later from frr.conf).

            • Install python module:

              sudo pip install snmp_passpersist
              

            • copy scripts/ifAlias.py to /usr/local/bin/
            • add (replace old) in snmpd.conf:

              pass_persist .1.3.6.1.2.1.31.1.1.1.18 /usr/local/bin/ifAlias.py
              

            • restart snmpd
            landy Mike Stupalov added a comment - In r12998 added complete new pass_persist script, now python based. For FRR it try read from both places (by vtysh and later from frr.conf). Install python module: sudo pip install snmp_passpersist copy scripts/ifAlias.py to /usr/local/bin/ add (replace old) in snmpd.conf: pass_persist .1.3.6.1.2.1.31.1.1.1.18 /usr/local/bin/ifAlias.py restart snmpd

            I improved original script for testing if file frr.conf exist.

            Improved in r12989.

            landy Mike Stupalov added a comment - I improved original script for testing if file frr.conf exist. Improved in r12989.

            please write correct command for adding to group.
            Or this is as common?

            sudo usermod -a -G frr Debian-snmp

            landy Mike Stupalov added a comment - please write correct command for adding to group. Or this is as common? sudo usermod -a -G frr Debian-snmp

            Sorry, just found out that setfacl does only work until file gets rewritten.

            Permanent solutions seams to be adding Debian-snmp to group frr in /etc/group

             

            cramer Matthias Cramer added a comment - Sorry, just found out that setfacl does only work until file gets rewritten. Permanent solutions seams to be adding Debian-snmp to group frr in /etc/group  

            General questions and device support can be discussed in our Discord channel, click here to join.


            Please make and attach additional information about the device:

            • full snmp dump from device:

              snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -ObentxU <hostname> .1 > myagent.snmpwalk
              snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -ObentxU <hostname> .1.3.6.1.4.1 >> myagent.snmpwalk

              If device not support SNMP version 2c, replace -v2c with -v1.

            • If you have problems with discovery or poller processes, please do and attach these debugs:

              ./discovery.php -d -h <device>
              ./poller.php -d -h <device>

            • additionally attach device and/or vendor specific MIB files

            This comment is added automatically.

            bot Observium Bot added a comment - General questions and device support can be discussed in our Discord channel, click here to join . Please make and attach additional information about the device: full snmp dump from device: snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -ObentxU <hostname> .1 > myagent.snmpwalk snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -ObentxU <hostname> .1.3.6.1.4.1 >> myagent.snmpwalk If device not support SNMP version 2c, replace -v2c with -v1. If you have problems with discovery or poller processes, please do and attach these debugs: ./discovery.php -d -h <device> ./poller.php -d -h <device> additionally attach device and/or vendor specific MIB files This comment is added automatically.

            People

              landy Mike Stupalov
              cramer Matthias Cramer
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: