Working with PSADMIN Exit Codes

The following table lists most PSADMIN command line options for the application server and Process Scheduler server and their return codes. This can provide insight into the return codes displayed when using PSADMIN from the command line or in scripts. In general, PSADMIN returns 0 for success and non-zero when an error occurs.

Note:

N/A indicates the command is not applicable to that server.

PSADMIN command line return codes (Table 1 of 4)

Command Application Server Process Scheduler
-v

0

N/A

-h

0

N/A

-env

0

N/A

-defaultPS_CFG_Home

0

N/A

-invalid

-10

N/A

-create -d <domain_name> -t <template>

0

0

-create -d <domain_name> -t <invalid_template>

275

275

create -d <already_existing_domain> -t <template>

265

1

create -d <domain_name> -t <template> -s <s_set>

0

N/A

create -d <domain_name> -t <invalid_template> -s <s_set>

1

N/A

create -d <domain_name> -t <template> -s <s_set> -p <p_set>

0

N/A

create -d database -t template -ps ps_set

N/A

0

create -d database -t template -silent

N/A

0

delete -d <domain_name>

0

0

delete -d <nonexistent_domain> 

235

235

configure -d <domain_name>

0

0

configure -d <nonexistent_domain>

235

235

boot -d <domain_name>

0

N/A

boot -d <nonexistent_domain>

235

N/A

Continuation of the table listing the PSADMIN command line return codes (Table 2 of 4)

Command Application Server Process Scheduler
parallelboot -d <domain_name>

-1

N/A

parallelboot -d <nonexistent_domain>

235

N/A

shutdown -d <domain_name>

0

N/A

shutdown -d <nonexistent_domain>

235

N/A

shutdown! -d <domain_name>

0

N/A

shutdown! -d <nonexistent_domain> 

235

N/A

cleanipc -d <domain_name>

0

0

cleanipc -d <nonexistent_domain> 

235

235

sstatus -d <domain_name>

0

0

cstatus -d <domain_name> 

0

0

sstatus -d <domain_name>

0

0

sstatus -d <nonexistent_domain>

235

235

cstatus -d <nonexistent_domain>

235

235

qstatus -d <nonexistent_domain>

235

235

status -d <domain>

N/A

0

status -d <nonexistent_domain>

N/A

235

start -d <domain_name>

0

0

start -d <nonexistent_domain> 

235

235

Continuation of the table listing the PSADMIN command line return codes (Table 3 of 4)

Command Application Server Process Scheduler
stop -d <domain_name>

0

0

stop -d <nonexistent_domain>

235

235

kill -d <domain_name>

0

N/A

kill -d <nonexistent_domain>

235

235

import <path>

0

0

import <path> -d <domain_name>

0

0

import <path> -d <domain_name> -n <new_name>

0

0

import <path> -n <name>

0

0

import <path> -d <already_existing_domain>

0

0

import <path> -d <already_existing_domain> -r 

0

0

import <path> -d <domain> -n <name> -t <template>

0

N/A

purge -d <domain_name> -arch <archive_directory>

0

N/A

purge -d <domain_name> -noarch

0

N/A

addmsgsrv -d <domain_name> -s <sname> -t <type> <ch1,ch2,...>

0

N/A

addmsgsrv -d <domain_name> -s <sname> -t <type>

-1

N/A

Continuation of the table listing the PSADMIN command line return codes (Table 4 of 4)

Command Application Server Process Scheduler
addmsgsrv -d <nonexistent_domain> -s <sname> -t <type> <ch1,ch2...>

235

N/A

rmmsgsrv -d <domain> -s <sname>

0

N/A

rmmsgsrv -d <nonexistent_domain> -s <sname>

235

N/A

rmmsgsrv -d <domain_name> -s <nonexistent_sname>

25

N/A

preload -d <domain_name>

PreloadFileCache not set in PSAPPSRV.CFG.

-1

N/A

preload -d <domain_name>

PreloadFileCache set in PSAPPSRV.CFG but not in database.

1

N/A

preload -d  <domain_name>

PreloadFileCache set in PSAPPSRV.CFG and in database.

0

N/A

preload -d <nonexistent_domain>

235

N/A

stop -d <domain_name>

Domain is not started.

1

0

pslist -d <domain_name>

0

0

pslist -d <domain_name>

Domain is not started.

0

0

pslist -d <nonexistent_domain>

235

235

purge -d <domain_name> -noarch -log <log_comments>

0

235

purge -d <domain_name> -arch <archive_dir> -log <log_comments>

0

235