cancel
Showing results for 
Search instead for 
Did you mean: 

SAPCCM4X registration fails with exit code -1

Former Member
0 Kudos

Hi all,

While I am trying to register a remote system in solution Manager 4.0 using CCMS agent, we get this screen where it stops for asking the paswword to log on into the system, but even before we can enter the password, it exist with the error code -1.

My remote system is SCP and the solution Manager system is SMP.

I generated the CMSCONF file from solution Manager, placed that in the work directory for my remote system, and created the CSMREG user as well before starting the process.

Have already tried upgrading the SAPCCM4X agent to the latest patch level.

The log is as shown:

sapccm4x -R pf=/sapmnt/SCP/profile/SCP_DVEBMGS43_SAPPROD

Remote Call Failed in O4PRTLIB::chkobjU

Errno = 2

FILE=o4tmklibp.cpp - LINE=117

-


-

SharedLibCache Information:

Search Path:

-


/sapmnt/SCP/exe

*LIBL

/sapmnt/SCP/exe

/usr/sap/SCP/SYS/exe/run

/QOpenSys/usr/bin

/usr/ccs/bin

/QOpenSys/usr/bin/X11

/usr/sbin

/usr/bin

.

/usr/sap/SCP/SYS/exe/run

Load Cache:

-


-


-

Remote Call Failed in O4PRTLIB::chkifsobjU

Errno = 2

FILE=o4tmklibp.cpp - LINE=74

-


-

SharedLibCache Information:

Search Path:

-


/sapmnt/SCP/exe

*LIBL

/sapmnt/SCP/exe

/usr/sap/SCP/SYS/exe/run

/QOpenSys/usr/bin

/usr/ccs/bin

/QOpenSys/usr/bin/X11

/usr/sbin

/usr/bin

.

/usr/sap/SCP/SYS/exe/run

Load Cache:

-


-


-

Remote Call Failed in O4PRTLIB::o4_setmaxfh

Errno = 2

FILE=o4tmklibp.cpp - LINE=290

-


-

SharedLibCache Information:

Search Path:

-


/sapmnt/SCP/exe

*LIBL

/sapmnt/SCP/exe

/usr/sap/SCP/SYS/exe/run

/QOpenSys/usr/bin

/usr/ccs/bin

/QOpenSys/usr/bin/X11

/usr/sbin

/usr/bin

.

/usr/sap/SCP/SYS/exe/run

Load Cache:

-


-


-

INFO: use SAPLOCALHOST SAPPROD

INFO: CCMS agent sapccm4x working directory is /usr/sap/SCP/DVEBMGS43/log/sap

ccm4x

INFO: CCMS agent sapccm4x config file is /usr/sap/SCP/DVEBMGS43/log/sapccm4x/

csmconf

INFO: Central Monitoring System is [SMP]. (found in config file)

additional CENTRAL system y/[n] ? :

INFO: found ini file /usr/sap/SCP/DVEBMGS43/log/sapccm4x/sapccmsr.ini.

INFO:

CCMS version 20040229, 64 bit, multithreaded, Non-Unicode

compiled at Apr 25 2007

systemid 324 (IBM iSeries with OS400)

relno 6400

patch text patch collection 2007/3, OSS note 1013331

patchno 180

intno 20020600

running on SAPPROD OS400 4 5 0010000E554E

pid 35119

profile /sapmnt/SCP/profile/SCP_DVEBMGS43_SAPPROD

INFO: Attached to Shared Memory Key 13 (size 40141728) in pool 10

INFO: Connected to Monitoring Segment [CCMS Monitoring Segment for applicatio

n server SAPPROD_SCP_43, created with version CCMS version 20040229, 64 bit s

ingle threaded, compiled at Sep 8 2006, kernel 6400_20020600_147, platform

324 (IBM iSeries with OS400)]

segment status ENABLED

segment started at Sat May 19 23:43:38 2007

segment version 20040229

                                            • SMP **********************

Please enter the logon info for an admin user of the

central monitoring system [SMP].

The user should have system administrator privileges

client [500]

user [C-AGUPTA]

language [EN]

trace level [0]

application server [SAPPROD]

system number [44]

Logon info ok n/[y] ? :

please enter password for [SMP:500:C-AGUPTA]:

Fail to get user password.

EXITING with code 1

$

At the last point where it asks us to

==> "please enter password for [SMP:500:C-AGUPTA]:"

It exits immediately, without giving us a chance to enter the password.

Has anyone seen anything like this?

Thanks

Abhi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi, I had the same issue here is what was done.

Create stmf csmconf in directory /usr/sap/LCP/DVEBMGS00/log/sapccm4x

Copy below to /usr/sap/LCP/DVEBMGS00/log/sapccm4x (change any names to match yours.) Supply the password you assigned in SOL MAN for user CCMSADM

Check that R3OWER has authority to csmconf if not, add R3OWNER

  1. Configuration file for SAP CCMS agent program sapccmsr

  2. generated by SMP at 20070403 093502

CEN_CONFIG

CEN_SYSID=SMP

.

CEN_ADMIN_USER

CEN_ADMIN_R3NAME=SMP

CEN_ADMIN_MSHOST=dpsapsmp001

CEN_ADMIN_LOADBALANCING=N

CEN_ADMIN_ASHOST=dpsapsmp001

CEN_ADMIN_SYSNR=02

  1. CEN_ADMIN_LOADBALANCING=Y

  2. CEN_ADMIN_GROUP=PUBLIC

CEN_ADMIN_CLIENT=001

CEN_ADMIN_USERID=CCMSADM

CEN_ADMIN_PASSWORD="add password here"

CEN_ADMIN_LANG=EN

CEN_ADMIN_TRACE=0

.

CEN_GATEWAY

CEN_GATEWAY_HOST=dpsapsmp001

CEN_GATEWAY_SYSNR=02

.

CEN_CSMREG_USER

CEN_CSMREG_R3NAME=SMP

CEN_CSMREG_MSHOST=dpsapsmp001

CEN_CSMREG_LOADBALANCING=N

CEN_CSMREG_ASHOST=dpsapsmp001

CEN_CSMREG_SYSNR=02

  1. CEN_CSMREG_LOADBALANCING=Y

  2. CEN_CSMREG_GROUP=PUBLIC

CEN_CSMREG_CLIENT=001

CEN_CSMREG_USERID=CSMREG

CEN_CSMREG_PASSWORD=

CEN_CSMREG_LANG=EN

CEN_CSMREG_TRACE=0

.

Logon as <sidofr>

you did create these directories?

('/usr/sap/ccms/LCP_00/sapccmsr'])

/usr/sap/LCP/DVEBMGS00/log/sapccm4x

Cd ‘usr/sap/lcp/DVEBMGS00/log/sapccm4x’

CALL PGM(R3640A0164/SAPCCM4X) PARM('-R' '-f ' CSMCONF 'pf=/usr/sap/LCP/sys/profile/LCP_DVEBMGS00_LFARCHIV') There will be messages from program if successful

Then check csmconf you should see some changes to front of file and encryption to the password.

Former Member
0 Kudos

Hi Udo,

Thanks a lot for that great workaround. That worked great.

Now my agent is registered in the central monitoring system (my solution manager, can see it) and I see two jobs running in QINTER on the box where my MONITORED system is located:

Subsystem/Job User Type CPU % Function Status

QZSHSH SCPOFR BCI .0 PGM-QZSHSH TIMW

WATCHDOG SCPOFR BCI .0 PGM-sapccm4x SELW

I suppose these jobs have to be up and running to send the info? Am i right?

How do I ensure that these are started when I start the SAP system and end when I end the SAP system( the monitored one)?? Like in windows, It makes a service by itself during the initial configuration....

I guess one option would be to put it in the startup profile, but then what should I put up in the start up profile? OR

Is there a better place to get these started and run it somewhere in QBATCH?

How do you guys manage this?

Thanks a lot.

Abhi

Former Member
0 Kudos

Hi Abhi,

I would suggest, that you include that in your startup profile. In order to be really flexible I would call a CL there and put the needed stuff into the CL (the long call with many parameters)

You can have a look at http://www.4soi.de/start-windows-appl-servers.php - that describes it for starting Win Appl server, but it is all the same ...

e.g.:

Start_Program_09 local CALL PGM(ZSTARTCCMS)

Regards

Volker Gueldenpfennig, consolut.gmbh

http://www.consolut.de - http://www.4soi.de - http://www.easymarketplace.de

Former Member
0 Kudos

Hi Volker,

We did create a program with the following parameters to start this:

RUNRMTCMD CMD('C:\STARTSTOPSAP_SCRIPTS\STARTCCM.BAT') +

RMTLOCNAME('LCDEV' *IP) RMTUSER(SCDADM) +

RMTPWD('password')

When we run this command directly on the interactive screen, it works great,

but if we put this command in a CL (ZCCMS) and compile it and do the

CALL PGM (QGPL/ZCCMS)

The command fails...

In the job log , it shows us:

Required password is either missing or invalid.

We guess what is happening is that this command RUNRMTCMD does not remember/shows the password once executed, even on the interactive screen.

We guess during the compile/generation of the program, it is not saving the password for the logon.

If that's the case, we can't get it started automatically from the startup profile.

Any ideas??

Thanks

Abhi

Answers (4)

Answers (4)

0 Kudos

I think the suggestion was to enter the i5/OS command CD '/usr/sap/<SID>/<INST>/log/sapccm4x' before calling SAPCCM4X. The csmconf file is specified without path in the command, so it will be located in the current directory of the job.

I cannot say much why you are seeing the problem with the input. I am not really awary of many customers complaining about this, which could mean one of the following:

- It runs fine for all other customers.

- All other customers were using the csmconf file rather than interactive input.

- No other customer has tried it before.

I cannot tell you which of the above is true.

Kind regards,

Christian Bartels.

0 Kudos

The command CALL PGM(SAPCCM4X) PARM(...) must not be executed from within qsh, but on a native i5/OS command line. qsh expects Unix-style commands, and the command that Jürgen suggested is i5/OS style.

I have the feeling that SAPCCM4X might have a problem reading command line input (i.e. when it should wait for you to enter the password, it returns immediately to the program instead, thus preventing you from entering a password). Instead of using the program in dialog, Jürgen seems to have places all configuration parameters into a file csmconf, and is is calling SAPCCM4X with the option to read the parameters from that command file rather than allowing the user to type it in interactively. This may indeed help working around the problem.

Kind regards,

Christian Bartels.

Former Member
0 Kudos

Hi Christian,

Thanks a lot, I was also thinking how I can execulte the CALL PGM on QSH..but never theless tried....:)) but What does he exactly mean by

==> "In the green screen change the actual directory to this directory /usr/sap/<SID>/<INST>/log/sapccm4x/"

Does he means, I use WRKLNK and go in /usr/sap/<SID>/<INST>/log/sapccm4x/ and then issue the command?? Something like that...???

and why does not the SAPCCM4x program takes the input on the qsh screen?? Is this an issue know to SAP and everyone has worked around it this way OR I am the only one having the issue...???

Thanks

Abhi

Former Member
0 Kudos

Hello,

it seems i had the same problem. My solution:

In the green screen change the actual directory to this directory /usr/sap/<SID>/<INST>/log/sapccm4x/

and CALL PGM(<kernellib>/SAPCCM4X) PARM('-r' '-f' csmconf 'pf=/usr/sap/<SID>/SYS/profile/<inst-prf>')

I have forgotten to set a "+" in the first colum of the parameterline so that me command line witch result in your mentined fail looks as follows

CALL PGM(<kernellib>/SAPCCM4X) PARM('-r -f csmconf' 'pf=/usr/sap/<SID>/SYS/profile/<inst-prf>')

After i make this correction the registration works proper.

Kind regards.

Former Member
0 Kudos

Hi jurgen,

Thanks a lot for the reply, but I am afraid I did not understand fully what you are saying.

Are you saying that

1) I should go in "qsh" and navigate to directory /usr/sap/<SID>/<INST>/log/sapccm4x/ ??/

2) then issue the command

CALL PGM(<kernellib>/SAPCCM4X) PARM('-r' '-f' csmconf 'pf=/usr/sap/<SID>/SYS/profile/<inst-prf>') on the QSH screen??

When I did that these are the results I get:

> pwd

/usr/sap/SCP/DVEBMGS43/log/sapccm4x

$

> CALL PGM(R3640KASCP/SAPCCM4X) PARM('-r' '-f' csmconf 'pf=/usr/sap/SCP/SYS/profile/SCP_DVEBMGS43_SAPPROD')

qsh: 001-0050 Syntax error on line 4: token "(" not expected.

I am not very clear on what exactly are you asking me to do??/

Am I right in my approach or u meant something else??

Thanks

Abhi

0 Kudos

Hi Abhi,

sounds like the problem of SAP Note 1056887. You may want to check if you find *SRVPGM's O4PRTLIBC and O4PRTLIBU in your kernel library. You can then either download the latest CCMAGENT patch (29) or - as a workaround - copy O4PRTLIBC into O4PRTLIB and try again.

Kind regards,

Christian Bartels.

Former Member
0 Kudos

Hi Christian,

Thanks a lot for the response.

It looks like that may be the cause, as I downloaded the CCMSAGENT patch level 28 only.

I will try with patch level 29. Thanks for the great info. I would have never imagined that.

Will update you with the results.

Thanks a lot

Abhi

Former Member
0 Kudos

Hi Christian

I forgot to mention...Patch number 29 is not available right now..or atleat I do not see it in the serv marketplace.

Let me see if they post it in the next few days...

Thanks

Abhi

Former Member
0 Kudos

will try copying of the O4PRTLIBC SRVPGM and give it the name O4PRTLIB

Lets see what happens

Abhi

Former Member
0 Kudos

Hi all

Tried creating the duplicate program but still doesn't like it...

It still exits with the return code of 1 as shown, although this time there are no messages as previously...so the duplicate program helped but still it does not allow me to enter the password and exits immediately..

>sapccm4x -R pf=/sapmnt/SCP/profile/SCP_DVEBMGS43_SAPPROD

INFO: use SAPLOCALHOST SAPPROD

INFO: CCMS agent sapccm4x working directory is /usr/sap/SCP/DVEBMGS43/log/sap

ccm4x

INFO: CCMS agent sapccm4x config file is /usr/sap/SCP/DVEBMGS43/log/sapccm4x/

csmconf

INFO: Central Monitoring System is [SMP]. (found in config file)

additional CENTRAL system y/[n] ? :

INFO: found ini file /usr/sap/SCP/DVEBMGS43/log/sapccm4x/sapccmsr.ini.

INFO:

CCMS version 20040229, 64 bit, multithreaded, Non-Unicode

compiled at Apr 25 2007

systemid 324 (IBM iSeries with OS400)

relno 6400

patch text patch collection 2007/3, OSS note 1013331

patchno 180

intno 20020600

running on SAPPROD OS400 4 5 0010000E554E

pid 35119

profile /sapmnt/SCP/profile/SCP_DVEBMGS43_SAPPROD

INFO: Attached to Shared Memory Key 13 (size 40141728) in pool 10

INFO: Connected to Monitoring Segment [CCMS Monitoring Segment for applicatio

n server SAPPROD_SCP_43, created with version CCMS version 20040229, 64 bit s

ingle threaded, compiled at Sep 8 2006, kernel 6400_20020600_147, platform

324 (IBM iSeries with OS400)]

segment status ENABLED

segment started at Sat May 19 23:43:38 2007

segment version 20040229

                                            • SMP **********************

Please enter the logon info for an admin user of the

central monitoring system [SMP].

The user should have system administrator privileges

client [500]

user [C-AGUPTA]

language [EN]

trace level [0]

application server [SAPPROD]

system number [44]

Logon info ok n/[y] ? :

please enter password for [SMP:500:C-AGUPTA]:

Fail to get user password.

EXITING with code 1

$

Looks like there may be somthing which SAP may have to look into...

Anyway, if anyone has any suggestions....let me know..

Thanks

Abhi