Vous êtes sur la page 1sur 14

PS Setup EMHub, EMAgents, ChangeAssistant for Update Deployment

Apr 2010

NOTE: Following document shows settings that were done for HRLMSDMO (tools 8.50.07). Adjust relevant paths, domain name, ports for appropriate target env

Table of Content
EMHUB Server....................................................................................................2 Setup EM Hub Server (Unix: aix15)............................................................................2 EMHUB Unix Agent............................................................................................3 Setup EM Hub Agent on Unix......................................................................................3 Start EM Hub Agent on Unix.......................................................................................6 Start EM Hub Agent on Unix (In Background)............................................................6 Test if Agent running in background............................................................................6 Stop EM Hub Agent on Unix (only if running in Background)...................................6 EMHUB Windows Agent....................................................................................8 Setup EM Hub Agent on Windows..............................................................................8 Start EM Hub Agent on Windows................................................................................9 Stop EM Hub Agent on Windows ...............................................................................9 Change Assistant.............................................................................................11 Change Assistant Setup...............................................................................................11

74552777.doc 11/4/2011 - 6:02:16 a11/p11

page 1 / 14

PS Setup EMHub, EMAgents, ChangeAssistant for Update Deployment

Apr 2010

EMHUB Server
Setup EM Hub Server (Unix: aix15)
Setup PeopleTools Options

If you changed information on the above screen, you need to Restart the environment processes on aix15 Clear previous EMHub session data Telnet to aix15, run following commands as psoft user
. /home/apps/hi/aix15/bin/setenv.hrlmsdmo.sh /home/apps/hi/aix15/bin/stop.weblogic.hrlmsdmo.sh rm -rf /home/apps/hrc/psoft/hrlmsdmo/pt850/webserv/hrlmsdmo/applications/peoplesoft/PSEMHUB.war/envmet adata/data/* rm -rf /home/apps/hrc/psoft/hrlmsdmo/pt850/webserv/hrlmsdmo/applications/peoplesoft/PSEMHUB.war/envmet adata/PersistentStorage/* rm -rf /home/apps/hrc/psoft/hrlmsdmo/pt850/webserv/hrlmsdmo/applications/peoplesoft/PSEMHUB.war/envmet adata/scratchpad/*

74552777.doc 11/4/2011 - 6:02:16 a11/p11

page 2 / 14

PS Setup EMHub, EMAgents, ChangeAssistant for Update Deployment


/home/apps/hi/aix15/bin/start.weblogic.hrlmsdmo.sh

Apr 2010

Test if EM Hub is working. EMHub uses same Server/Port as the default PIA instance of the target Env LMS DMO URL : http://aix15:1081/PSEMHUB/hub

EMHUB Unix Agent


Setup EM Hub Agent on Unix
Open telnet session and login as psoft Clear previous EM Agent session information Using telnet session, run following command as psoft user
cd /home/apps/hrc/psoft/hrlmsdmo/pt850/PSEMAgent/envmetadata/data rm -rf ids search-results.xml

( in data dir. Erase all files & dir. EXCEPT "matchers.xml" )

74552777.doc 11/4/2011 - 6:02:16 a11/p11

page 3 / 14

PS Setup EMHub, EMAgents, ChangeAssistant for Update Deployment


rm -rf /home/apps/hrc/psoft/hrlmsdmo/pt850/PSEMAgent/envmetadata/scratchpad/* rm -rf /home/apps/hrc/psoft/hrlmsdmo/pt850/PSEMAgent/envmetadata/PersistentStorage/*

Apr 2010

Set hubURL & unixdrivestocrwal in the following file


Update file: /home/apps/hrc/psoft/hrlmsdmo/pt850/PSEMAgent/
envmetadata/config/configuration.properties # ****************************************************************** # ORACLE CONFIDENTIAL. For authorized use only. Except for as # expressly authorized by Oracle, do not disclose, copy, reproduce, # distribute, or modify. # ****************************************************************** # #----------------------------------------------------------------------# # #----------------------------------------------------------------------# ALL ENTRIES IN THIS FILE ARE CASE SENSITIVE. #hubURL= this is the host and port the agents talk to # hubURL=http://PSEMHUB:80/PSEMHUB/hub hubURL=http://aix15:1081/PSEMHUB/hub agentport=5283 #ping interval in milliseconds for the peer to contact the hub for new messages pinginterval=10000 #Windows directories need to use the forward slash ('/') character. For multiple directories, use a '|' character as separator windowsdrivestocrawl=c:|d: #unixdrivestocrawl=/home/root unixdrivestocrawl=/home/apps/hrc/psoft/hrlmsdmo/pt850 #The time interval in hours for the hub to issue a recrawl command to the agents recrawlinterval=24 #The time interval in hours for the hub to issue a revalidate command to the agents revalidateinterval=6 #Setting for large file transfer.default is 1024 * 1024 bytes chunksize=1048576

74552777.doc 11/4/2011 - 6:02:17 a11/p11

page 4 / 14

PS Setup EMHub, EMAgents, ChangeAssistant for Update Deployment


Add lines to following file to setup proper Env vars
Update files: /home/apps/hrc/psoft/hrlmsdmo/pt850/PSEMAgent/
StartAgent.sh StopAgent.sh

Apr 2010

#!/bin/sh # ****************************************************************** # ORACLE CONFIDENTIAL. For authorized use only. Except for as # expressly authorized by Oracle, do not disclose, copy, reproduce, # distribute, or modify. # ****************************************************************** # #----------------------------------------------------------------------# # #----------------------------------------------------------------------#************************************************************************* #This script is used to start PeopleSoft EMF Agent on the machines # #it initializes following variables: #CLASSPATH - The jar files required to start the EMF Agent #For additional information, refer to the WebLogic Server Administration # # #Guide (http://peoplesoft.com/toe/EMF). #************************************************************************* # M.Frappier (2010-04-12 09:30 EST): Run following script to set Env vars . /home/apps/hi/aix15/bin/setenv.hrlmsdmo.sh cd /home/apps/hrc/psoft/hrlmsdmo/pt850/PSEMAgent CLASSPATH=lib/commons-httpclient-2.0-rc1.jar CLASSPATH=$CLASSPATH:lib/commons-logging-1.0.1.jar CLASSPATH=$CLASSPATH:lib/commons-codec-1.1.jar CLASSPATH=$CLASSPATH:lib/mx4j-jmx.jar CLASSPATH=$CLASSPATH:lib/log4j-1.2.8.jar CLASSPATH=$CLASSPATH:lib/xerces.jar CLASSPATH=$CLASSPATH:lib/xalan.jar CLASSPATH=$CLASSPATH:lib/psemf.jar CLASSPATH=$CLASSPATH:lib/changeassistant.jar export CLASSPATH ../jre/bin/java com.peoplesoft.pt.environmentmanagement.agent.Agent $1

74552777.doc 11/4/2011 - 6:02:17 a11/p11

page 5 / 14

PS Setup EMHub, EMAgents, ChangeAssistant for Update Deployment Start EM Hub Agent on Unix
Command to start agent interactive in current telnet session Open telnet session and login as psoft
psoft@aix15:/home/apps/hrc/psoft/hrlmsdmo/pt850/PSEMAgent>./StartAgent.sh Sending pulse from 'com.peoplesoft.emf.peer:id=1' INFO Thread-4 EMF_CATEGORY - Proceeding with matching for Host INFO Thread-4 EMF_CATEGORY - Proceeding with matching for Decoupled AppServer INFO Thread-4 EMF_CATEGORY - Proceeding with matching for prcsserver INFO Thread-4 EMF_CATEGORY - Diff: Hours 0 Minutes 0 Seconds 0 Sending pulse from 'com.peoplesoft.emf.peer:id=1' Sending pulse from 'com.peoplesoft.emf.peer:id=1' .....

Apr 2010

Note: Peer ID will vary depending on sequence of the different agents being started in the target env

Command to ask Agent to rescan for PS Components from set directory above (unixdrivestocrawl=) Open in a SEPERATE telnet session and login as psoft
psoft@aix15:/home/apps/hrc/psoft/hrlmsdmo/pt850/PSEMAgent> ./StartAgent.sh recrawl NFO main EMF_CATEGORY - Proceeding with matching for AppServer INFO main EMF_CATEGORY - Detected an install for appserver at /home/apps/hrc/psoft/hrlmsdmo/ptools8.49/appserv/Search - unable to detect a configuration file. Ignoring this installation INFO main EMF_CATEGORY - Proceeding with matching for prcsserver INFO main EMF_CATEGORY - Proceeding with matching for Host INFO main EMF_CATEGORY - Proceeding with matching for WebServer INFO main EMF_CATEGORY - Diff: Hours 0 Minutes 0 Seconds 7

Start EM Hub Agent on Unix (In Background)


Command to start agent in background, can close telnet session Open telnet session and login as psoft
psoft@aix15:/home/apps/hrc/psoft/hrlmsdmo/pt850/PSEMAgent> nohup ./StartAgent.sh > agent_output.log &

Test if Agent running in background


Open telnet session and login as psoft
psoft@aix15:/home/apps/hrc/psoft/hrlmsdmo/pt850/PSEMAgent> ./StartAgent.sh isrunning true

Stop EM Hub Agent on Unix (only if running in Background)


Open telnet session and login as psoft
psoft@aix15:/home/apps/hrc/psoft/hrlmsdmo/pt850/PSEMAgent> ./StopAgent.sh

74552777.doc 11/4/2011 - 6:02:17 a11/p11

page 6 / 14

PS Setup EMHub, EMAgents, ChangeAssistant for Update Deployment


Testing if EM Hub sees the agent: http://aix15:1081/PSEMHUB/hub

Apr 2010

74552777.doc 11/4/2011 - 6:02:17 a11/p11

page 7 / 14

PS Setup EMHub, EMAgents, ChangeAssistant for Update Deployment

Apr 2010

EMHUB Windows Agent


Setup EM Hub Agent on Windows
Set hubURL & unixdrivestocrwal in the following file
Update file: E:\hrlmsdmo\PT850\PSEMAgent\envmetadata\Config\configuration.properties

# ****************************************************************** # ORACLE CONFIDENTIAL. For authorized use only. Except for as # expressly authorized by Oracle, do not disclose, copy, reproduce, # distribute, or modify. # ****************************************************************** # #----------------------------------------------------------------------# # #----------------------------------------------------------------------# ALL ENTRIES IN THIS FILE ARE CASE SENSITIVE. #hubURL= this is the host and port the agents talk to hubURL=http://aix15:1081/PSEMHUB/hub agentport=5283 #ping interval in milliseconds for the peer to contact the hub for new messages pinginterval=10000 #Windows directories need to use the forward slash ('/') character. For multiple directories, use a '|' character as separator windowsdrivestocrawl=e:/hrlmsdmo/pt851 unixdrivestocrawl=/usr/home #The time interval in hours for the hub to issue a recrawl command to the agents recrawlinterval=24

Clear previous EM Agent session information Using Windows Explorer: Delete all files or dir. in E:\hrlmsdmo\pt850\PSEMAgent\envmetadata\PersistentStorage E:\hrlmsdmo\pt850\PSEMAgent\envmetadata\scratchpad Delete all files or dir. ( EXCEPT file "matchers.xml" ) in E:\hrlmsdmo\pt850\PSEMAgent\envmetadata\data

74552777.doc 11/4/2011 - 6:02:17 a11/p11

page 8 / 14

PS Setup EMHub, EMAgents, ChangeAssistant for Update Deployment Start EM Hub Agent on Windows
Command to start agent in interactive mode on Windows From command line window: (or double click on bat file via Windows explorer)
E:\hrlmsdmo\pt850\PSEMAgent\StartAgent.bat Sending pulse from 'com.peoplesoft.emf.peer:id=2' Sending pulse from 'com.peoplesoft.emf.peer:id=2' Sending pulse from 'com.peoplesoft.emf.peer:id=2'

Apr 2010

Note: Peer ID will vary depending on sequence of the different agents being started in the target env

Command to ask Agent to rescan for PS Components from set directory above (windowsdrivestocrawl =) From a SEPARATE command line window, run command
E:\hrlmsdmo\pt850\PSEMAgent\StartAgent.bat recrawl INFO main EMF_CATEGORY - Proceeding with matching for Host INFO main EMF_CATEGORY - Proceeding with matching for Host INFO main EMF_CATEGORY - Proceeding with matching for AppServer INFO main EMF_CATEGORY - Detected an install for appserver at e:/hrlmsdmo/PT8.49 /appserv/Search - unable to detect a configuration file. Ignoring this installat ion INFO main EMF_CATEGORY - Proceeding with matching for prcsserver INFO main EMF_CATEGORY - Proceeding with matching for CLIENT INFO main EMF_CATEGORY - Diff: Hours 0 Minutes 0 Seconds 11

Test EM Hub status. LMS DMO : http://aix15:1081/PSEMHUB/hub

Stop EM Hub Agent on Windows


From command line window running the interactive Agent command, Press CTRL-C to stop Agent program

74552777.doc 11/4/2011 - 6:02:17 a11/p11

page 9 / 14

PS Setup EMHub, EMAgents, ChangeAssistant for Update Deployment

Apr 2010

74552777.doc 11/4/2011 - 6:02:17 a11/p11

page 10 / 14

PS Setup EMHub, EMAgents, ChangeAssistant for Update Deployment

Apr 2010

Change Assistant
Change Assistant Setup
Once the EM Hub agents are running, do the following in Change Assistant Configure Change Assistant Start Change Assistant

Menu: Tools> Options

74552777.doc 11/4/2011 - 6:02:17 a11/p11

page 11 / 14

PS Setup EMHub, EMAgents, ChangeAssistant for Update Deployment


Change Assistan TAB: Be sure to setup the right PS_HOME path

Apr 2010

Environment Management:

NOTE: Setup Server Host and Port to connect to the PIA instance of the PS Env you need to update using Chg Assist. Click Close on Summary window, then OK to close Options window

74552777.doc 11/4/2011 - 6:02:17 a11/p11

page 12 / 14

PS Setup EMHub, EMAgents, ChangeAssistant for Update Deployment


Validate

Apr 2010

, Then Click on Start Validation

Test EM Hub status. LMS DMO : http://aix15:1081/PSEMHUB/hub

74552777.doc 11/4/2011 - 6:02:17 a11/p11

page 13 / 14

PS Setup EMHub, EMAgents, ChangeAssistant for Update Deployment

Apr 2010

*** END OF DOCUMENT ***

74552777.doc 11/4/2011 - 6:02:17 a11/p11

page 14 / 14

Vous aimerez peut-être aussi