ofedctrl command
Loads and unloads the ofed_core kernel extension.
Syntax
ofedctrl { [-k KernextName] -l|u|q } | [ -c | -p ParameterName=Value ] | -h
Flags
Item | Description |
---|---|
-c | Reloads the configuration file if the file was edited. |
-h | Specifies the usage. |
-k KernextName | Specifies the kernel extension path. By default, the /usr/lib/drivers/ofed_core path is used. |
-l | Loads the kernel extension. |
-p ParameterName=Value | Sets the value of a parameter directly on the
command line. Note: The values that are set by using the
-p option
are not persistent. The -p option changes only the
current configuration. It does not update the configuration file.
Changes that are made by using the -p option does
not apply after the system is restarted. |
-q | Indicates whether the kernel extension is loaded or not. |
-u | Unloads the kernel extension. |
Example
- To determine whether the kernel extension is loaded, enter the following command:
# ofedctrl -q ---------------------------------------------- Current Status ---------------------------------------------- ofed_core kernel ext : loaded ---------------------------------------------- Current Settings ---------------------------------------------- tavor_quirk : 0 cma_response_timeout : 20 def_prec2sl : 3 mad_sendq_size : 512 mad_recvq_size : 512 max_timeout : 21 unify_tcp_port_space : 0 mcast_leave_retries : 3 delay_kill : 10000 delay_between_signals : 10000 bind_route_interface : 0 cm_connect_timeout : 8000 ms cm_connect_max_retry : 15 cm_disconnect_timeout : 1000 ms cm_disconnect_max_retry : 2 enforce_interface_state : 0 ras_log_level : (1) WARNING ----------------------------------------------
- To load the
ofed_core
kernel extension and set the value of ras_log_level parameter to 2, enter the following command:# ofedctrl -p ras_log_level=2