ITPub博客

首页 > IT基础架构 > 网络安全 > kudzu命令查看及设置网卡等硬件信息

kudzu命令查看及设置网卡等硬件信息

原创 网络安全 作者:tengrid 时间:2010-02-04 14:13:25 0 删除 编辑

http://it.kswchina.com/Linux/zh/608103.html
kudzu 是Linux下检测硬件变化的命令,这个命令可以用于检查系统中网卡的型号等信息:

  kudzu(1)

  NAME

  kudzu - detects and configures new and/or changed hardware on a system

  SYNOPSIS

  kudzu

  DESCRIPTION

  kudzu detects and configures new and/or changed hardware on a system.

  When started, kudzu detects the current hardware, and checks it against

  a database stored in /etc/sysconfig/hwconf, if one exists. It then

  determines if any hardware has been added or removed from the system.

  If so, it gives the users the opportunity to configure any added hard-

  ware, and unconfigure any removed hardware. It then updates the

  database in /etc/sysconfig/hwconf.

  If no previous database exists, kudzu attempts to determine what

  devices have already been configured, by looking at /etc/modules.conf,

  /etc/sysconfig/network-scripts/, and /etc/X11/XF86Config.

  以下是这个命令执行的输出示例:

  [root@wapdbrac1 ~]# kudzu --probe --class=network

  -

  class: NETWORK

  bus: PCI

  detached: 0

  device: eth1

  driver: bnx2

  desc: "Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet"

  network.hwaddr: 00:1B:78:97:E4:EA

  vendorId: 14e4

  deviceId: 164c

  subVendorId: 103c

  subDeviceId: 7038

  pciType: 1

  pcidom:    0

  pcibus:  5

  pcidev:  0

  pcifn:  0

  -

  class: NETWORK

  bus: PCI

  detached: 0

  device: eth0

  driver: bnx2

  desc: "Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet"

  network.hwaddr: 00:1B:78:97:E4:EC

  vendorId: 14e4

  deviceId: 164c

  subVendorId: 103c

  subDeviceId: 7038

  pciType: 1

  pcidom:    0

  pcibus:  3

  pcidev:  0

  pcifn:  0

本篇文章来源于《点睛考试网》[] ;原文链接地址:http://it.kswchina.com/Linux/zh/608103.html

[@more@]

自动配置安装 如果安装完Linux系统后,又添加了新的硬件,那么系统必须载入正确的驱动程序才可以使用它。

Kudzu服务默认每次启动时都要运行,如果需要缩短启动时间,使用下面命令可以停止系统启动时的kudzu服务: # chkconfig kudzu off 如果要安装新的硬件,可以手动运行kudzu程序。

以上介绍了Linux下驱动程序的大体结构、主要的加载方式和相关配置文件,在安装Linux时加载驱动程序,并且根据需要定制自己的引导盘,在安装完成后安装新的、即插即用硬件。

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/94384/viewspace-1031106/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2009-05-18

  • 博文量
    136
  • 访问量
    425163