on 07-09-2010 10:01 PM
Hi ,
I installed SAPHOSTAGENT (Pre requisite for SMD 7.11).
I stopped sapcontrol with the below command
"sapcontrol -nr 99 -function StopService"
But when trying to start i am getting the below error
StartService
FAIL: Service definition not found in /usr/sap/sapservices.
Can you please let me know what should be added in sapservices file?
When i stopped sapcontrol both the below processes are also stopped ,I am not sure about the reason.
/usr/sap/hostctrl/exe/saposcol pf=/usr/sap/hostctrl/exe/host_profile
/usr/sap/hostctrl/exe/saphostexec pf=/usr/sap/hostctrl/exe/host_profile
Will all the processes be stopped if sapcontrol is stopped ?I thought only when saphostexec is stopped all the related proceses will stop.
I guess i need more clarification on how saphostagent works.....
Please let me know how to solve the above error...
Thanks in Advance......
Thanks,
Srini
I'm confused about the instance number 99.
Besides that, an entry is missing in services-file.
This is the format for the entries:
sapdp<instance> 32<instance>/tcp
In your example, that would be
sapdp99 3299/tcp
Make sure that the services file ends with an empty line.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You should not use the StopService method to Stop the hostagent.
you should use "hostexec -stop"
But if you are getting the error "FAIL: Service definition not found in /usr/sap/sapservices." to any other SAP system, see note
1868668 FAIL: Service definition not found in /usr/sap/sapservices.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Srini,
it looks like a diagnostic agent to start and stop.
I had the same problem.
You do not need to insert any entries in /usr/sap/sapservices
Please try:
su - <SID>adm -c "smdstart.sh <SID> 99" ## to start the agent
su - <SID>adm -c "smdstop.sh <SID> 99" ## to stop the agent
You can find the smdstart and smdstop in /usr/sap/<SID>/exe
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To register sapstartsrv in the /usr/sap/services file you have to run the following:
/usr/sap/hostctrl/exe/saphostctrl -function RegisterInstanceService \
-sid <SID> -nr <instance number> -saplocalhost <hostname> \
-profile <path to instance start profile>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What OS are you running? I can remember that instance number 99 was not allowed for HP-UX..
Kind regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tomas,
I am installed SAPHOSTAGENT which is a prerequiesite for SMD 7.11 which gets installed with 99 as default.
I am still having issue when trying to register.
./saphostctrl -function RegisterInstanceService -sid SAP -nr 99 -saplocalhost bsbx01 -profile /usr/sap/hostctrl/exe/host_profile
Error: SAP Instance SID='SAP', NR='99', SAPLOCALHOST='bsbx01' not found. Please check your installation (e.g. profile parameter SAPLOCALHOST).
Thanks,
Srini
believe your /usr/sap/sapservices file is missing with below entry, please check
START_<SID>_<Instance_number>_<Hostname>:LD_LIBRARY_PATH=/usr/sap/<SID>/<Instance>/exe:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; /usr/sap/<SID>/<Instance>/exe/sapstartsrv pf=/usr/sap/<SID>/SYS/profile/START_<Instance>_<Hostname>
OR
LD_LIBRARY_PATH=/usr/sap/<SID>/<Instance>/exe:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; /usr/sap/<SID>/<Instance>/exe/sapstartsrv pf=/usr/sap/<SID>/SYS/profile/START_<Instance>_<Hostname>
Sreenivas,
Both the entries you mentioned are for SAP instance but i am getting the below error while starting host agent
Tomas,
host_profile has the below entries
more host_profile
SAPSYSTEMNAME = SAP
SAPSYSTEM = 99
service/porttypes = SAPHostControl SAPOscol
#SAPHostControl NwaManagement SAPCCMS
DIR_LIBRARY = /usr/sap/hostctrl/exe
DIR_EXECUTABLE = /usr/sap/hostctrl/exe
DIR_PROFILE = /usr/sap/hostctrl/exe
DIR_GLOBAL = /usr/sap/hostctrl/exe
DIR_INSTANCE = /usr/sap/hostctrl/exe
DIR_HOME = /usr/sap/hostctrl/work
Thanks,
Srini
Sreenivas,
I already tried that and hostexec is running
-
ps -ef |grep host
root 5821 7507 0 Jul 13 ? 0:03 ./saphostexec -start pf=/usr/sap/hostctrl/exe/host_profile
root 5835 7507 0 Jul 13 ? 7:50 /usr/sap/hostctrl/exe/saposcol -l pf=/usr/sap/hostctrl/exe/host_profile
root 22363 17581 0 08:33:54 pts/24 0:00 grep host
sapadm 5823 7507 0 Jul 13 ? 3:52 /usr/sap/hostctrl/exe/sapstartsrv pf=/usr/sap/hostctrl/exe/host_profile -D
-
I need some clarification here ,
When hostexec is started do we still need to start sacontrol and saphostctrl????What is the order of start and stop procedure for host agent?
Thanks,
Srini
User | Count |
---|---|
87 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.