START usr.bin/snmp 2024-07-26T01:54:21Z ==== start ==== pkill -xf "/usr/sbin/snmpd -f /usr/src/regress/usr.bin/snmp/obj/snmpd.conf" *** Error 1 in target 'stop' (ignored) printf 'listen_addr="127.0.0.1"\n' > snmpd.conf printf 'listen6_addr="::1"\n\n' >> snmpd.conf printf '# Restrict daemon to listen on localhost only\n' >> snmpd.conf printf 'listen on $listen_addr snmpv1 snmpv2c snmpv3\n' >> snmpd.conf printf 'listen on tcp $listen_addr snmpv1 snmpv2c snmpv3\n' >> snmpd.conf printf 'listen on $listen6_addr snmpv1 snmpv2c snmpv3\n' >> snmpd.conf printf 'listen on tcp $listen6_addr snmpv1 snmpv2c snmpv3\n' >> snmpd.conf printf 'listen on $listen_addr notify snmpv1 snmpv2c snmpv3\n\n' >> snmpd.conf printf 'agentx path "/tmp/agentx"\n\n' >> snmpd.conf printf 'read-only community public\n' >> snmpd.conf printf 'read-write community private\n' >> snmpd.conf printf 'trap community public\n\n' >> snmpd.conf printf '# (ab)use sysContact for DisplayString (255a) testing\n' >> snmpd.conf printf 'system contact "Reyk Fl\303\266ter"\n' >> snmpd.conf printf 'system services 74\n\n' >> snmpd.conf printf '# Provide static user-defined SNMP OIDs\n' >> snmpd.conf printf 'oid 1.3.6.1.4.1.30155.42.3.1 name testStringValue read-only string "Test"\n' >> snmpd.conf printf 'oid 1.3.6.1.4.1.30155.42.3.2 name testStringValue read-only string "abcdefghijklmnopqrstuvwxyz"\n' >> snmpd.conf printf 'oid 1.3.6.1.4.1.30155.42.3.3 name testIntValue read-write string a\n' >> snmpd.conf printf 'oid 1.3.6.1.4.1.30155.42.3.4 name testIntValue read-write integer 1\n' >> snmpd.conf printf '# (ab)use usmUserName for SnmpAdminString (255t) tests\n' >> snmpd.conf printf 'oid 1.3.6.1.6.3.15.1.2.2.1.2.1 name testStringValue read-only string "Reyk Fl\303\266ter"\n' >> snmpd.conf printf 'oid 1.3.6.1.6.3.15.1.2.2.1.2.2 name testStringValue read-only string "Reyk Fl\303ter"\n' >> snmpd.conf printf "# 256 a's\n" >> snmpd.conf printf 'oid 1.3.6.1.6.3.15.1.2.2.1.2.3 name testStringValue read-only string "%s"\n' "$(jot -ba 256 | tr -d '\n')" >> snmpd.conf printf "# 254 a's + replacement character\n" >> snmpd.conf printf 'oid 1.3.6.1.6.3.15.1.2.2.1.2.4 name testStringValue read-only string "%s\357\277\275"\n\n' "$(jot -ba 254 | tr -d '\n')" >> snmpd.conf printf '# Enable SNMPv3 USM with authentication, encryption and two defined users\n' >> snmpd.conf printf 'seclevel none\n\n' >> snmpd.conf printf 'user md5_des authkey testtest auth hmac-md5 enckey testtest enc des\n' >> snmpd.conf printf 'user md5_aes authkey testtest auth hmac-md5 enckey testtest enc aes\n' >> snmpd.conf printf 'user sha1_des authkey testtest auth hmac-sha1 enckey testtest enc des\n' >> snmpd.conf printf 'user sha1_aes authkey testtest auth hmac-sha1 enckey testtest enc aes\n' >> snmpd.conf printf 'user sha224_des authkey testtest auth hmac-sha224 enckey testtest enc des\n' >> snmpd.conf printf 'user sha224_aes authkey testtest auth hmac-sha224 enckey testtest enc aes\n' >> snmpd.conf printf 'user sha256_des authkey testtest auth hmac-sha256 enckey testtest enc des\n' >> snmpd.conf printf 'user sha256_aes authkey testtest auth hmac-sha256 enckey testtest enc aes\n' >> snmpd.conf printf 'user sha384_des authkey testtest auth hmac-sha384 enckey testtest enc des\n' >> snmpd.conf printf 'user sha384_aes authkey testtest auth hmac-sha384 enckey testtest enc aes\n' >> snmpd.conf printf 'user sha512_des authkey testtest auth hmac-sha512 enckey testtest enc des\n' >> snmpd.conf printf 'user sha512_aes authkey testtest auth hmac-sha512 enckey testtest enc aes\n\n' >> snmpd.conf printf 'trap handle 1.3 "/usr/src/regress/usr.bin/snmp/obj/traphandle.sh"\n' >> snmpd.conf printf '#!/bin/sh\n\n' > traphandle.sh printf 'while read line; do\n' >> traphandle.sh printf '\tprintf "%%s\\n" "$line" >> /usr/src/regress/usr.bin/snmp/obj/trap_output\n' >> traphandle.sh printf 'done\n' >> traphandle.sh chmod +x traphandle.sh touch trap_output chmod a+rw trap_output rm -f /tmp/agentx 2>/dev/null /usr/sbin/snmpd -f /usr/src/regress/usr.bin/snmp/obj/snmpd.conf pkill -xf "/usr/sbin/snmpd -f /usr/src/regress/usr.bin/snmp/obj/snmpd.conf" Failed to start snmpd *** Error 1 in . (Makefile:95 'start': @(i=0; while [ ! -S /tmp/agentx ]; do i=$((i + 1)); [ $i -eq 100 ] && ( printf "%s\n" ' pkill -xf...) *** Error 2 in . (:84 'stamp-start': make -C /usr/src/regress/usr.bin/snmp start) *** Error 2 in /usr/src/regress/usr.bin/snmp (:92 'regress': make -C /usr/src/regress/usr.bin/snmp stamp-start) NOEXIT usr.bin/snmp Command 'make regress' failed: 512