kudzu命令檢視及設定網路卡等硬體資訊

tengrid發表於2010-02-04


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

本篇文章來源於《點睛考試網》[] ;原文連結地址:

[@more@]

自動配置安裝 如果安裝完Linux系統後,又新增了新的硬體,那麼系統必須載入正確的驅動程式才可以使用它。

Kudzu服務預設每次啟動時都要執行,如果需要縮短啟動時間,使用下面命令可以停止系統啟動時的kudzu服務: # chkconfig kudzu off 如果要安裝新的硬體,可以手動執行kudzu程式。

以上介紹了Linux下驅動程式的大體結構、主要的載入方式和相關配置檔案,在安裝Linux時載入驅動程式,並且根據需要定製自己的引導盤,在安裝完成後安裝新的、即插即用硬體。

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/94384/viewspace-1031106/,如需轉載,請註明出處,否則將追究法律責任。

相關文章