Merge pull request #647 from d-jsb/master

fix: extend SNMP view to mib-2; in boot.sh add hostname to DHCP client
This commit is contained in:
Jeremy Grossmann 2022-02-24 19:30:23 -08:00 committed by GitHub
commit 48f5ee1b9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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