November 30, 2015

SWPM Parameters

When running SWPM (formerly called SAPINST) there are a lot of parameters that could be really handy when performing activities with this tool.

My top 3 parameters when using SWPM are:
  1. SAPINST_SET_STEPSTATE
    • With this one you can forget about modifying the control.xml to skip steps or re-execute steps.  When you reach the execution phase a pop will appear and will let you edit every single step state before running the execution.
  2. SAPINST_OUTPUT_DIR
    • The path to the folder where all the files generated by the SWPM should be created, really handy if you have to check the installation logs (And that happens more than frequently)
  3. SAPINST_SKIP_ERRORSTEP
    • The most dangerous one, but if you are sure you can use it just go ahead, I guess it does not require any explanation.

Example of how to use these parameters:
/SAPCD/SWPM/sapinst SAPINST_SKIP_ERRORSTEP=true SAPINST_SET_STEPSTATE=true SAPINST_OUTPUT_DIR=/tmp/myLogs


Other parameters available:

sapinst_dev.log
SAPinst properties are :
GUISERVER_DIALOG_PORT=
GUISERVER_HTTP_PORT=
SAPINST_AUTHENTICATION_UNLIMITED=0
SAPINST_CHECK_PACKAGES=false
SAPINST_CODE_GENERATION_USE_RECURSIONS=0
SAPINST_CONTINUE_AFTER_ERROR=
SAPINST_CONTROL_URL=control.xml
SAPINST_CWD=
SAPINST_DETAIL_SUMMARY=0
SAPINST_DIALOG_PIPES=
SAPINST_DIALOG_PORT=21212
SAPINST_DIALOG_URL=dialog.xml
SAPINST_EXE=SAPINST_EXE
SAPINST_EXECUTE_PRODUCT_ID=
SAPINST_EXEDIR_CD=/TEMPORAL/SWPM
SAPINST_EXE_DIR=/tmp/sapinst_exe.16367.1433445269
SAPINST_GENERATE_INIFILE=0
SAPINST_GENERATE_INIFILE_CONFIG_FILE=
SAPINST_GLOBAL_PARAMETER_TABLE=tGlobalParameters
SAPINST_GUI_ACCESSIBLE=0
SAPINST_HTTP_PORT=4239
SAPINST_INIFILE_MODE=
SAPINST_INIFILE_PARAMETER_MODE=
SAPINST_INPUT_PARAMETERS_URL=
SAPINST_INSTANCE_ID_GENERATION=
SAPINST_JAVA_CODE_GENERATION=
SAPINST_JAVA_COMPONENT_GEN_DIRECTORY=
SAPINST_JAVA_COMPONENT_GEN_LOG_FILENAME=
SAPINST_JAVA_COMPONENT_SNIPPET_DIRECTORY=
SAPINST_JAVA_COMPONENT_SNIPPET_NAME=
SAPINST_JAVA_EXT_DIR_DIRECTORY=
SAPINST_JRE_HOME=/tmp/sapinst_exe.16367.1433445269/jre
SAPINST_JSLIB_TRACE=NW,NWUsers,OraCom,NWCTC,ClusterMgt,SystemIdentity,NetworkMgt
SAPINST_JS_DEBUG=
SAPINST_JVM_PROPERTIES=
SAPINST_KEYDB_URL=keydb.xml
SAPINST_LABEL_IDX_URL=
SAPINST_LOG_GUI_UPDATE=0
SAPINST_MESSAGE_CONSOLE_THRESHOLD=info
SAPINST_MESSAGE_DEVLOG_THRESHOLD=flow_trace
SAPINST_MESSAGE_GUILOG_THRESHOLD=info
SAPINST_MESSAGE_HEADER=
SAPINST_MESSAGE_URL=.
SAPINST_MSLIB_TRACE=1
SAPINST_NO_GUISTART=0
SAPINST_NO_STEPBACK=0
SAPINST_OUTPUT_DIR=/TEMPORAL/PD1Temp
SAPINST_PACKAGES_URL=packages.xml
SAPINST_PARAMETER_CONTAINER_URL=
SAPINST_PORT_AUTO=0
SAPINST_PROPERTIES_4_JAVA_STEPS_JVM=
SAPINST_REMOTE_ACCESS_USER=
SAPINST_REMOTE_ACCESS_USER_IS_TRUSTED=0
SAPINST_RESOURCE_URL=resourcepool.xml
SAPINST_RFCLIB_TRACE=0
SAPINST_SAVE_INPUT=true
SAPINST_SCAN_DEVICES=false
SAPINST_SDT_CURDIR_MODE=
SAPINST_SDT_PASSWORD=**********
SAPINST_SDT_USER=
SAPINST_SEND_ANALYTICS=true
SAPINST_SET_STEPSTATE=true
SAPINST_SKIP_DIALOGS=false
SAPINST_SKIP_ERRORSTEP=0
SAPINST_SKIP_SOLMAN_CHECK=0
SAPINST_SKIP_SUCCESSFULLY_FINISHED_DIALOG=0
SAPINST_SKIP_SUMMARY_DIALOG=0
SAPINST_SLIDE_SHOW_URL=
SAPINST_SLP_CHANNEL_NAME=
SAPINST_SMART_COMPONENT=
SAPINST_STACK_XML=
SAPINST_START_GUI=1
SAPINST_START_GUISERVER=1
SAPINST_STEP_EXECUTION_MODE=
SAPINST_STOP_AFTER_DIALOG_PHASE=0
SAPINST_SUCCESS_ID=
SAPINST_TOPLEVEL_URL=toplevel.xml
SAPINST_USE_ADVANCED_JS_HANDLING=true
SAPINST_USE_DETAILED_LOG_DIRECTORY=0
SAPINST_USE_DEV_FEATURES=
SAPINST_USE_FWK_JSLIB=0
SAPINST_USE_HOSTNAME=
SAPINST_USE_MID=0
SAPINST_USE_OSBITS=
SAPINST_USE_OSFAName=
SAPINST_WRITE_GUIENGINE_BACKEND_TRACE=
SELFEXTRACTOR_EXECUTABLE_NAME=/TEMPORAL/SWPM/sapinst