9.2.15.1 ahfctl switch
Use the ahfctl switch command to manage manage InfiniBand
and RoCE switches.
Syntax
ahfctl switch
[-h]
[-configure]
[-switches SWITCHES]
[-status]
[-json]
[-deconfigure]
[-debug]
Parameters
Table 9-42 ahfctl switch Command Parameters
| Parameter | Description |
|---|---|
|
|
Specify to configure InfiniBand and RoCE switches. |
|
|
Specify a comma-delimited list of switches to configure. For example: switch1,switch2,switch3 |
|
|
Specify to get configuration details of InfiniBand and RoCE switches. |
|
|
Specify to get configuration details of InfiniBand and RoCE switches in JSON format. |
|
|
Specify to remove configuration details of InfiniBand and RoCE switches from AHF. |
|
|
Specify to run the debug script. |
Example 9-41 ahfctl switch examples
- To configure InfiniBand and RoCE
switches:
ahfctl switch -configure - To store configuration details of the switches
specified:
ahfctl switch -configure -switches sw1,sw2,sw3 - To get configuration details of a
switch:
ahfctl switch -status - To get configuration details of a switch in JSON
format:
ahfctl switch -status -json - To remove configuration details of a switch from
AHF:
ahfctl switch -deconfigure
RAT_IBSWITCH_USER environment
variable:export RAT_IBSWITCH_USER=userRAT_IBSWITCH_USER environment
variable:export RAT_IBSWITCH_USER=userNote:
AHF does not discover RoCE switches automatically. You must provide a list of available switches using theRAT_SWITCHES environment variable or
while running the ahfctl switch -configure command.
export RAT_SWITCHES="scaqap06sw-roceb1,scaqap06sw-rocea1"
ahfctl switch -configure -switches sw1,sw2,sw3
You can also configure RoCE switches by running the ahfctl switch
-configure command without specifying a comma-delimited list of RoCE
switches. When you run the ahfctl switch -configure command, AHF
will prompt you to enter a comma-delimited list switch names.