2008-07-21 15:34:38 |
Bjorn Ruud |
bug |
|
|
added bug |
2008-07-21 15:39:55 |
Bjorn Ruud |
description |
snmpd reports wrong interface speed when it is run as the snmp user. Running snmpd as root gives the correct result. Debug output suggests a permission problem. The gigabit network interface speed is correctly determined at startup, but fails when the owner of the process switches from root to the snmp user (or so I assume). After failure snmpwalk reports a speed of 10 Mbit/s for all interfaces.
Using snmp user:
# snmpd -f -Le -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid -DmibII/interfaces
registered debug token mibII/interfaces, 1
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load()
mibII/interfaces: ETHTOOL_GSET on eth0 speed = 1000
mibII/interfaces: ETHTOOL_GSET on eth0 speed = 1000
NET-SNMP version 5.4.1.2
mibII/interfaces: ETHTOOL_GSET on eth0 failed
mibII/interfaces: SIOCGMIIPHY on eth0 failed
Using root user:
# snmpd -f -Le -Lf /dev/null -I -smux -p /var/run/snmpd.pid -DmibII/interfaces
registered debug token mibII/interfaces, 1
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load()
mibII/interfaces: ETHTOOL_GSET on eth0 speed = 1000
mibII/interfaces: ETHTOOL_GSET on eth0 speed = 1000
NET-SNMP version 5.4.1.2
mibII/interfaces: ETHTOOL_GSET on eth0 speed = 1000 |
snmpd reports wrong interface speed when it is run as the snmp user. Running snmpd as root gives the correct result. Debug output suggests a permission problem. The gigabit network interface speed is correctly determined at startup, but fails when the owner of the process switches from root to the snmp user (or so I assume). After failure snmpwalk reports a speed of 10 Mbit/s for all interfaces.
Using snmp user:
# snmpd -f -Le -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid -DmibII/interfaces
registered debug token mibII/interfaces, 1
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load()
mibII/interfaces: ETHTOOL_GSET on eth0 speed = 1000
mibII/interfaces: ETHTOOL_GSET on eth0 speed = 1000
NET-SNMP version 5.4.1.2
mibII/interfaces: ETHTOOL_GSET on eth0 failed
mibII/interfaces: SIOCGMIIPHY on eth0 failed
Using root user:
# snmpd -f -Le -Lf /dev/null -I -smux -p /var/run/snmpd.pid -DmibII/interfaces
registered debug token mibII/interfaces, 1
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load()
mibII/interfaces: ETHTOOL_GSET on eth0 speed = 1000
mibII/interfaces: ETHTOOL_GSET on eth0 speed = 1000
NET-SNMP version 5.4.1.2
mibII/interfaces: ETHTOOL_GSET on eth0 speed = 1000
Note: The output is from version 5.4.1.2 which I packaged for testing purposes, but the problem is the same with version 5.4.1. |
|
2008-09-15 19:26:31 |
Chuck Short |
net-snmp: status |
New |
Won't Fix |
|
2008-09-15 19:26:31 |
Chuck Short |
net-snmp: statusexplanation |
|
The reason is that the user you were running the command does not have permissions to set the speed of the device.
Regards
chuck |
|
2010-01-29 23:20:12 |
Bjorn Ruud |
removed subscriber Bjorn Ruud |
|
|
|
2010-03-06 20:26:17 |
Otto Berger |
net-snmp (Ubuntu): status |
Won't Fix |
New |
|
2010-03-08 13:25:04 |
Chuck Short |
net-snmp (Ubuntu): status |
New |
Triaged |
|
2010-03-29 18:50:17 |
Chuck Short |
net-snmp (Ubuntu): status |
Triaged |
Fix Released |
|
2010-09-24 09:28:32 |
Tyler Wagner |
net-snmp (Ubuntu): status |
Fix Released |
Confirmed |
|
2010-12-01 19:18:08 |
adisharoon |
bug |
|
|
added subscriber adisharoon |
2011-03-07 14:18:35 |
Chuck Short |
affects |
net-snmp (Ubuntu) |
linux (Ubuntu) |
|
2011-04-07 12:01:53 |
gdowle |
bug |
|
|
added subscriber gdowle |
2011-10-11 18:22:36 |
Sergey Svishchev |
linux (Ubuntu): status |
Confirmed |
Fix Released |
|