Go to main content
Oracle® Fabric OS 1.0.2 命令参考

退出打印视图

更新时间: 2016 年 11 月
 
 

iocard

iocard 命令可在系统中添加、复位和删除 I/O 线路卡,以及显示系统中可用的 I/O 线路卡的信息。virtualization switch(虚拟化交换机)最多支持 12 个 I/O 卡,而 leaf switch(叶交换机)仅支持一个 I/O 卡。您可以在 virtualization switch(虚拟化交换机)上配置 vHBA,但不能在 leaf switch(叶交换机)上配置。


注 -  叶交换机和虚拟化交换机始终位于 embedded 插槽中。请仅对插槽 0-11 中的 I/O 模块使用 add iocardremove iocard 命令。不要对 embedded 插槽中的交换机使用这些命令。

语法

add iocard {slot|wildcard} card-type [–noconfirm]
remove iocard {*|slot}
remove iocard {*|slot} vhbas [–noconfirm]
remove iocard {*|slot} vnics [–noconfirm]
set iocard {*|slot} clear-stats [–descr=text] [–fabric-mtu=mtu] [–type=card-type]
set iocard {*|slot} reset [–descr=text] [–fabric-mtu=mtu] [–type=card-type]
show iocard
show iocard *
show iocard {slot|wildcard}
show iocard {slot|wildcard} alarms
show iocard {slot|wildcard} cpu [–detail]
show iocard {slot|wildcard} dmesg [–detail]
show iocard {slot|wildcard} errors
show iocard {slot|wildcard} ioport {*|port} [–detail]
show iocard {slot|wildcard} ioports [–detail]
show iocard {slot|wildcard} stats [–detail]
show iocard {slot|wildcard} vnics [–detail[
show iocard {slot|wildcard} warnings

其中:

  • card-type 是要添加或配置的 I/O 卡的类型。例如,gwEthernet4Port10GbCard

  • slot 是物理插槽编号。

  • port 是物理端口号。

此硬件命令具有用来确定其功能的子命令。此表介绍了子命令并提供了其语法。

子命令
说明
alarms
显示 I/O 卡的报警。
clear-stats
清除 I/O 卡的统计信息。
cpu
显示 CPU 信息。
dmsg
显示 I/O 卡的基本 OS 消息。
errors
显示 I/O 卡错误。
ioport
显示 I/O 卡的特定 ioport 的信息。
ioports
显示 I/O 卡的所有 ioport 的信息。
reset
复位某个 I/O 卡。此子命令将断开该卡的电源,在几秒后恢复供电,然后重新搜索该卡的设置。
set iocard reset 命令只会复位插槽 0-11 中的 I/O 模块。此命令不会复位 embedded 插槽中的交换机。
stats
显示 I/O 卡的统计信息。
type
指定卡的类型。
vhbas
删除连接到 I/O 卡的 vHBA。
vnics
显示或删除连接到 I/O 卡的 vNIC。
warnings
显示特定 I/O 卡的警告报警。

这些命令只作用于 I/O 卡。前面板、SCP 和 IB 网状结构网络板不受影响。

选项

选项
说明
–descr
将文本说明应用于 I/O 卡。如果说明中有包含空格的多个词,则必须使用引号括起来。
–detail
一个可选的修饰符,用于显示 I/O 卡的详细信息(如果有)。
–fabric-mtu
显示卡的网状结构网络的 MTU
–noconfirm
完成进程而不提示您确认。参数自动向任何提示回答“是”。
–type
I/O 卡的类型。例如,gwEthernet4Port10GbCard

复位某个 I/O 卡

此示例展示了如何复位 I/O 卡 2 并查看结果。

[OFOS] set iocard 2 reset
Resetting IO cards will adversely affect any virtual IO resource connected to them and
thus cut I/O to the physical servers.  Are you sure you want to reset the IO card in
slot 2 (y/n)? y
[OFOS] show iocard
slot         state      descr     type                        v-resources
-------------------------------------------------------------------------
1            up/down              gwEthernet4Port10GbCard     0
2            up/up                gwEthernet4Port10GbCard     0
3            up/up                gwEthernet4Port40GbCard     0
4            up/up                gwEthernet4Port10GbCard     0
embedded     up/up                spineIb4Gw2PortCard         0
5 records displayed

示例:删除某个 I/O 卡

此示例展示了如何显示所有 I/O 卡并删除插槽 3 中的卡。

[OFOS] show iocard ?
Possible completions:
  2           sanFc2Port16GbCard in slot 2
  3           gwEthernet4Port10GbCard in slot 3
  4           gwEthernet4Port40GbCard in slot 4
  embedded    nsmCard in slot 5
  7           sanFc2Port16GbCard in slot 7
  8           ibLr4Port100GbCard in slot 8
  9           ibSfm4Port100GbCard in slot 9
  10          ibSlm8Port100GbCard in slot 10
[OFOS] remove iocard 3
This may disrupt traffic on all physical server that happen to be using the IO card.
Remove iocard in slot 3 (y/n)? y

示例:删除 I/O 卡上的某个 VHBA

此示例展示了如何删除连接到插槽 2 中的 I/O 卡的所有 vHBA。

[OFOS] remove iocard 2 vhbas
Remove all vhbas from iocard in slot 2 (y/n)? y

示例:显示 I/O 卡信息

此示例展示了如何查看 I/O 卡 2 的信息。

[OFOS] show iocard 2
--------------------------------
slot     2
state    up/up
descr
type     gwEthernet4Port40GbCard
vnics    0
qos      default
acl      xmsGeneratedAclSet
enables  --s--
--------------------------------
1 record displayed

字段 v-resources 指示与此卡相关联的 Oracle Fabric OS 虚拟资源(vNIC 和 vHBA)的数量。vNIC 只能绑定到网络以太网卡。

示例:显示 I/O 卡上的某个端口

此示例显示了 I/O 卡 3 的端口信息。

[OFOS] show iocard 3 ioport
name   type                  state     descr    mode     lag    access-vlan   guid
---------------------------------------------------------------------------------------------
3/1  gwEthernet10GbPort      up/up              trunk           1             10e08b50870102
3/2  gwEthernet10GbPort      up/up              trunk           1             10e08b50870102
3/3  gwEthernet10GbPort      up/up              trunk           1             10e08b50870102
3/4  gwEthernet10GbPort      up/up              trunk           1             10e08b50870102
4 records displayed

字段 v-resources 指示与此卡相关联的 Oracle Fabric OS 虚拟资源(vNIC 和 vHBA)的数量。vNIC 只能绑定到网络以太网卡。