My Oracle Support Banner

E-AS: "psadmin start -d *all" and "psadmin shutdown -d *all" Exit Codes are Non-0/1 (Doc ID 2709815.1)

Last updated on SEPTEMBER 11, 2020

Applies to:

PeopleSoft Enterprise PT PeopleTools - Version 8.56 and later
Information in this document applies to any platform.

Symptoms

The customer uses the psadmin start -d *all and psadmin shutdown -d *all commands frequently to startup/shutdown their application server, web server, and process scheduler.  They issue these commands via automation scripts to conveniently startup/shutdown all at the same time.  The exit codes from these commands are not 0 (success) or 1 (failure) as the customer expects.  They believe that the exit codes of these commands have changed in the past.  In their PeopleTools 8.56 and 8.57 environments, the exit code is typically 3 for a start/shutdown of their three servers.  This is messing up a their automation scripts that they created some time ago and they have asked that this be changed so that an exit code of 0 be returned for success and an exit code of 1 be returned for failure.


Below is a sample of the output when they run the psadmin shutdown -d *all command to shutdown their application server, web server, and process scheduler.  Note the exit code of 3 on last line.

>psadmin shutdown -d *all; echo $?

Shutting down Application Server domain hrmsdemo...

tmadmin - Copyright (c) 1996-2016 Oracle.
All Rights Reserved.
Distributed under license by Oracle.
Tuxedo is a registered trademark.

Shutting down server processes ...

       Server Id = 250 Group Id = JREPGRP Machine = hostname.aaa.bb.ccc:     shutdown succeeded
       Server Id = 200 Group Id = JSLGRP Machine = hostname.aaa.bb.ccc:      shutdown succeeded
       Server Id = 20 Group Id = BASE Machine = hostname.aaa.bb.ccc:       shutdown succeeded
       Server Id = 1 Group Id = MONITOR Machine = hostname.aaa.bb.ccc:       shutdown succeeded
       Server Id = 101 Group Id = APPSRV Machine = hostname.aaa.bb.ccc:      shutdown succeeded
       Server Id = 100 Group Id = APPSRV Machine = hostname.aaa.bb.ccc:      shutdown succeeded
       Server Id = 3 Group Id = APPSRV Machine =hostname.aaa.bb.ccc:       shutdown succeeded
       Server Id = 2 Group Id = APPSRV Machine = hostname.aaa.bb.ccc:        shutdown succeeded
       Server Id = 1 Group Id = APPSRV Machine = hostname.aaa.bb.ccc:        shutdown succeeded
       Server Id = 1 Group Id = WATCH Machine = hostname.aaa.bb.ccc:       shutdown succeeded
10 processes stopped.

Cleaning the bulletin board on machine hostname.aaa.bb.ccc.

Shutting down admin processes ...

       Server Id = 0 Group Id = hostname.aaa.bb.ccc Machine = hostname.aaa.bb.ccc: shutdown succeeded
1 process stopped.

Complete system shutdown. Returning to boot mode.

All domain processes have stopped.


Shutting down Process Scheduler domain hrmsdemo...

tmadmin - Copyright (c) 1996-2016 Oracle.
All Rights Reserved.
Distributed under license by Oracle.
Tuxedo is a registered trademark.

Shutting down server processes ...

       Server Id = 1 Group Id = MONITOR Machine = hostname.aaa.bb.ccc:       shutdown succeeded
       Server Id = 101 Group Id = BASE Machine = hostname.aaa.bb.ccc:        shutdown succeeded
       Server Id = 104 Group Id = BASE Machine = hostname.aaa.bb.ccc:        shutdown succeeded
       Server Id = 103 Group Id = BASE Machine = hostname.aaa.bb.ccc:        shutdown succeeded
       Server Id = 102 Group Id = BASE Machine = hostname.aaa.bb.ccc:        shutdown succeeded
5 processes stopped.

Cleaning the bulletin board on machine hostname.aaa.bb.ccc.

Shutting down admin processes ...

       Server Id = 0 Group Id = hostname.aaa.bb.ccc Machine = hostname.aaa.bb.ccc: shutdown succeeded
1 process stopped.

Complete system shutdown. Returning to boot mode.

Picked up _JAVA_OPTIONS: -Djava.security.egd=file:/dev/./urandom

Stopping the domain [hrmsdemo]..
Verifying domain status..........
The domain has stopped.
All domain processes have stopped.
3

 

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.