IT技术互动交流平台

SunOS、IBM-AIX、HP-UX网卡状态监控

作者:~黑黑的窝~  发布日期:2011-09-07 15:50:07

监控方法如下~
IBM-AIX:
$ lsdev -Cc adapter|grep ent
ent0    可用   10-80    IBM 10/100 Mbps Ethernet PCI Adapter (23100020)
$  netstat -v ent0
-------------------------------------------------------------
ETHERNET STATISTICS (ent0) :
Device Type: IBM 10/100 Mbps Ethernet PCI Adapter (23100020)
Hardware Address: 00:06:29:04:75:9a
经过时间:89天0小时53分48秒
 
发送统计数字:                          接收统计数字:
--------------------                          -------------------
数据包:3526660                              数据包:16261940
字节:330655945                              字节:4278385424
中断:3641                              中断:15786259
发送错误号:0                            接收错误号:0
已卸下的数据包:1                            已卸下的数据包:0
                                              错误的数据包:0
“S/W 发送队列”上的最大数据包:28        
S/W 发送队列溢出:0
当前的 S/W+H/W 发送队列长度:1
 
Broadcast Packets: 4360                       Broadcast Packets: 11310319
Multicast Packets: 2                          Multicast Packets: 61539
No Carrier Sense: 0                           CRC Errors: 0
DMA Underrun: 0                               DMA Overrun: 0
Lost CTS Errors: 0                            Alignment Errors: 0
Max Collision Errors: 0                       No Resource Errors: 0
Late Collision Errors: 0                      Receive Collision Errors: 0
Deferred: 0                                   Packet Too Short Errors: 0
SQE Test: 0                                   Packet Too Long Errors: 0
Timeout Errors: 0                             Packets Discarded by Adapter: 0
Single Collision Count: 0                     Receiver Start Count: 0
Multiple Collision Count: 0
Current HW Transmit Queue Length: 1
 
General Statistics:
-------------------
No mbuf Errors: 0
Adapter Reset Count: 0
Adapter Data Rate: 200
Driver Flags: Up Broadcast Running
        Simplex AlternateAddress 64BitSupport
        PrivateSegment DataRateSet
 
IBM 10/100 Mbps Ethernet PCI Adapter (23100020) Specific Statistics:
------------------------------------------------
Chip Version: 26
RJ45 Port Link Status : up
Media Speed Selected: Auto negotiation
Media Speed Running: 100 Mbps Full Duplex
Receive Pool Buffer Size: 384
No Receive Pool Buffer Errors: 0
Inter Packet Gap: 96
Adapter Restarts due to IOCTL commands: 1
Packets with Transmit collisions:
 1 collisions: 0           6 collisions: 0          11 collisions: 0
 2 collisions: 0           7 collisions: 0          12 collisions: 0
 3 collisions: 0           8 collisions: 0          13 collisions: 0
 4 collisions: 0           9 collisions: 0          14 collisions: 0
 5 collisions: 0          10 collisions: 0          15 collisions: 0
Excessive Deferrals: 0
 
HP-UX:设备的文件系统其实蛮不错的,就是使用复杂啊~
# lanadmin
Message catalog can't be opened/accessed for language zh_CN.hp15CN.
Language C will used.
 

          LOCAL AREA NETWORK ONLINE ADMINISTRATION, Version 1.0
                       Thu, May 20,2010  10:07:08
 
               Copyright 1994 Hewlett Packard Company.
                       All rights are reserved.
 
Test Selection mode.
 
        lan      = LAN Interface Administration
        menu     = Display this menu
        quit     = Terminate the Administration
        terse    = Do not display command menu
        verbose  = Display command menu
 
Enter command: lan
 
LAN Interface test mode. LAN Interface PPA Number = 0
 
        clear    = Clear statistics registers
        display  = Display LAN Interface status and statistics registers
        end      = End LAN Interface Administration, return to Test Selection
        menu     = Display this menu
        ppa      = PPA Number of the LAN Interface
        quit     = Terminate the Administration, return to shell
        reset    = Reset LAN Interface to execute its selftest
        specific = Go to Driver specific menu
 
Enter command: display
 
                      LAN INTERFACE STATUS DISPLAY
                       Thu, May 20,2010  10:07:17
 
PPA Number                      = 0
Description                     = lan0 HP PCI-X 1000Base-T Release B.11.31.0809
Type (value)                    = ethernet-csmacd(6)
MTU Size                        = 1500
Speed                           = 100000000
Station Address                 = 0x2264936eb5
Administration Status (value)   = up(1)
Operation Status (value)        = up(1)
Last Change                     = 257
Inbound Octets                  = 3657537035
Inbound Unicast Packets         = 59966166
Inbound Non-Unicast Packets     = 11596129
Inbound Discards                = 0
Inbound Errors                  = 0
Inbound Unknown Protocols       = 2381339
Outbound Octets                 = 1094969340
Outbound Unicast Packets        = 65747327
Outbound Non-Unicast Packets    = 14085
Outbound Discards               = 0
Outbound Errors                 = 0
Outbound Queue Length           = 0
Specific                        = 655367
 
Press <Return> to continue
 

Ethernet-like Statistics Group
 
Index                           = 1
Alignment Errors                = 0
FCS Errors                      = 0
Single Collision Frames         = 0
Multiple Collision Frames       = 0
Deferred Transmissions          = 0
Late Collisions                 = 0
Excessive Collisions            = 0
Internal MAC Transmit Errors    = 0
Carrier Sense Errors            = 0
Frames Too Long                 = 0
Internal MAC Receive Errors     = 0
 

延伸阅读:

Tag标签: SunOS   IBM-AIX   HP-UX   网卡状态  
  • 专题推荐

About IT165 - 广告服务 - 隐私声明 - 版权申明 - 免责条款 - 网站地图 - 网友投稿 - 联系方式
本站内容来自于互联网,仅供用于网络技术学习,学习中请遵循相关法律法规