免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 15519 | 回复: 17
打印 上一主题 下一主题

偶也来送分,先到先得(17):solaris如何查看网卡是电口还是光卡? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-04-28 11:38 |只看该作者 |倒序浏览

论坛徽章:
0
2 [报告]
发表于 2009-04-28 11:38 |只看该作者
我来接点分哈。

# kstat -p | grep interface
bge:0:chipid:interface  copper
bge:1:chipid:interface  copper
bge:2:chipid:interface  copper
bge:3:chipid:interface  copper

论坛徽章:
0
3 [报告]
发表于 2009-04-28 11:55 |只看该作者
不知道。期待答案。。。。。。。。。。。。

论坛徽章:
0
4 [报告]
发表于 2009-04-28 11:58 |只看该作者
把每个接口卡对应的系统名背熟, 可以拿分吗?

论坛徽章:
2
丑牛
日期:2014-06-11 13:55:04ChinaUnix元老
日期:2015-02-06 15:16:14
5 [报告]
发表于 2009-04-28 12:06 |只看该作者
还真不知道,难道靠设备名称?

论坛徽章:
0
6 [报告]
发表于 2009-04-28 12:32 |只看该作者
原帖由 filtercai 于 2009-4-28 12:24 发表
我来接点分哈。

# kstat -p | grep interface
bge:0:chipid:interface  copper
bge:1:chipid:interface  copper
bge:2:chipid:interface  copper
bge:3:chipid:interface  copper


Solaris 10的可以

bash-3.00# kstat -p | grep interface
bge:0:chipid:interface  copper
bge:1:chipid:interface  copper
bash-3.00# uname -a
SunOS cdmadb01 5.10 Generic_127127-11 sun4u sparc SUNW,SPARC-Enterprise


另外一台solaris 9的不行
bash-2.05# kstat -p | grep -i interface
bash-2.05# ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet x.x.x.x netmask ffffffe0 broadcast 134.128.205.31
        ether 0:e0:0:c4:f3:fa
cip0: flags=1008843<UP,BROADCAST,RUNNING,MULTICAST,PRIVATE,IPv4> mtu 1500 index 3
        inet 192.168.1.1 netmask ffffff00 broadcast 192.168.1.255
        ether 0:e0:0:c5:73:fa

bash-2.05# uname -a
SunOS itsysdb1 5.9 Generic_117171-07 sun4us sparc FJSV,GPUZC-M


出不来哦


bash-2.05# kstat -p | grep ^hme        
hme:0:hme0:     
hme:0:hme0:align_errors 0
hme:0:hme0:allocbfail   0
hme:0:hme0:asic_rev     193
hme:0:hme0:babble       0
hme:0:hme0:brdcstrcv    72076948
hme:0:hme0:brdcstxmt    130791
hme:0:hme0:buff 0
hme:0:hme0:carrier_errors       0
hme:0:hme0:class        net
hme:0:hme0:code_violations      0
hme:0:hme0:collisions   0
hme:0:hme0:crc  283
hme:0:hme0:crtime       205.6814874
hme:0:hme0:defer        0
hme:0:hme0:defer_xmts   0
hme:0:hme0:dmarh_inits  0
hme:0:hme0:dmaxh_inits  0
hme:0:hme0:eop_error    0
hme:0:hme0:ex_collisions        0
hme:0:hme0:fcs_errors   283
hme:0:hme0:first_collisions     0
hme:0:hme0:framing      0
hme:0:hme0:ierrors      283
hme:0:hme0:ifspeed      100000000
hme:0:hme0:inits        9
hme:0:hme0:ipackets     3158378841
hme:0:hme0:ipackets64   80467790169
hme:0:hme0:jabber       0
hme:0:hme0:len_errors   0
hme:0:hme0:link_down_cnt        0
hme:0:hme0:link_duplex  0
hme:0:hme0:link_up      1
hme:0:hme0:macrcv_errors        0
hme:0:hme0:macxmt_errors        0
hme:0:hme0:missed       0
hme:0:hme0:multircv     6
hme:0:hme0:multixmt     6
hme:0:hme0:newfree      0
hme:0:hme0:no_rbufs     0
hme:0:hme0:no_tbufs     0
hme:0:hme0:no_tmds      1375
hme:0:hme0:nocanput     0
hme:0:hme0:nocarrier    0
hme:0:hme0:norcvbuf     0
hme:0:hme0:noxmtbuf     0
hme:0:hme0bytes       4095524753
hme:0:hme0bytes64     14826027663249
hme:0:hme0errors      0
hme:0:hme0flo 0
hme:0:hme0packets     686257988
hme:0:hme0packets64   69405734724
hme:0:hme0:phy_failures 0
hme:0:hme0:rbytes       2437085191
hme:0:hme0:rbytes64     34899046365191
hme:0:hme0:retry_error  0
hme:0:hme0:runt 0
hme:0:hme0:rx_error_ack 0
hme:0:hme0:rx_late_collisions   0
hme:0:hme0:rx_late_error        0
hme:0:hme0:rx_parity_error      0
hme:0:hme0:rx_tag_error 0
hme:0:hme0:rxinits      0
hme:0:hme0:slv_error_ack        0
hme:0:hme0:slv_parity_error     0
hme:0:hme0:snaptime     32949675.1310695
hme:0:hme0:sqe  0
hme:0:hme0:sqe_errors   0
hme:0:hme0:tmd_error    0
hme:0:hme0:toolong_errors       0
hme:0:hme0:tx_error_ack 0
hme:0:hme0:tx_late_collisions   0
hme:0:hme0:tx_late_error        0
hme:0:hme0:tx_parity_error      0
hme:0:hme0:tx_tag_error 0
hme:0:hme0:txinits      0
hme:0:hme0:uflo 0
hme:0:hme0cvr_vendor  524311
hme:0:hmec0:class       controller
hme:0:hmec0:crtime      205.6814948
hme:0:hmec0:hard        1215275246
hme:0:hmec0:multiple_service    0
hme:0:hmec0:snaptime    32949675.1321672
hme:0:hmec0:soft        0
hme:0:hmec0:spurious    0
hme:0:hmec0:watchdog    0
bash-2.05# kstat -p | grep ^cip
cip:0:cip0:class        net
cip:0:cip0:crtime       259.5870689
cip:0:cip0:ierrors      0
cip:0:cip0:ipackets     10977479
cip:0:cip0:nocanput     0
cip:0:cip0:norcvbuf     0
cip:0:cip0:noxmtbuf     0
cip:0:cip0bytes       408397962
cip:0:cip0errors      0
cip:0:cip0packets     10985179
cip:0:cip0:rbytes       403272556
cip:0:cip0:snaptime     32949686.9643096
bash-2.05#


仔细看了一下cip0应该是fjgi
ash-2.05# prtdiag
System Configuration:  Sun Microsystems  sun4us Fujitsu PRIMEPOWER450 4x SPARC64 V
System clock frequency: 220 MHz
Memory size: 8192 Megabytes

========================= CPUs =========================

                    Run   Ecache   CPU    CPU
Brd  CPU   Module   MHz     MB    Impl.   Mask
---  ---  -------  -----  ------  ------  ----
0     0     0      1869     3.0   5        5.1
0     1     1      1869     3.0   5        5.1
0     2     2      1869     3.0   5        5.1
0     3     3      1869     3.0   5        5.1


========================= IO Cards =========================

     Bus   Freq
Brd  Type  MHz   Slot        Name                          Model
---  ----  ----  ----------  ----------------------------  --------------------
0   PCI    33            1  network-SUNW,hme                                 
0   PCI    66            1  FJSV,pwga-fjgi                Broadcom,BCM5703C  
0   PCI    66            1  fibre-channel-pci10cf,12c3                       
0   PCI    33            2  FJSV,ulsa-fjulsa/disk (block+ FUJITSU,1030      
0   PCI    33            2  FJSV,ulsa-fjulsa/disk (block+ FUJITSU,1030      
0   PCI    33            3  SUNW,XVR-100                  SUNW,375-3181      
0   PCI    33            3  fibre-channel-pci10cf,12c3                       
0   PCI    33            7  isa/su (serial)                                 
0   PCI    33           10  usb-pci108e,1103.0                              
0   PCI    33           13  ide-pci10b9,5229.c4/disk (bl+               
bash-2.05# kstat -p | grep ^fjgi
fjgi:0:fjgi0:avoid_intr 22892263
fjgi:0:fjgi0:brdcstrcv  1646383
fjgi:0:fjgi0:brdcstxmt  37
fjgi:0:fjgi0:class      net
fjgi:0:fjgi0:collisions 0
fjgi:0:fjgi0:crtime     217.5350524
fjgi:0:fjgi0:dma_hi_rq_full     0
fjgi:0:fjgi0:dma_hi_wq_full     0
fjgi:0:fjgi0:dma_rq_full        2233
fjgi:0:fjgi0:dma_wq_full        26293
fjgi:0:fjgi0:halt_state 0
fjgi:0:fjgi0:ierrors    47
fjgi:0:fjgi0:ifspeed    1000
fjgi:0:fjgi0:intr       42958186735
fjgi:0:fjgi0:ipackets   4290109455
fjgi:0:fjgi0:ipackets64 47239782415
fjgi:0:fjgi0:link_intr  9
fjgi:0:fjgi0:link_mode  1
fjgi:0:fjgi0:link_speed 1000
fjgi:0:fjgi0:link_status        1
fjgi:0:fjgi0:multircv   0
fjgi:0:fjgi0:multixmt   0
fjgi:0:fjgi0:no_rxd     0
fjgi:0:fjgi0:nocanput   0
fjgi:0:fjgi0:norcvbuf   0
fjgi:0:fjgi0:norxthread 0
fjgi:0:fjgi0:noxmtbuf   0
fjgi:0:fjgi0bytes     3097208841
fjgi:0:fjgi0:obytes64   46289959757833
fjgi:0:fjgi0:oerrors    0
fjgi:0:fjgi0:opackets   2640441619
fjgi:0:fjgi0:opackets64 49885081875
fjgi:0:fjgi0:rbytes     2952423000
fjgi:0:fjgi0:rbytes64   41827343951448
fjgi:0:fjgi0:rx_align_error     0
fjgi:0:fjgi0:rx_fcs_error       46
fjgi:0:fjgi0:rx_fragments       0
fjgi:0:fjgi0:rx_ifin_error      47
fjgi:0:fjgi0:rx_inrange 0
fjgi:0:fjgi0:rx_jabber  1
fjgi:0:fjgi0:rx_mac_ctl_cnt     0
fjgi:0:fjgi0:rx_outrange        0
fjgi:0:fjgi0:rx_th_hit  4
fjgi:0:fjgi0:rx_toolong 0
fjgi:0:fjgi0:rx_undersize       0
fjgi:0:fjgi0:rx_xoff_cnt        0
fjgi:0:fjgi0:rx_xoff_enter      0
fjgi:0:fjgi0:rx_xon_cnt 0
fjgi:0:fjgi0:sd_cmp_q_full      0
fjgi:0:fjgi0:snaptime   32950174.0093835
fjgi:0:fjgi0:tx_carrier 0
fjgi:0:fjgi0:tx_defer   0
fjgi:0:fjgi0:tx_ex_col  0
fjgi:0:fjgi0:tx_flow_done       0
fjgi:0:fjgi0:tx_late_col        0
fjgi:0:fjgi0:tx_mac_error       3
fjgi:0:fjgi0:tx_multi_col       0
fjgi:0:fjgi0:tx_one_col 0
fjgi:0:fjgi0:tx_th_hit  0
fjgi:0:fjgi0:tx_xoff_cnt        0
fjgi:0:fjgi0:tx_xon_cnt 0
fjgi:0:fjgi0:unknowns   0


哥们还有别的招吗?

[ 本帖最后由 yuhuohu 于 2009-4-28 12:43 编辑 ]

论坛徽章:
0
7 [报告]
发表于 2009-04-28 12:33 |只看该作者
目前都是靠网卡的名称来区分,
如geX, ceX, hmeX等等.学习
一下标准的方法.

论坛徽章:
2
IT运维版块每日发帖之星
日期:2016-03-19 06:20:00数据库技术版块每日发帖之星
日期:2016-07-05 06:20:00
8 [报告]
发表于 2009-04-28 15:11 |只看该作者
先查到PN,然后再找handbook.

论坛徽章:
0
9 [报告]
发表于 2009-04-28 16:13 |只看该作者
原帖由 brucewoo 于 2009-4-28 12:33 发表
目前都是靠网卡的名称来区分,
如geX, ceX, hmeX等等.学习
一下标准的方法.



差不多。一般去机器后面扫一眼就知道了。

论坛徽章:
2
IT运维版块每日发帖之星
日期:2016-03-19 06:20:00数据库技术版块每日发帖之星
日期:2016-07-05 06:20:00
10 [报告]
发表于 2009-04-28 16:53 |只看该作者
原帖由 要努力学习 于 2009-4-28 16:13 发表



差不多。一般去机器后面扫一眼就知道了。

不在现场。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP