HPUX 網路命令收集

來源:互聯網
上載者:User

總結:

1、HP的三大底層法寶命令:
#lanscan 看主機的底層物理狀況,是否UP,(注意這個命令無法看到IP層)
#netstat –rn 看IP地址綁定是否正確
#nslookup hny01  看自己可不可以解析自己

2、其他命令詳解

(1、lanadmin - 區域網路管理程式
概要
/usr/sbin/lanadmin [-e ][ -t ]
/usr/sbin/lanadmin [-a ][ -Astation_addr][ -c ][ -g [get_options ]] [-m]
[-M mtu_size][ -p] [-r ][ -R][ -s ][ -S speed][ -Vvlan_options[ parms ]] [-x options ]
[-Xoptions ] PPA
備忘:
不推薦使用lanadmin 、lanscan 和linkloop 命令。建議使用nwmgr
-g [get_options ] 
擷取並顯示與某些選項相對應的設定,這些選項由與 PPA 相對應的介面的get_options指定。get_options 是可選的並且不區分大小寫。允許使用的值有mibstats 和mib-stats_ext 。
mibstats 顯示MIB-II 統計資料(RFC 1213) 和介面特定的統計資料。
mibstats_ext 顯示擴充的64位MIB 統計資料(RFC 2863) 和介面特定的統計資料。

假設對應的網口叫lan0,下面的命令檢查:
# lanadmin -g 0 | grep Status
Administration Status (value)   = up(1)
Operation Status (value)        = down(1)    => 如果顯示為down即是說網線拔掉了。
# lanadmin -g 900 | grep Status   有機會測試一下

(2、linkloop
使用linkloop 命令測試連接性。如下:
#lanscan
#linkloop -i 2 0x00237D3E33EC
(此為測試lan2和lan3的連通性,其中2為lan2的instance Number. 0x00237D3E33EC為lan3的mac地址,可以使用lanscan 看出來)

(3、nwmgr - 用於LAN介面和RDMA介面的網路介面管理命令
概要
/usr/sbin/nwmgr [-h |--help |-? ][ operation ][ target ][ operation-qualifiers ]
[ target-qualifiers ]
說明
nwmgr程式是用於管理所有HP-UX LAN介面和RDMA介面的統一命令。
此線上說明頁說明nwmgr支援的命令功能。但是,每個網路介面驅動程式(通常稱為子系統)可能支援這些功能的子集。有關特定子系統支援的功能的資訊,請參閱每個子系統單獨的線上說明頁,名為nwmgr_<subsys-tem>(1M) 。


可以在LAN介面或RDMA介面上使用nwmgr命令進行以下操作:
• 顯示介面資訊
• 修改介面設定
• 重設介面或其統計資訊
• 診斷連結的串連性
• 同時建立和設定組件的配置資訊
• 刪除或清除組件


舉例
列出系統中所有的LAN介面和RDMA介面:
nwmgr --get


#nwmgr -S apa -I 900 -A all
lan900 current values:
   Speed = 2 Gbps Full Duplex
   MTU = 1500
   Virtual Maximum Transmission Unit = 32160
   MAC Address = 0xd89d67c527e8
   Network Management ID = 10
   Features = Linkagg Interface
              IPV4 Recv CKO
              IPV4 Send CKO
              VLAN Support
              VLAN Tag Offload
              64Bit MIB Support
              IPV4 TCP Segmentation Offload
   Load Distribution Algorithm = LB_MAC
   Mode = MANUAL
   Parent PPA =  - 
   APA State = Up
   Membership = 2,6
   Active Port(s) = 2,6
   Not Ready Port(s) =  - 
   Group Capability = 5
   Key = 0
   Operational Key = 0
   Polling Interval = 0
   Dead Count = 0
   Rapid ARP = off
   Rapid ARP Interval = 0.0 second(s)
   Rapid ARP Count = 0
   Failover Policy =  - 
   Fixed Mac Address = off


聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.