SYNOPSYS

ibis [-port_num <port number to attach to>]

DESCRIPTION

ibis is a \s-1TCL\s0 shell extended with interface for sending and receiving \s-1IB\s0 management datagrams (\s-1MADS\s0). To use this shell you will write \s-1TCL\s0 code that excersizes the regular \s-1TCL\s0 command and the special \s-1API\s0 provided by this extension. Interactive use is also possible and is greatly enhanced if tclreadline package is available on the machine.

The following sub sections provide detailed definition for the \s-1API\s0 and global objects defined by the extension. The different MADs APIs are group by the management class.

IBIS Constants

These constants are provided by \s-1IBIS:\s0

\$1

IBIS Functions

This section provide the details about the functions \s-1IBIS\s0 exposes. They all return 0 on succes.

[return list] ibis_get_local_ports_info

Return the list of available \s-1IB\s0 ports with \s-1GUID\s0, \s-1LID\s0, state and port number.

[ returns int ] ibis_init

Initialize ibis object

[ returns int ] ibis_set_verbosity level

Change the log verbosity

[ returns int ] ibis_set_port guid

Set the port \s-1IBIS\s0 is attached to and initialize all sub packages. Must be called once during ibis operation.

[ returns new_uint64_t ] ibis_get_port

Provide the \s-1GUID\s0 of the port \s-1IBIS\s0 is attached to

[ returns int ] ibis_set_transaction_timeout timeout_ms

Set the transaction time out in [msec]

[ returns int ] ibis_exit

Exit \s-1IBIS\s0.

[ returns int ] ibis_puts verbosity msg

Appends a message to the OpenSM log

The \s-1IBIS\s0 options are available through the predefined object: ibis_opts. It can be manipulated using the standard Tcl methods: cget and configure. Examples:

   ibis_opts cget -force_log_flush

ibis_opts configure -force_log_flush TRUE The following are the different options that can be configured:

[ Member data: returns boolean_t * ] -single_thread

Run single threaded

[ Member data: returns boolean_t * ] -force_log_flush

If \s-1TRUE\s0 - forces flash after each log message (\s-1TRUE\s0).

[ Member data: returns uint8_t * ] -log_flags

The log levels to be used

[ Member data: returns char * ] -log_file

The name of the log file to be used.Must be configured before ibis_init is used to make an affect

[ Member data: returns uint64_t * ] -sm_key

The SM_Key to be used when sending SubnetMgt and SubnetAdmin MADs

[ Member data: returns uint64_t * ] -m_key

The M_Key to be used when sending SubnetMgt

[ Member data: returns uint64_t * ] -v_key

The Vendor Key to be used when sending Vendor Specific MADs.

IBPM

\s-1IBPM\s0 stands for \s-1IB\s0 Performance Monitoring MADs. \s-1IB\s0 provides standard facilities for tracking statistics on every port. This section provide the details about the functions \s-1IBPM\s0 exposes. They all return 0 on succes.

[ returns int ] pmMultiMaxGet

Obtain the maximal number of parallel queries that can be sent

[ returns int ] pmGetPortCounters lid port_select

Send a \*(L"PortCounters\*(R" query to teh given \s-1LID\s0 and port

[ returns int ] pmGetPortCountersMulti num lid_list port_select_list

Send a batch of \*(L"PortCounters\*(R" queries to the given list of LIDs and ports. num - defines the number of elements in each list.

[ returns int ] pmGetExtPortCountersMulti num lid_list port_select_list

Send a batch of \*(L"ExtendedPortCounters\*(R" queries to the given list of LIDs and ports. num - defines the number of elements in each list.

[ returns int ] pmClrAllCounters lid port_select

Sends a command to \*(L"clear all counters\*(R" on the given \s-1LID\s0 and port

[ returns int ] pmClrAllCountersMulti num lid_list port_select_list

Send a batch of \*(L"clear all counters\*(R" commands to the given list of LIDs and ports. num - defines the number of elements in each list.

IBSAC

\s-1IBSAC\s0 stands for \s-1IB\s0 Subnet Administrator (\s-1SA\s0) Client. It provide means to query the \s-1SA\s0 for information about the various objects it manages The following sections describe the concepts behind the \s-1SAC\s0 interface and then provides detailed description of each attribute that can be queried.

\s-1IBSAC\s0 uses predefined global objects to facilitate \s-1SA\s0 Queries. Such objects are named sac<Attribute>Query. Each such object exposes a standard set of methods:

dump

dump out all fields and values for the obejct

cget -<field>:

obtain the value of the given field

configure -<field> <value>:

set the field value

get <comp mask>:

query the \s-1SA\s0 for one record using the component mask and field values as set on the query object

getTable <comp mask>:

query the \s-1SA\s0 for all records matching component mask and field values as set on the query object Some \s-1SA\s0 maintained objects support the \*(L"set\*(R" and \*(L"delete\*(R" methods. In that case the following methods are made available on the corresponding query object:

set <comp mask>:

send a set method to the \s-1SA\s0 with the component mask and field values as set on the query object

delete <comp mask>:

send a delete method to the \s-1SA\s0 with the component mask and field values as set on the query object This section describes the values returned from the get/getTable/set/delete methods of the query objects: Each query returns a list (or one) identifiers (pointers) for objects. There identifiers are formatted according to the type of object they point to using the following prefixes: Queries embedding Subnet Management Attributes:

ni:<idx> = node info
nr:<idx> = node info record (\s-1SA\s0 \s-1RID\s0 + node info)
pi:<idx> = port info
pir:<idx> = port info record (\s-1SA\s0 \s-1RID\s0 + port info)
smi:<idx> = \s-1SM\s0 info
smir:<idx> = \s-1SM\s0 info record (\s-1SA\s0 \s-1RID\s0 + \s-1SM\s0 info)
swi:<idx> = switch info
swir:<idx> = switch info record (\s-1SA\s0 \s-1RID\s0 + switch info)
slvt:<idx> = \s-1SL\s0 to \s-1VL\s0 table
slvr:<idx> = \s-1SL\s0 to \s-1VL\s0 table Record (\s-1SA\s0 \s-1RID\s0 + \s-1SL\s0 to \s-1VL\s0 table)
pkt:<idx> = PKey table
pkr:<idx> = PKey table record (\s-1SA\s0 \s-1RID\s0 + PKey table)

Queries of non embedded attributes:

link:<idx> = link record
path:<idx> = path record
lft:<idx> = Linear forwarding table
mcm:<idx> = Multicast Member Record
cpi:<idx> = \s-1SA\s0 Class Port Info
info:<idx> = Inform info (registration of event forwarding)
svc:<idx> = Service Record
vlarb:<idx>= \s-1VL\s0 Arbitration table record

Component mask bits:

---- class sacNodeInfo Fields:

[ Member data: returns uint8_t * ] -base_version
[ Member data: returns uint8_t * ] -class_version
[ Member data: returns uint8_t * ] -node_type
[ Member data: returns uint8_t * ] -num_ports
[ Member data: returns ib_net64_t * ] -sys_guid
[ Member data: returns ib_net64_t * ] -node_guid
[ Member data: returns ib_net64_t * ] -port_guid
[ Member data: returns ib_net16_t * ] -partition_cap
[ Member data: returns ib_net16_t * ] -device_id
[ Member data: returns ib_net32_t * ] -revision
[ Member data: returns ib_net32_t * ] -port_num_vendor_id
[ Member : returns void ] delete

---- class sacNodeRec \s-1RID\s0 Fields:

[ Member data: returns ib_net16_t * ] -lid
[ Member data: returns sacNodeInfo * ] -node_info
[ Member data: returns ib_node_desc_t * ] -node_desc

Methods:

[ Member : returns char * ] get comp_mask
[ Member : returns char * ] getTable comp_mask
[ Member : returns void ] delete

Component mask bits:

---- class sacPortInfo Fields:

[ Member data: returns ib_net64_t * ] -m_key
[ Member data: returns ib_net64_t * ] -subnet_prefix
[ Member data: returns ib_net16_t * ] -base_lid
[ Member data: returns ib_net16_t * ] -master_sm_base_lid
[ Member data: returns ib_net32_t * ] -capability_mask
[ Member data: returns ib_net16_t * ] -diag_code
[ Member data: returns ib_net16_t * ] -m_key_lease_period
[ Member data: returns uint8_t * ] -local_port_num
[ Member data: returns uint8_t * ] -link_width_enabled
[ Member data: returns uint8_t * ] -link_width_supported
[ Member data: returns uint8_t * ] -link_width_active
[ Member data: returns uint8_t * ] -state_info1

LinkSpeedSupported and PortState

[ Member data: returns uint8_t * ] -state_info2

PortPhysState and LinkDownDefaultState

[ Member data: returns uint8_t * ] -mkey_lmc
[ Member data: returns uint8_t * ] -link_speed

LinkSpeedEnabled and LinkSpeedActive

[ Member data: returns uint8_t * ] -mtu_smsl
[ Member data: returns uint8_t * ] -vl_cap

VlCap and InitType

[ Member data: returns uint8_t * ] -vl_high_limit
[ Member data: returns uint8_t * ] -vl_arb_high_cap
[ Member data: returns uint8_t * ] -vl_arb_low_cap
[ Member data: returns uint8_t * ] -mtu_cap
[ Member data: returns uint8_t * ] -vl_stall_life
[ Member data: returns uint8_t * ] -vl_enforce
[ Member data: returns ib_net16_t * ] -m_key_violations
[ Member data: returns ib_net16_t * ] -p_key_violations
[ Member data: returns ib_net16_t * ] -q_key_violations
[ Member data: returns uint8_t * ] -guid_cap
[ Member data: returns uint8_t * ] -subnet_timeout
[ Member data: returns uint8_t * ] -resp_time_value
[ Member data: returns uint8_t * ] -error_threshold
[ Member : returns void ] delete

---- class sacPortRec \s-1RID\s0 Fields:

[ Member data: returns ib_net16_t * ] -lid
[ Member data: returns uint8_t * ] -port_num
[ Member data: returns sacPortInfo * ] -port_info

Methods:

[ Member : returns char * ] get comp_mask
[ Member : returns char * ] getTable comp_mask
[ Member : returns void ] delete

Component mask bits:

---- class sacSmInfo Fields:

[ Member data: returns ib_net64_t * ] -guid
[ Member data: returns ib_net64_t * ] -sm_key
[ Member data: returns ib_net32_t * ] -act_count
[ Member data: returns uint8_t * ] -pri_state
[ Member : returns void ] delete

---- class sacSmRec \s-1RID\s0 Fields:

[ Member data: returns ib_net16_t * ] -lid
[ Member data: returns sacSmInfo * ] -sm_info

Methods:

[ Member : returns char * ] get comp_mask
[ Member : returns char * ] getTable comp_mask
[ Member : returns void ] delete

Component mask bits:

---- class sacSwInfo Fields:

[ Member data: returns ib_net16_t * ] -lin_cap
[ Member data: returns ib_net16_t * ] -rand_cap
[ Member data: returns ib_net16_t * ] -mcast_cap
[ Member data: returns ib_net16_t * ] -lin_top
[ Member data: returns uint8_t * ] -def_port
[ Member data: returns uint8_t * ] -def_mcast_pri_port
[ Member data: returns uint8_t * ] -def_mcast_not_port
[ Member data: returns uint8_t * ] -life_state
[ Member data: returns ib_net16_t * ] -lids_per_port
[ Member data: returns ib_net16_t * ] -enforce_cap
[ Member data: returns uint8_t * ] -flags
[ Member : returns void ] delete

---- class sacSwRec \s-1RID\s0 Fields:

[ Member data: returns ib_net16_t * ] -lid
[ Member data: returns sacSwInfo * ] -switch_info

Methods:

[ Member : returns char * ] get comp_mask
[ Member : returns char * ] getTable comp_mask
[ Member : returns void ] delete

Component mask bits:

---- class sacLinkRec Fields:

[ Member data: returns ib_net16_t * ] -from_lid
[ Member data: returns uint8_t * ] -from_port_num
[ Member data: returns uint8_t * ] -to_port_num
[ Member data: returns ib_net16_t * ] -to_lid

Methods:

[ Member : returns char * ] get comp_mask
[ Member : returns char * ] getTable comp_mask
[ Member : returns void ] delete

Component mask bits:

---- class sacPathRec Fields:

[ Member data: returns ib_gid_t * ] -dgid
[ Member data: returns ib_gid_t * ] -sgid
[ Member data: returns ib_net16_t * ] -dlid
[ Member data: returns ib_net16_t * ] -slid
[ Member data: returns ib_net32_t * ] -hop_flow_raw
[ Member data: returns uint8_t * ] -tclass
[ Member data: returns uint8_t * ] -num_path
[ Member data: returns ib_net16_t * ] -pkey
[ Member data: returns ib_net16_t * ] -sl
[ Member data: returns uint8_t * ] -mtu
[ Member data: returns uint8_t * ] -rate
[ Member data: returns uint8_t * ] -pkt_life
[ Member data: returns uint8_t * ] -preference

Methds:

[ Member : returns char * ] get comp_mask
[ Member : returns char * ] getTable comp_mask
[ Member : returns void ] delete

Component mask bits:

---- class sacLFTRec Fields:

[ Member data: returns ib_net16_t * ] -lid
[ Member data: returns ib_net16_t * ] -block_num
[ Member data: returns ib_lft_t * ] -lft

Methods:

[ Member : returns char * ] get comp_mask
[ Member : returns char * ] getTable comp_mask
[ Member : returns void ] delete

Component mask bits:

---- class sacMCMRec Fields:

[ Member data: returns ib_gid_t * ] -mgid
[ Member data: returns ib_gid_t * ] -port_gid
[ Member data: returns ib_net32_t * ] -qkey
[ Member data: returns ib_net16_t * ] -mlid
[ Member data: returns uint8_t * ] -mtu
[ Member data: returns uint8_t * ] -tclass
[ Member data: returns ib_net16_t * ] -pkey
[ Member data: returns uint8_t * ] -rate
[ Member data: returns uint8_t * ] -pkt_life
[ Member data: returns ib_net32_t * ] -sl_flow_hop
[ Member data: returns uint8_t * ] -scope_state

Methods:

[ Member : returns char * ] get comp_mask
[ Member : returns char * ] getTable comp_mask
[ Member : returns char * ] set comp_mask
[ Member : returns char * ] del comp_mask
[ Member : returns int ] proxy_join_get

Instead of simple field cget

[ Member : returns void ] proxy_join_set proxy_join

Instead of simple field configure

[ Member : returns void ] obj_delete

Delete the object

---- class sacClassPortInfo Fields:

[ Member data: returns uint8_t * ] -base_ver
[ Member data: returns uint8_t * ] -class_ver
[ Member data: returns ib_net16_t * ] -cap_mask
[ Member data: returns ib_net32_t * ] -resp_time_val
[ Member data: returns ib_gid_t * ] -redir_gid
[ Member data: returns ib_net32_t * ] -redir_tc_sl_fl
[ Member data: returns ib_net16_t * ] -redir_lid
[ Member data: returns ib_net16_t * ] -redir_pkey
[ Member data: returns ib_net32_t * ] -redir_qp
[ Member data: returns ib_net32_t * ] -redir_qkey
[ Member data: returns ib_gid_t * ] -trap_gid
[ Member data: returns ib_net32_t * ] -trap_tc_sl_fl
[ Member data: returns ib_net16_t * ] -trap_lid
[ Member data: returns ib_net16_t * ] -trap_pkey
[ Member data: returns ib_net32_t * ] -trap_hop_qp
[ Member data: returns ib_net32_t * ] -trap_qkey

Methods:

[ Member : returns char * ] get
[ Member : returns void ] delete

The inform Info is built with heirarchy of objects. So several classes are defined. ---- class sacInformInfo Fields:

[ Member data: returns ib_gid_t * ] -gid
[ Member data: returns ib_net16_t * ] -lid_range_begin
[ Member data: returns ib_net16_t * ] -lid_range_end
[ Member data: returns ib_net16_t * ] -reserved1
[ Member data: returns uint8_t * ] -is_generic
[ Member data: returns uint8_t * ] -subscribe
[ Member data: returns ib_net16_t * ] -trap_type
[ Member data: returns sacInformInfo_g_or_v * ] -g_or_v

Methods:

[ Member : returns char * ] set
[ Member : returns void ] delete

---- class sacInformInfo_g_or_v Fields:

[ Member data: returns sacInformInfo_g_or_v_generic * ] -generic
[ Member data: returns sacInformInfo_g_or_v_vend * ] -vend

---- class sacInformInfo_g_or_v_generic Fields:

[ Member data: returns ib_net16_t * ] -trap_num
[ Member data: returns ib_net32_t * ] -qpn_resp_time_val
[ Member data: returns uint8_t * ] -reserved2
[ Member data: returns uint8_t * ] -node_type_msb
[ Member data: returns ib_net16_t * ] -node_type_lsb

---- class sacInformInfo_g_or_v_vend Fields:

[ Member data: returns ib_net16_t * ] -dev_id
[ Member data: returns ib_net32_t * ] -qpn_resp_time_val
[ Member data: returns uint8_t * ] -reserved2
[ Member data: returns uint8_t * ] -vendor_id_msb
[ Member data: returns ib_net16_t * ] -vendor_id_lsb

Component mask bits:

---- class sacServiceRec Fields:

[ Member data: returns ib_net64_t * ] -service_id
[ Member data: returns ib_gid_t * ] -service_gid
[ Member data: returns ib_net16_t * ] -service_pkey
[ Member data: returns ib_net16_t * ] -resv
[ Member data: returns ib_net32_t * ] -service_lease
[ Member data: returns uint8_array_t * ] -service_key
[ Member data: returns ib_svc_name_t * ] -service_name
[ Member data: returns uint8_array_t * ] -service_data8
[ Member data: returns ib_net16_array_t * ] -service_data16
[ Member data: returns ib_net32_array_t * ] -service_data32
[ Member data: returns ib_net64_array_t * ] -service_data64

Methods:

[ Member : returns char * ] get comp_mask
[ Member : returns char * ] set comp_mask
[ Member : returns char * ] getTable comp_mask
[ Member : returns char * ] delete comp_mask
[ Member : returns void ] obj_delete

Component mask bits:

---- class sacSlVlTbl

[ Member data: returns uint8_array_t * ] -raw_vl_by_sl

---- class sacSlVlRec \s-1RID\s0 Fields:

[ Member data: returns ib_net16_t * ] -lid

for \s-1CA:\s0 lid of port, for switch lid of port 0

[ Member data: returns uint8_t * ] -in_port_num

reserved for \s-1CA\s0's

[ Member data: returns uint8_t * ] -out_port_num

reserved for \s-1CA\s0's

[ Member data: returns uint32_t * ] -resv
[ Member data: returns sacSlVlTbl * ] -slvl_tbl

Methods:

[ Member : returns char * ] get comp_mask
[ Member : returns char * ] getTable comp_mask
[ Member : returns void ] delete

Component mask bits:

---- class sacVlArbRec Fields:

[ Member data: returns ib_net16_t * ] -lid

for \s-1CA:\s0 lid of port, for switch lid of port 0

[ Member data: returns uint8_t * ] -port_num
[ Member data: returns uint8_t * ] -block_num
[ Member data: returns uint32_t * ] -reserved
[ Member data: returns sac_vl_arb_tbl_t * ] -vl_arb_tbl

Methods:

[ Member : returns char * ] get comp_mask
[ Member : returns char * ] getTable comp_mask
[ Member : returns void ] delete

Component mask bits:

---- class sacPKeyTbl Fields:

[ Member data: returns ib_net16_array_t * ] -pkey_entry

---- class sacPKeyRec \s-1RID\s0 Fields:

[ Member data: returns ib_net16_t * ] -lid

for \s-1CA:\s0 lid of port, for switch lid of port 0

[ Member data: returns uint16_t * ] -block_num
[ Member data: returns uint8_t * ] -port_num

for switch: port number, for \s-1CA:\s0 reserved

[ Member data: returns uint8_t * ] -reserved1
[ Member data: returns uint16_t * ] -reserved2
[ Member data: returns sacPKeyTbl * ] -pkey_tbl

Methods:

[ Member : returns char * ] get comp_mask
[ Member : returns char * ] getTable comp_mask
[ Member : returns void ] delete

Subnet Management MADs (SMPs)

The \s-1SM\s0 interface supports sending Subnet Management Packets to the fabric devices. The specific attributes that can be access is provided in detail in each sub section below. A set of object types is defined. The user can allocate a new attribute object. Then the object can be set using configure or the direct manipulation methods. Extra methods are provided for each object: =item setByDr <dr> <attrMod> Set the attribute on the object accessible by the given directed route. A directed route is a list of port numbers to go out from.

getByDr <dr> <attrMod>

Get the attribute value by traversing a directed route. setByLid <lid> <attrMod> Set the attribute on the object accessible by the given \s-1LID\s0 getByLid <lid> <attrMod> get the attribute on the object accessible by the given \s-1LID\s0

Fields:

[ Member data: returns uint8_t * ] -base_version
[ Member data: returns uint8_t * ] -class_version
[ Member data: returns uint8_t * ] -node_type
[ Member data: returns uint8_t * ] -num_ports
[ Member data: returns ib_net64_t * ] -sys_guid
[ Member data: returns ib_net64_t * ] -node_guid
[ Member data: returns ib_net64_t * ] -port_guid
[ Member data: returns ib_net16_t * ] -partition_cap
[ Member data: returns ib_net16_t * ] -device_id
[ Member data: returns ib_net32_t * ] -revision
[ Member data: returns ib_net32_t * ] -port_num_vendor_id

Methods:

[ Member : returns int ] getByDr dr
[ Member : returns int ] setByDr dr
[ Member : returns int ] getByLid lid
[ Member : returns int ] setByLid lid

class smPortInfo

Fields:

[ Member data: returns ib_net64_t * ] -m_key
[ Member data: returns ib_net64_t * ] -subnet_prefix
[ Member data: returns ib_net16_t * ] -base_lid
[ Member data: returns ib_net16_t * ] -master_sm_base_lid
[ Member data: returns ib_net32_t * ] -capability_mask
[ Member data: returns ib_net16_t * ] -diag_code
[ Member data: returns ib_net16_t * ] -m_key_lease_period
[ Member data: returns uint8_t * ] -local_port_num
[ Member data: returns uint8_t * ] -link_width_enabled
[ Member data: returns uint8_t * ] -link_width_supported
[ Member data: returns uint8_t * ] -link_width_active
[ Member data: returns uint8_t * ] -state_info1

LinkSpeedSupported and PortState

[ Member data: returns uint8_t * ] -state_info2

PortPhysState and LinkDownDefaultState

[ Member data: returns uint8_t * ] -mkey_lmc
[ Member data: returns uint8_t * ] -link_speed

LinkSpeedEnabled and LinkSpeedActive

[ Member data: returns uint8_t * ] -mtu_smsl
[ Member data: returns uint8_t * ] -vl_cap

VlCap and InitType

[ Member data: returns uint8_t * ] -vl_high_limit
[ Member data: returns uint8_t * ] -vl_arb_high_cap
[ Member data: returns uint8_t * ] -vl_arb_low_cap
[ Member data: returns uint8_t * ] -mtu_cap
[ Member data: returns uint8_t * ] -vl_stall_life
[ Member data: returns uint8_t * ] -vl_enforce
[ Member data: returns ib_net16_t * ] -m_key_violations
[ Member data: returns ib_net16_t * ] -p_key_violations
[ Member data: returns ib_net16_t * ] -q_key_violations
[ Member data: returns uint8_t * ] -guid_cap
[ Member data: returns uint8_t * ] -subnet_timeout
[ Member data: returns uint8_t * ] -resp_time_value
[ Member data: returns uint8_t * ] -error_threshold

Methods:

[ Member : returns int ] getByDr dr portNum
[ Member : returns int ] setByDr dr portNum
[ Member : returns int ] getByLid lid portNum
[ Member : returns int ] setByLid lid portNum
[ Member data: returns ib_net16_t * ] -lin_cap
[ Member data: returns ib_net16_t * ] -rand_cap
[ Member data: returns ib_net16_t * ] -mcast_cap
[ Member data: returns ib_net16_t * ] -lin_top
[ Member data: returns uint8_t * ] -def_port
[ Member data: returns uint8_t * ] -def_mcast_pri_port
[ Member data: returns uint8_t * ] -def_mcast_not_port
[ Member data: returns uint8_t * ] -life_state
[ Member data: returns ib_net16_t * ] -lids_per_port
[ Member data: returns ib_net16_t * ] -enforce_cap
[ Member data: returns uint8_t * ] -flags
[ Member : returns int ] getByDr dr
[ Member : returns int ] setByDr dr
[ Member : returns int ] getByLid lid
[ Member : returns int ] setByLid lid
[ Member data: returns uint8_array_t * ] -lft
[ Member : returns int ] getByDr dr blockNum
[ Member : returns int ] setByDr dr blockNum
[ Member : returns int ] getByLid lid blockNum
[ Member : returns int ] setByLid lid blockNum
[ Member data: returns ib_net16_array_t * ] -mft
[ Member : returns int ] getByDr dr startLid startPort
[ Member : returns int ] setByDr dr startLid startPort
[ Member : returns int ] getByLid lid startLid startPort
[ Member : returns int ] setByLid lid startLid startPort
[ Member data: returns ib_net64_array_t * ] -guid
[ Member : returns int ] getByDr dr blockNum
[ Member : returns int ] setByDr dr blockNum
[ Member : returns int ] getByLid lid blockNum
[ Member : returns int ] setByLid lid blockNum
[ Member data: returns ib_net16_array_t * ] -pkey_entry
[ Member : returns int ] getByDr dr portNum blockNum
[ Member : returns int ] setByDr dr portNum blockNum
[ Member : returns int ] getByLid lid portNum blockNum
[ Member : returns int ] setByLid lid portNum blockNum
[ Member data: returns uint8_array_t * ] -raw_vl_by_sl
[ Member : returns int ] getByDr dr inPortNum outPortNum
[ Member : returns int ] setByDr dr inPortNum outPortNum
[ Member : returns int ] getByLid lid inPortNum outPortNum
[ Member : returns int ] setByLid lid inPortNum outPortNum
[ Member data: returns ib_vl_arb_element_t * ] -vl_entry
[ Member : returns int ] getByDr dr portNum block
[ Member : returns int ] setByDr dr portNum block
[ Member : returns int ] getByLid lid portNum block
[ Member : returns int ] setByLid lid portNum block
[ Member data: returns ibsm_node_desc_str_t * ] -description
[ Member : returns int ] getByDr dr
[ Member : returns int ] setByDr dr
[ Member : returns int ] getByLid lid
[ Member : returns int ] setByLid lid
[ Member data: returns ib_net64_t * ] -guid
[ Member data: returns ib_net64_t * ] -sm_key
[ Member data: returns ib_net32_t * ] -act_count
[ Member data: returns uint8_t * ] -pri_state
[ Member : returns int ] getByDr dr
[ Member : returns int ] setByDr dr
[ Member : returns int ] getByLid lid
[ Member : returns int ] setByLid lid

The \s-1NOTICE\s0 attribute is built out of several sub objects

[ Member data: returns uint8_t * ] -generic_type
[ Member data: returns ib_net16_t * ] -issuer_lid
[ Member data: returns ib_net16_t * ] -toggle_count
[ Member data: returns ib_gid_t * ] -issuer_gid
[ Member data: returns smNotice_g_or_v * ] -g_or_v
[ Member data: returns smNotice_data_details * ] -data_details
[ Member : returns int ] trapByDr dr
[ Member : returns int ] trapByLid lid

---- class smNotice_g_or_v

[ Member data: returns smNotice_g_or_v_generic * ] -generic
[ Member data: returns smNotice_g_or_v_vend * ] -vend

---- class smNotice_data_details

[ Member data: returns smNotice_data_details_raw_data * ] -raw_data
[ Member data: returns smNotice_data_details_ntc_64_67 * ] -ntc_64_67
[ Member data: returns smNotice_data_details_ntc_128 * ] -ntc_128
[ Member data: returns smNotice_data_details_ntc_129_131 * ] -ntc_129_131
[ Member data: returns smNotice_data_details_ntc_144 * ] -ntc_144
[ Member data: returns smNotice_data_details_ntc_145 * ] -ntc_145
[ Member data: returns smNotice_data_details_ntc_256 * ] -ntc_256
[ Member data: returns smNotice_data_details_ntc_257_258 * ] -ntc_257_258
[ Member data: returns smNotice_data_details_ntc_259 * ] -ntc_259

---- class smNotice_g_or_v_generic

[ Member data: returns uint8_t * ] -prod_type_msb
[ Member data: returns ib_net16_t * ] -prod_type_lsb
[ Member data: returns ib_net16_t * ] -trap_num

---- class smNotice_g_or_v_vend

[ Member data: returns uint8_t * ] -vend_id_msb
[ Member data: returns ib_net16_t * ] -vend_id_lsb
[ Member data: returns ib_net16_t * ] -dev_id

---- class smNotice_data_details_raw_data

[ Member data: returns uint8_array_t * ] -details

---- class smNotice_data_details_ntc_64_67

[ Member data: returns uint8_array_t * ] -res
[ Member data: returns ib_gid_t * ] -gid

the Node or Multicast Group that came in/out ---- class smNotice_data_details_ntc_128

[ Member data: returns ib_net16_t * ] -sw_lid

the sw lid of which link state changed ---- class smNotice_data_details_ntc_129_131

[ Member data: returns ib_net16_t * ] -pad
[ Member data: returns ib_net16_t * ] -lid

lid and port number of the violation

[ Member data: returns uint8_t * ] -port_num

---- class smNotice_data_details_ntc_144

[ Member data: returns ib_net16_t * ] -pad1
[ Member data: returns ib_net16_t * ] -lid

lid where capability mask changed

[ Member data: returns ib_net16_t * ] -pad2
[ Member data: returns ib_net32_t * ] -new_cap_mask

new capability mask ---- class smNotice_data_details_ntc_145

[ Member data: returns ib_net16_t * ] -pad1
[ Member data: returns ib_net16_t * ] -lid

lid where sys guid changed

[ Member data: returns ib_net16_t * ] -pad2
[ Member data: returns ib_net64_t * ] -new_sys_guid

new system image guid ---- class smNotice_data_details_ntc_256

[ Member data: returns ib_net16_t * ] -pad1
[ Member data: returns ib_net16_t * ] -lid
[ Member data: returns ib_net16_t * ] -pad2
[ Member data: returns uint8_t * ] -method
[ Member data: returns uint8_t * ] -pad3
[ Member data: returns ib_net16_t * ] -attr_id
[ Member data: returns ib_net32_t * ] -attr_mod
[ Member data: returns ib_net64_t * ] -mkey
[ Member data: returns uint8_t * ] -dr_slid
[ Member data: returns uint8_t * ] -dr_trunc_hop
[ Member data: returns uint8_array_t * ] -dr_rtn_path

---- class smNotice_data_details_ntc_257_258

[ Member data: returns ib_net16_t * ] -pad1
[ Member data: returns ib_net16_t * ] -lid1
[ Member data: returns ib_net16_t * ] -lid2
[ Member data: returns ib_net32_t * ] -key
[ Member data: returns uint8_t * ] -sl
[ Member data: returns ib_net32_t * ] -qp1
[ Member data: returns ib_net32_t * ] -qp2
[ Member data: returns ib_gid_t * ] -gid1
[ Member data: returns ib_gid_t * ] -gid2

---- class smNotice_data_details_ntc_259

[ Member data: returns ib_net16_t * ] -data_valid
[ Member data: returns ib_net16_t * ] -lid1
[ Member data: returns ib_net16_t * ] -lid2
[ Member data: returns ib_net32_t * ] -key
[ Member data: returns uint8_t * ] -sl
[ Member data: returns ib_net32_t * ] -qp1
[ Member data: returns uint8_t * ] -qp2_msb
[ Member data: returns ib_net16_t * ] -qp2_lsb
[ Member data: returns ib_gid_t * ] -gid1
[ Member data: returns ib_gid_t * ] -gid2
[ Member data: returns ib_net16_t * ] -sw_lid
[ Member data: returns uint8_t * ] -port_no

IBCR Functions

Provides vendor specific access to the device internal coniguration space This section provide the details about the functions \s-1IBCR\s0 exposes. They all return 0 on succes.

[ returns int ] crMultiMaxGet
[ returns int ] crRead lid address
[ returns int ] crWrite lid data address
[ returns int ] crReadMulti num lid_list address
[ returns int ] crWriteMulti num lid_list data address

IB Vendor Specific Functions

\s-1IBVS\s0 stands for Vendor Specific MADs. This section provide the details about the functions \s-1IBVS\s0 exposes. They all return 0 on succes.

[ returns int ] vsMultiMaxGet
[ returns int ] vsCpuRead lid size cpu_traget_size address
[ returns int ] vsCpuWrite lid size cpu_traget_size data address
[ returns int ] vsI2cRead lid port_num device_id size address
[ returns int ] vsI2cWrite lid port_num device_id size address data
[ returns int ] vsI2cReadMulti num lid_list port_num device_id size address
[ returns int ] vsI2cWriteMulti num lid_list port_num device_id size address data
[ returns int ] vsGpioRead lid
[ returns int ] vsGpioWrite lid gpio_mask gpio_data
[ returns int ] vsSWReset num lid_list
[ returns int ] vsFlashStartMulti num lid_list last size address data
[ returns int ] vsFlashStopMulti num lid_list force
[ returns int ] vsFlashSetBankMulti num lid_list address
[ returns int ] vsFlashEraseSectorMulti num lid_list address
[ returns int ] vsFlashReadSectorMulti num lid_list size address
[ returns int ] vsFlashWriteSectorMulti num lid_list size address data
[ returns int ] vsMirrorRead lid
[ returns int ] vsMirrorWrite lid rx_mirror tx_mirror

IBBBM Functions

This section provide the details about the functions \s-1IBBBM\s0 exposes. They all return 0 on succes.

[ returns int ] bbmVpdRead lid vpd_device_selector bytes_num offset
[ returns int ] bbmVpdWrite lid vpd_device_selector bytes_num offset p_data
[ returns int ] bbmVSDRead lid
[ returns int ] bbmBSNRead lid
[ returns int ] bbmModRead lid
[ returns int ] bbmChaRead lid
[ returns int ] bbmFWVerRead lid

AUTHOR

Eitan Zahavi, Mellanox Technologies \s-1LTD\s0, [email protected]