Emulex Logo
OneCoreā„¢ Storage SDK Release 11.2
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
elxu_commands.h File Reference
#include "elxu_device.h"
#include <ocs_ioctl.h>

Go to the source code of this file.

Detailed Description

Defines the elxsdkutil command data types and includes the table of commands.

Definition in file elxu_commands.h.

Data Structures

struct  cmd_table_entry_t
 

Macros

#define ASCII_VALUE_OFFSET   1000
 
#define CLEAR_COUNTER   (ASCII_VALUE_OFFSET + 99)
 
#define CLEAR_OVERFLOW_FLAG   (ASCII_VALUE_OFFSET + 100)
 
#define CLEAR_ALL_COUNTER   (ASCII_VALUE_OFFSET + 101)
 
#define TEST_DUMP   (ASCII_VALUE_OFFSET + 102)
 
#define FAT_DUMP   (ASCII_VALUE_OFFSET + 103)
 
#define EFD_DUMP   (ASCII_VALUE_OFFSET + 104)
 
#define ECD_DUMP   (ASCII_VALUE_OFFSET + 105)
 
#define WWNN   (ASCII_VALUE_OFFSET + 106)
 
#define WWPN   (ASCII_VALUE_OFFSET + 107)
 
#define INITIATOR   (ASCII_VALUE_OFFSET + 108)
 
#define TARGET   (ASCII_VALUE_OFFSET + 109)
 
#define CONNECTION_HANDLE   (ASCII_VALUE_OFFSET + 111)
 
#define CONNECTION_ID   (ASCII_VALUE_OFFSET + 114)
 
#define CMD_HOSTNAME   (ASCII_VALUE_OFFSET + 115)
 
#define LINKCFG   (ASCII_VALUE_OFFSET + 116)
 
#define BUFSIZE   (ASCII_VALUE_OFFSET + 117)
 
#define SAVED   (ASCII_VALUE_OFFSET + 118)
 
#define CLRSAVED   (ASCII_VALUE_OFFSET + 119)
 
#define PROFILE_ID   (ASCII_VALUE_OFFSET + 120)
 
#define WQES   (ASCII_VALUE_OFFSET + 121)
 
#define CQES   (ASCII_VALUE_OFFSET + 122)
 
#define RQES   (ASCII_VALUE_OFFSET + 123)
 
#define MQES   (ASCII_VALUE_OFFSET + 124)
 
#define EQES   (ASCII_VALUE_OFFSET + 125)
 
#define QENTRIES   (ASCII_VALUE_OFFSET + 126)
 
#define PROTOCOL_NAME   (ASCII_VALUE_OFFSET + 127)
 
#define FIRMWARE_RESET   (ASCII_VALUE_OFFSET + 128)
 
#define FDB_DUMP   (ASCII_VALUE_OFFSET + 129)
 
#define SFP_DIAG_DATA   (ASCII_VALUE_OFFSET + 130)
 
#define LOOPBACK_TYPE   (ASCII_VALUE_OFFSET + 131)
 
#define RETRY_COUNT   (ASCII_VALUE_OFFSET + 132)
 
#define LINKSPEED   (ASCII_VALUE_OFFSET + 133)
 
#define LINKTOPOLOGY   (ASCII_VALUE_OFFSET + 134)
 
#define CHAP_TYPE   (ASCII_VALUE_OFFSET + 135)
 
#define SFP_TRANSCEIVER   (ASCII_VALUE_OFFSET + 136)
 
#define VLAN_ID   (ASCII_VALUE_OFFSET + 137)
 
#define HBA_ID   (ASCII_VALUE_OFFSET + 138)
 
#define PORT_ID   (ASCII_VALUE_OFFSET + 149)
 
#define TRUNK_MODE   (ASCII_VALUE_OFFSET + 150)
 
#define PORT_MIGRATION   (ASCII_VALUE_OFFSET + 151)
 
#define OCS_CLUST_TARGET_KEY_RETCNT   (9999)
 
#define OCS_ISCSI_PORTAL_GRPTAG   (1)
 
#define OCS_ISCSI_TCP_PORT   (3260)
 
#define ELXU_CMD_VLAN_SHOW_BUFFER_SIZE   (4096)
 

Typedefs

typedef int(* handler_t )(int, char **)
 

Functions

int elxu_cmd_file_info (int argc, char **argv)
 Command handler for the file-info command. More...
 
int elxu_cmd_driver_info (int argc, char **argv)
 Command handler for the driver-info command. More...
 
int elxu_cmd_list (int argc, char **argv)
 Command handler for the list command. More...
 
int elxu_cmd_read (int argc, char **argv)
 Command handler for the read command. More...
 
int elxu_cmd_write (int argc, char **argv)
 Command handler for the write command. More...
 
int elxu_cmd_version (int argc, char **argv)
 Command handler for the version command. More...
 
int elxu_cmd_cmp (int argc, char **argv)
 Command handler for the cmp command. More...
 
int elxu_cmd_dump (int argc, char **argv)
 Command handler for the dump command. More...
 
int elxu_cmd_efdc (int argc, char **argv)
 Command handler for the efdc command. More...
 
int elxu_cmd_gendump (int argc, char **argv)
 Command handler for the gendump command. More...
 
int elxu_cmd_dump_to_host (int arg, char **argv)
 Command handler for the dump command. More...
 
int elxu_cmd_board_temp (int argc, char **argv)
 Command handler for the board temperature. More...
 
int elxu_cmd_objenum (int argc, char **argv)
 Command handler for the objenum command. More...
 
int elxu_cmd_sfp (int argc, char **argv)
 Command handler for the sfp command. More...
 
int elxu_cmd_read_status (int argc, char **argv)
 Command handler for the read-status command. More...
 
int elxu_cmd_read_link_status (int argc, char **argv)
 Command handler for the read-link-status command. More...
 
int elxu_cmd_get_dport_stats (int argc, char **argv)
 Command handler for the get-dport-stats command. More...
 
int elxu_cmd_get_dynamic_dport_status (int argc, char **argv)
 
int elxu_cmd_set_dport_dynamic_mode (int argc, char **argv)
 
int elxu_cmd_diag_loopback_tests (int argc, char **argv)
 
int elxu_cmd_read_rev (int argc, char **argv)
 Command handler for the read-rev command. More...
 
int elxu_cmd_ack_frequency (int argc, char **argv)
 Command handler for the ack-frequency command. More...
 
int elxu_cmd_delayed_ack_timer (int argc, char **argv)
 Command handler for the delayed-ack-timer command. More...
 
int elxu_cmd_constrain_window (int argc, char **argv)
 Command handler for the constrain-window command. More...
 
int elxu_cmd_driver_dump (int argc, char **argv)
 Command handler for the driver-dump command. More...
 
int elxu_cmd_mgmt_info (int argc, char **argv)
 Command handler for the mgmt-info command. More...
 
int elxu_cmd_connection_info (int argc, char **argv)
 Command handler for the connection-info command. More...
 
int elxu_cmd_vlan (int argc, char **argv)
 Command handler for the vlan command. More...
 
int elxu_cmd_route (int argc, char **argv)
 Command handler for the route command. More...
 
int elxu_cmd_add_ip (int argc, char **argv)
 Command handler for the add-ip command. More...
 
int elxu_cmd_remove_ip (int argc, char **argv)
 Command handler for the remove-ip command. More...
 
int elxu_cmd_show_ips (int argc, char **argv)
 Command handler for the show-ips command. More...
 
int elxu_cmd_iclusttgt (int argc, char **argv)
 
int elxu_cmd_set_mac_ocs (int argc, char **argv)
 Command handler for the set-mac command. More...
 
int elxu_cmd_set_nv_mac_pt (int argc, char **argv)
 Command handler for the set-nv-mac command. More...
 
int elxu_cmd_show_mac_ocs (int argc, char **argv)
 Command handler for the show-mac command for the OCS drivers. More...
 
int elxu_cmd_show_mac_pt (int argc, char **argv)
 Command handler for the show-mac command for the elx_pt driver. More...
 
int elxu_cmd_show_wwn (int argc, char **argv)
 Command handler for the show-wwn command. More...
 
int elxu_cmd_set_wwn (int argc, char **argv)
 Command handler for the set-wwn command. More...
 
int elxu_cmd_create_vport (int argc, char **argv)
 Command handler for the create-vport command. More...
 
int elxu_cmd_remove_vport (int argc, char **argv)
 Command handler for the remove-vport command. More...
 
int elxu_cmd_help (int argc, char **argv)
 Command handler for the help command. More...
 
int elxu_cmd_set_linkcfg (int argc, char **argv)
 Command handler for the linkcfg-set command. More...
 
int elxu_cmd_get_linkcfg (int argc, char **argv)
 Command handler for the linkcfg-get command. More...
 
int elxu_cmd_set_linkspeed (int argc, char **argv)
 Command handler for the link-speed-set command. More...
 
int elxu_cmd_get_linkspeed (int argc, char **argv)
 Command handler for the linkspeed-get command. More...
 
int elxu_cmd_set_linktopology (int argc, char **argv)
 Command handler for the linktopology-set command. More...
 
int elxu_cmd_get_linktopology (int argc, char **argv)
 Command handler for the linktopology-get command. More...
 
int elxu_cmd_get_profile_list (int argc, char **argv)
 Command handler for the get-profile-list command. More...
 
int elxu_cmd_get_active_profile (int argc, char **argv)
 Command handler for the get-active-profile command. More...
 
int elxu_cmd_set_active_profile (int argc, char **argv)
 Command handler for the set-active-profile command. More...
 
int elxu_cmd_get_profile_list_pt (int argc, char **argv)
 Command handler for the get-profile-list command for the elx_pt driver. More...
 
int elxu_cmd_get_active_profile_pt (int argc, char **argv)
 Command handler for the get-active-profile command for the elx_pt driver. More...
 
int elxu_cmd_set_active_profile_pt (int argc, char **argv)
 Command handler for the set-active-profile command for the elx_pt driver. More...
 
int elxu_cmd_get_port_protocol (int argc, char **argv)
 Command handler for the get-port-protocol command. More...
 
int elxu_cmd_set_port_protocol (int argc, char **argv)
 Command handler for the set-port-protocol command. More...
 
int elxu_cmd_firmware_reset (int argc, char **argv)
 Command handler for the firmware-reset command. More...
 
int elxu_cmd_firmware_reset_pt (int argc, char **argv)
 Send a firmware reset via the elx_pt driver. More...
 
int elxu_cmd_port_migration (int argc, char **argv)
 Command handler for the port-migration command. More...
 
int elxu_cmd_get_parity_stats (int argc, char **argv)
 Command handler for the get-parity-stats command. More...
 
int elxu_cmd_unload (int argc, char **argv)
 Command handler for user space driver unload. More...
 
int elxu_cmd_add_chap (int argc, char **argv)
 Command handler for the add-chap command. More...
 
int elxu_cmd_remove_chap (int argc, char **argv)
 Command handler for remove-chap. More...
 
int elxu_cmd_show_chap_list (int argc, char **argv)
 Command handler for show-chap. More...
 
int elxu_cmd_enable_jumbo (int argc, char **argv)
 Command handler for the enable-jumbo command. More...
 
int elxu_cmd_disable_jumbo (int argc, char **argv)
 Command handler for the disable-jumbo command. More...
 
int elxu_cmd_enable_header_digest (int argc, char **argv)
 Command handler for enable-header-digest. More...
 
int elxu_cmd_disable_header_digest (int argc, char **argv)
 Command handler for the disable-header-digest comand. More...
 
int elxu_cmd_enable_data_digest (int argc, char **argv)
 Command handler for enable-data-digest. More...
 
int elxu_cmd_disable_data_digest (int argc, char **argv)
 Command handler for the disable-data-digest command. More...
 
int elxu_cmd_set_tcp_window_size (int argc, char **argv)
 Command handler for the set-tcp-window-size command. More...
 
int elxu_cmd_get_tcp_window_size (int argc, char **argv)
 Command handler for get-tcp-window-size. More...
 
int elxu_cmd_set_tcp_window_scale (int argc, char **argv)
 Command handler for set-tcp-window-scale. More...
 
int elxu_cmd_get_tcp_window_scale (int argc, char **argv)
 Command handler for get-tcp-window-scale. More...
 
int elxu_cmd_set_max_connections (int argc, char **argv)
 Command handler for set-max-connections. More...
 
int elxu_cmd_get_max_connections (int argc, char **argv)
 Command handler for get-max-connections. More...
 
int elxu_cmd_start_listen (int argc, char **argv)
 Command handler for start-listen. More...
 
int elxu_cmd_stop_listen (int argc, char **argv)
 Command handler for stop-listen. More...
 
int elxu_cmd_set_require_chap (int argc, char **argv)
 Command handler for set-require-chap. More...
 
int elxu_cmd_get_require_chap (int argc, char **argv)
 Command handler for get-require-chap. More...
 
int elxu_cmd_set_gateway (int argc, char **argv)
 Command handler for the set-gateway command. More...
 
int elxu_cmd_get_gateway (int argc, char **argv)
 Command handler for the get-gateway command. More...
 
int elxu_cmd_node_abort_cnt (int argc, char **argv)
 Command handler for the node-abort-cnt command. More...
 
int elxu_cmd_fw_diagnostic_log (int argc, char **argv)
 Command handler for the fw-diag-log command. More...
 
int elxu_cmd_get_fdmi_hba_list (int argc, char **argv)
 Command handler for the elxu_cmd_get_fdmi_hba_list command. More...
 
int elxu_cmd_get_fdmi_hba_info (int argc, char **argv)
 Command handler for the elxu_cmd_get_fdmi_hba_info command. More...
 
int elxu_cmd_get_fdmi_port_list (int argc, char **argv)
 Command handler for the elxu_cmd_get_fdmi_port_list command. More...
 
int elxu_cmd_get_fdmi_port_info (int argc, char **argv)
 Command handler for the elxu_cmd_get_fdmi_port_info command. More...
 
int elxu_cmd_set_trunk_mode (int argc, char **argv)
 Command handler for elxu_cmd_set_trunk_mode command. More...
 
int elxu_cmd_get_trunk_config (int argc, char **argv)
 Command handler for elxu_cmd_get_trunk_config command. More...
 
void usage ()
 Show program usage. More...
 

Variables

static cmd_table_entry_t cmd_table []
 

Macro Details

#define ASCII_VALUE_OFFSET   1000

Definition at line 57 of file elxu_commands.h.

#define BUFSIZE   (ASCII_VALUE_OFFSET + 117)

Definition at line 74 of file elxu_commands.h.

#define CHAP_TYPE   (ASCII_VALUE_OFFSET + 135)

Definition at line 92 of file elxu_commands.h.

#define CLEAR_ALL_COUNTER   (ASCII_VALUE_OFFSET + 101)

Definition at line 61 of file elxu_commands.h.

#define CLEAR_COUNTER   (ASCII_VALUE_OFFSET + 99)

Definition at line 59 of file elxu_commands.h.

#define CLEAR_OVERFLOW_FLAG   (ASCII_VALUE_OFFSET + 100)

Definition at line 60 of file elxu_commands.h.

#define CLRSAVED   (ASCII_VALUE_OFFSET + 119)

Definition at line 76 of file elxu_commands.h.

#define CMD_HOSTNAME   (ASCII_VALUE_OFFSET + 115)

Definition at line 72 of file elxu_commands.h.

#define CONNECTION_HANDLE   (ASCII_VALUE_OFFSET + 111)

Definition at line 70 of file elxu_commands.h.

#define CONNECTION_ID   (ASCII_VALUE_OFFSET + 114)

Definition at line 71 of file elxu_commands.h.

#define CQES   (ASCII_VALUE_OFFSET + 122)

Definition at line 79 of file elxu_commands.h.

#define ECD_DUMP   (ASCII_VALUE_OFFSET + 105)

Definition at line 65 of file elxu_commands.h.

#define EFD_DUMP   (ASCII_VALUE_OFFSET + 104)

Definition at line 64 of file elxu_commands.h.

#define ELXU_CMD_VLAN_SHOW_BUFFER_SIZE   (4096)

Definition at line 195 of file elxu_commands.h.

#define EQES   (ASCII_VALUE_OFFSET + 125)

Definition at line 82 of file elxu_commands.h.

#define FAT_DUMP   (ASCII_VALUE_OFFSET + 103)

Definition at line 63 of file elxu_commands.h.

#define FDB_DUMP   (ASCII_VALUE_OFFSET + 129)

Definition at line 86 of file elxu_commands.h.

#define FIRMWARE_RESET   (ASCII_VALUE_OFFSET + 128)

Definition at line 85 of file elxu_commands.h.

#define HBA_ID   (ASCII_VALUE_OFFSET + 138)

Definition at line 95 of file elxu_commands.h.

#define INITIATOR   (ASCII_VALUE_OFFSET + 108)

Definition at line 68 of file elxu_commands.h.

#define LINKCFG   (ASCII_VALUE_OFFSET + 116)

Definition at line 73 of file elxu_commands.h.

#define LINKSPEED   (ASCII_VALUE_OFFSET + 133)

Definition at line 90 of file elxu_commands.h.

#define LINKTOPOLOGY   (ASCII_VALUE_OFFSET + 134)

Definition at line 91 of file elxu_commands.h.

#define LOOPBACK_TYPE   (ASCII_VALUE_OFFSET + 131)

Definition at line 88 of file elxu_commands.h.

#define MQES   (ASCII_VALUE_OFFSET + 124)

Definition at line 81 of file elxu_commands.h.

#define OCS_CLUST_TARGET_KEY_RETCNT   (9999)

Definition at line 100 of file elxu_commands.h.

#define OCS_ISCSI_PORTAL_GRPTAG   (1)

Definition at line 101 of file elxu_commands.h.

#define OCS_ISCSI_TCP_PORT   (3260)

Definition at line 102 of file elxu_commands.h.

#define PORT_ID   (ASCII_VALUE_OFFSET + 149)

Definition at line 96 of file elxu_commands.h.

#define PORT_MIGRATION   (ASCII_VALUE_OFFSET + 151)

Definition at line 98 of file elxu_commands.h.

#define PROFILE_ID   (ASCII_VALUE_OFFSET + 120)

Definition at line 77 of file elxu_commands.h.

#define PROTOCOL_NAME   (ASCII_VALUE_OFFSET + 127)

Definition at line 84 of file elxu_commands.h.

#define QENTRIES   (ASCII_VALUE_OFFSET + 126)

Definition at line 83 of file elxu_commands.h.

#define RETRY_COUNT   (ASCII_VALUE_OFFSET + 132)

Definition at line 89 of file elxu_commands.h.

#define RQES   (ASCII_VALUE_OFFSET + 123)

Definition at line 80 of file elxu_commands.h.

#define SAVED   (ASCII_VALUE_OFFSET + 118)

Definition at line 75 of file elxu_commands.h.

#define SFP_DIAG_DATA   (ASCII_VALUE_OFFSET + 130)

Definition at line 87 of file elxu_commands.h.

#define SFP_TRANSCEIVER   (ASCII_VALUE_OFFSET + 136)

Definition at line 93 of file elxu_commands.h.

#define TARGET   (ASCII_VALUE_OFFSET + 109)

Definition at line 69 of file elxu_commands.h.

#define TEST_DUMP   (ASCII_VALUE_OFFSET + 102)

Definition at line 62 of file elxu_commands.h.

#define TRUNK_MODE   (ASCII_VALUE_OFFSET + 150)

Definition at line 97 of file elxu_commands.h.

#define VLAN_ID   (ASCII_VALUE_OFFSET + 137)

Definition at line 94 of file elxu_commands.h.

#define WQES   (ASCII_VALUE_OFFSET + 121)

Definition at line 78 of file elxu_commands.h.

#define WWNN   (ASCII_VALUE_OFFSET + 106)

Definition at line 66 of file elxu_commands.h.

#define WWPN   (ASCII_VALUE_OFFSET + 107)

Definition at line 67 of file elxu_commands.h.

Type Details

typedef int(* handler_t)(int, char **)

Definition at line 45 of file elxu_commands.h.

Function Details

int elxu_cmd_diag_loopback_tests ( int  argc,
char **  argv 
)

Definition at line 1352 of file elxu_commands.c.

int elxu_cmd_get_dynamic_dport_status ( int  argc,
char **  argv 
)

Definition at line 1336 of file elxu_commands.c.

int elxu_cmd_iclusttgt ( int  argc,
char **  argv 
)

Definition at line 1752 of file elxu_commands.c.

int elxu_cmd_set_dport_dynamic_mode ( int  argc,
char **  argv 
)

Definition at line 1306 of file elxu_commands.c.

void usage ( void  )

Show program usage.

Description
Displays program help text.

Definition at line 5550 of file elxu_commands.c.

Variable Details

cmd_table_entry_t cmd_table[]
static

Definition at line 199 of file elxu_commands.h.