Sets or displays configuration parameters.
You can also use OpenSwitch Manager to view and set
the configuration parameters.
rp_set [parm_name, parm_value]
Name of a parameter as listed in the configuration file.
Value to which the parameter is to be set. The meaning of the value depends on which parameter is being set.
Displays the value of the TEXTSIZE configuration parameter.
rp_set TEXTSIZE
Sets the TEXTSIZE configuration parameter to 1MB.
rp_set TEXTSIZE, 1048576
Sets the TEXTSIZE configuration parameter to NULL.
rp_set TEXTSIZE, -1
Displays all the configuration options and their current values. Only the first 27 characters of the configuration parameter, and the first 50 characters of the value display.
1> rp_set 2> go
Returns:
parameter value ------------------------- ----------------- SERVER_NAME posw MUTUAL_AWARE 1 MUTUAL_CLUSTER owsCluster PRIMARY_COMPANION 1 FREEZE_CFG_ON_FAIL 0 LOG_FILE posw.log LOT_TO_OS 0 CFG_FILE ./posw.cfg CUSTOM_SCRIPT /usr/u/johndoe/custom.sh MANUAL_SCRIPT /usr/u/johndoe/manual.sh RCM_CFG_FILE /oswitch/config/ RCM_PATH NULL RCM_AUTOSTART 0R CM_SECONDARY 0R CM_RETRIES 0R CM_LOG_FILE /oswitch/bin/rcm UPDATE_CFG 1 DEBUG_FILE posw.dbg ADMIN_USER sa ADMIN_PASSWORD ***** INTERFACES NULL CHARSET iso_1 CONNECTIONS 1000 CON_TRACE 0 CTX_TRACE 0 SRV_TRACE 0 TRUNCATE_LOG 1 SITE_PASSTHRU 1 ECHO_LOG 1 DEBUG eCf FULL_PASSTHRU 0 RMON 0 RMON_INTERVAL 10 SEC_PRINCIPAL NULL SHOW_SPID 0 STACKSIZE 40960 TCP_KEEPALIVE 1 TCP_NODELAY 1 COORD_MODE AVAIL COORD_USER switch_coord COORD_PASSWORD ***** TEXTSIZE 102400 SUPPRESS_CHARSET 1 SUPPRESS_DBCTX 1 SUPPRESS_LANG 1 CURSOR_PREREAD 20 OPTIMIZE_TEXT 1 MAX_LOGSIZE 4194304 MSGQ_SIZE 2048 API_CHECK 1 HAFAILOVER 0 SQL_WRAP 80 CACHE_THREADS 100 BCP_LOGGED 0 MAX_PACKETSIZE 2048 COORD_TIMEOUT 30 LOGIN_TIMEOUT 60 RESPONSE_TIMEOUT 3600 CMON 1 CMON_USER sa CMON_PASSWORD ***** CMON_WAITFOR_DELAY 3600 SWITCH_AT_LOGIN_TIMEOUT 0 MAX_LOG_MSG_SIZE 1024 USERNAME_PASSWORD_ENCRYPT 0 USE_AND_TO_POOL_ATTRIB 0 USE_AND_TO_RMON_ATTRIB 0 USE_DONEINPROCS 0 SHOW_CONNECT_ERROR 0 NOWAIT_ON_LOCKED 0 SVR_FAIL_ACTION DEFAULT NET_FAIL_ACTION DEFAULT CMP_FAIL_ACTION DEFAULT CMON_FAIL_ACTION DEFAULT PING_THREAD 1 PING_BINARY /usr/sbin/ping PING_WAIT 10 PING_RETRIES 1 RPC_SETFMT 0 TEST_PING_COUNT 5 (84 rows affected) (return status = 0)
Use rp_set to query or set the value of a configuration parameter.
If you set the parm_value parameter to -1, rp_set sets the configuration parameter to null.
Not all configuration parameters are dynamic. For example, parameters such as maximum number of connection (CONNECTIONS) and whether or not the resource monitor thread is running (RMON) are read by OpenSwitch only at start-up.
The parameter name supplied does not exist or the value supplied is illegal for the parameter name:
rp_set: Invalid parameter name or value.
See the OpenSwitch error log for more information.
The parameter specified is a static parameter that cannot be changed using rp_set:
rp_set: Cannot modify Static or Non-Existing parameter <parameter> at runtime. Please refer to OpenSwitch Documentation for additional information.
To enable the parameter, restart OpenSwitch with the new value in the configuration file.
The [CONFIG] section in Chapter 5, “Using the Configuration File.”