Hello World,
I am writing scripts to shutdown PeopleSoft Components (Application Server, Process Scheduler & Web Server). The script will run on a particular Linux Server and will shutdown/start these components on remote servers. There is a configuration file which contains details about each component, one line for each component.
Here is how it works.
The script rapsststp.ksh runs on a Linux server, let us call this as server04. There is a config file rapsststp.cfg which has one line for each component, e.g.
PSEnv:HCTSND:psadm:server05:HCTSND1:AS:/u01/app/psoft/pt/tools:psconfig.sh:1
PSEnv:HCTSND:psadm:server05:HCTSND:PS:/u01/app/psoft/pt/tools:psconfig_hctsnd.sh:1
Field 1 - Fixed with value PSEnv
Field 2 - Name of the environment, e.g. it could be "Sand Box"
Field 3 - The Linux/Unix user name
Field 4 - The Server (remote server where component reside)
Field 5 - Domain Name
Field 6 - Directory where psconfig.sh file exists
Field 7 - psconfig.sh file name
When the script runs, it does what it supposed to do. It stops & starts the PeopleSoft Components.
But there are some issues I am facing.
Issue 1: When I start webserver, it does not detect if its already running, so it initiates a new java process. The original java process is still running. After sometime the new java process disappears but the file PIA.pid now has the new process id, but the process running has the older process id.
Issue 2: When script stops the application server, it shows the usual messages captured in the LOG file (created by the script). But it also has following, which I am not able to find out, from where its coming.
(Resolved, the psconfig.sh file was incorrect in the config file)
"Value for PS_APP_HOME: /u01/app/psoft/pt/hcm/hcprd, is invalid. Your^M
environment may not work as expected.^M"
You can view/download scripts from the following link
https://drive.google.com/drive/folders/0BxPY_a7s3yD9eVgxNGFiVTNOQnM?usp=sharing
I am writing scripts to shutdown PeopleSoft Components (Application Server, Process Scheduler & Web Server). The script will run on a particular Linux Server and will shutdown/start these components on remote servers. There is a configuration file which contains details about each component, one line for each component.
Here is how it works.
The script rapsststp.ksh runs on a Linux server, let us call this as server04. There is a config file rapsststp.cfg which has one line for each component, e.g.
PSEnv:HCTSND:psadm:server05:HCTSND1:AS:/u01/app/psoft/pt/tools:psconfig.sh:1
PSEnv:HCTSND:psadm:server05:HCTSND:PS:/u01/app/psoft/pt/tools:psconfig_hctsnd.sh:1
Field 1 - Fixed with value PSEnv
Field 2 - Name of the environment, e.g. it could be "Sand Box"
Field 3 - The Linux/Unix user name
Field 4 - The Server (remote server where component reside)
Field 5 - Domain Name
Field 6 - Directory where psconfig.sh file exists
Field 7 - psconfig.sh file name
When the script runs, it does what it supposed to do. It stops & starts the PeopleSoft Components.
But there are some issues I am facing.
Issue 1: When I start webserver, it does not detect if its already running, so it initiates a new java process. The original java process is still running. After sometime the new java process disappears but the file PIA.pid now has the new process id, but the process running has the older process id.
Issue 2: When script stops the application server, it shows the usual messages captured in the LOG file (created by the script). But it also has following, which I am not able to find out, from where its coming.
(Resolved, the psconfig.sh file was incorrect in the config file)
"Value for PS_APP_HOME: /u01/app/psoft/pt/hcm/hcprd, is invalid. Your^M
environment may not work as expected.^M"
You can view/download scripts from the following link
https://drive.google.com/drive/folders/0BxPY_a7s3yD9eVgxNGFiVTNOQnM?usp=sharing
Comments
Post a Comment