rp_set

Description

Sets or displays configuration parameters.

NoteYou can also use OpenSwitch Manager to view and set the configuration parameters.

Syntax

rp_set [parm_name, parm_value]

Parameters

parm_name

Name of a parameter as listed in the configuration file.

parm_value

Value to which the parameter is to be set. The meaning of the value depends on which parameter is being set.

Examples

Example 1

Displays the value of the TEXTSIZE configuration parameter.

rp_set TEXTSIZE

Example 2

Sets the TEXTSIZE configuration parameter to 1MB.

rp_set TEXTSIZE, 1048576

Example 3

Sets the TEXTSIZE configuration parameter to NULL.

rp_set TEXTSIZE, -1

Example 4

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)

Usage


Messages

See also

The [CONFIG] section in Chapter 5, “Using the Configuration File.”