SNMPd:无法打开/ proc / bus / pci [英] SNMPd: Cannot open /proc/bus/pci

查看:828
本文介绍了SNMPd:无法打开/ proc / bus / pci的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用ELDK-3.1将NET-SNMP 5.7.1从源交叉编译到PowerPC。
当我尝试在嵌入式板上加载 snmpd 守护程序时,我看到以下消息:

 #snmpd -f -Lo 
pcilib:无法打开/ proc / bus / pci
pcilib:无法找到任何有效的访问方法。

当然,我的PPC板没有PCI,我不知道为什么netsnmp在寻找它。 p>

在一个以上的地方,我看到了相同的消息( sourceforge 邮件存档 Google组),但ir根本没有答案。另一个变体,在( archlinuxarm 处有一点但无用的响应) 。



有人可以帮我吗?

解决方案

我是



Net-SNMP的变更日志列表 [PATCH 3057093]:允许Linux使用libpci创建有用的ifDescr字符串。

>

配置脚本将搜索可用的libpci,找到后将定义
HAVE_PCI_LOOKUP_NAME HAVE_PCI_PCI_H 。要禁用此代码:配置后,可以在 include / net-snmp / net-snmp-config.h 中更改这些定义,然后重新生成。受影响的代码位于 agent / mibgroup / if-mib / data_access / interface_linux.c 中。


I cross-compiled NET-SNMP 5.7.1 from sources to a PowerPC using ELDK-3.1. When I try to load the snmpd daemon in my embedded board, I see the message:

# snmpd -f -Lo
pcilib: Cannot open /proc/bus/pci
pcilib: Cannot find any working access method.

Of course my PPC board has no PCI, and I wonder why is netsnmp looking for it.

In more than one place I see this same message (sourceforge, mail-archive, google-groups), but ir has no answer at all. Another variant, with a little but unhelpful responses at (archlinuxarm).

Can anybody please help me?

解决方案

I'm assuming you're on a Linux target.

Net-SNMP's changelog lists "[PATCH 3057093]: allow linux to use libpci for creating useful ifDescr strings".

The configure script will search for an available libpci, and, having found one, will define HAVE_PCI_LOOKUP_NAME and HAVE_PCI_PCI_H. To disable this code: after configuring, you can change those defines in include/net-snmp/net-snmp-config.h, then rebuild. The affected code is in agent/mibgroup/if-mib/data_access/interface_linux.c.

这篇关于SNMPd:无法打开/ proc / bus / pci的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆