fix: extend SNMP view to mib-2; in boot.sh add hostname to DHCP client

This commit is contained in:
Henning Stahlke 2022-02-24 13:50:31 +01:00
parent 1b0756b2d2
commit 5e55f095b9
2 changed files with 13 additions and 3 deletions

View File

@ -65,8 +65,10 @@ until [ $x -eq $NUM_BR ]; do
ip link set dev br$x up
x=$((x+1))
done
HOSTNAME=`hostname`
echo "$HOSTNAME"
/sbin/udhcpc -R --timeout=1 --tryagain=1 -b -p /var/run/udhcpc.$MGMT_IF.pid -i $MGMT_IF
/sbin/udhcpc -R --timeout=1 --tryagain=1 -b -p /var/run/udhcpc.$MGMT_IF.pid -i $MGMT_IF -F $HOSTNAME
if [ -n "$LLDP_CHASSIS_ID" ]; then

View File

@ -7,10 +7,18 @@
# listen on all IPs, default port
agentAddress udp:161
# mib-2
view publicview included .1.3.6.1.2.1
# system
view publicview included .1.3.6.1.2.1.1
#view publicview included .1.3.6.1.2.1.1
# interfaces
view publicview included .1.3.6.1.2.1.2
#view publicview included .1.3.6.1.2.1.2
# dot1dBridge
#view publicview included .1.3.6.1.2.1.17
# LLDP
view publicview included .1.0.8802.1.1.2