To find out the biggest file in the directory in descending order
$du -sk * | sort -n
other beautiful command to find in which file the parameter is defined in directory:
$cd /sapmnt/PEP/profile
$grep "DIR_CCMS" *
Monday, January 2, 2012
ccms agent shared memory problems
During startup of CCMS agent, we were getting the shared memory errors:
$sapccm4x -DCCMS pf=/sapmnt/PEP/profile/PEP_DVEBMGS00_pep0v
INFO: use SAPLOCALHOST ew1app
INFO: CCMS agent sapccmsr working directory is /usr/sap/ccms/EW1_02/sapccmsr
INFO: CCMS agent sapccmsr config file is /usr/sap/ccms/EW1_02/sapccmsr/csmconf
INFO: Central Monitoring System is EW1. (found in config file)
INFO: additional Central Monitoring System is SMS. (found in config file)
INFO: Agent is running (actual pid file is detected)
**********************************************************
Another CCMS Agent is already running with this profile.
**********************************************************
EXITING with code 1
Executing the below command resolved this issue:
sapccm4x -initshm pf=/sapmnt/PEP/profile/PEP_DVEBMGS00_pep0v
when we started again it came up.
$sapccm4x -DCCMS pf=/sapmnt/PEP/profile/PEP_DVEBMGS00_pep0v
INFO: use SAPLOCALHOST ew1app
INFO: CCMS agent sapccmsr working directory is /usr/sap/ccms/EW1_02/sapccmsr
INFO: CCMS agent sapccmsr config file is /usr/sap/ccms/EW1_02/sapccmsr/csmconf
INFO: Central Monitoring System is EW1. (found in config file)
INFO: additional Central Monitoring System is SMS. (found in config file)
INFO: Agent is running (actual pid file is detected)
**********************************************************
Another CCMS Agent is already running with this profile.
**********************************************************
EXITING with code 1
Executing the below command resolved this issue:
sapccm4x -initshm pf=/sapmnt/PEP/profile/PEP_DVEBMGS00_pep0v
when we started again it came up.
Thursday, December 22, 2011
How to empty a Unix file system with cat /dev/null command dev null
First take the backup of existing file :
$cp dev_rd.log /sapcd/XVPdev
then empty the file
$cat /dev/null > dev_rd.log
still it was giving error : File exists.
It meant that noclobber option is set so gave command
$cat /dev/null >! dev_rd.log
and it worked
$cp dev_rd.log /sapcd/XVPdev
then empty the file
$cat /dev/null > dev_rd.log
still it was giving error : File exists.
It meant that noclobber option is set so gave command
$cat /dev/null >! dev_rd.log
and it worked
Thursday, December 8, 2011
Removing semaphores shared memory keys with ipcrm
Sometimes we are not able to remove the shared memory keys with cleanipc 52 remove command, we can find the culprit this way :
ipcs | grep crdadm | awk '{printf("ipcrm -s %s\n", $2);}'
or if we already have the error like that
Dec 8 10:52:08 root@globiz63 logpipe[16010]: (start_app crd0v 52 crdadm 1): OsKey: 25238 0x00006296 Semaphore Key: 38 remove failed **** - errno = 1 (Not owner)
you may find the cultprit by
## ipcs | grep 0x00006296
it will give the ownere as well
now log in as the owner and give the command
## ipcrm -s 687 (687 is the semaphore ID)
it should go now.
ipcs | grep crdadm | awk '{printf("ipcrm -s %s\n", $2);}'
or if we already have the error like that
Dec 8 10:52:08 root@globiz63 logpipe[16010]: (start_app crd0v 52 crdadm 1): OsKey: 25238 0x00006296 Semaphore Key: 38 remove failed **** - errno = 1 (Not owner)
you may find the cultprit by
## ipcs | grep 0x00006296
it will give the ownere as well
now log in as the owner and give the command
## ipcrm -s 687 (687 is the semaphore ID)
it should go now.
Wednesday, November 30, 2011
Downloading from SAP no options for spreadsheet to choose different formats
As per our understanding, you need the below dialog box again to select any other format than Excel (in MHTML format) that you have choosen with "Always Use Selected format" checked:
Please follow the below link in order to do that :
http://help.sap.com/saphelp_nw70/helpdata/en/45/6e983a53ad487fe10000000a114a6b/content.htm
We tried on our end and this is working for us.
In our test scanario when we clicked on spreadsheet option it is not showing the other formats and directly taking to the path where to save the file:
In order to get the options again, we chose one of the line items that we need to export :
Now right click on the selected line item and select spreadsheet :
It will ask again for the selection screen with "Always Use selected format" option selected:
Please uncheck the option "Always Use Selected Format" and take the export.
Now next time onwards, it will always show the dialog box showing the formats in which you need to take the exports.
Wednesday, November 16, 2011
XVP Messaging adapter hung for FTP TIMOUT
There was a scenario where the Rail Cargo messages stuck in the XVP system and every time we need to take a system restart in order to enable the server to process the messages again.
We checked the communication channel there also the FTP timout was 60 sec. Obviously, the messages stuck due to the FTP Timout but after that the messaging server was not able to process any of the message.
Root cause and work around suggested by David from XI team to set the value of parameter messaging.system.queueParallelism.maxReceivers to 2 for SAP XI AF Messaging and SAP XI AF Core adapters in visual admin.
We checked the value of the same was 2 in server0 but was 0 in server1. Change raised to correct the same in server1
For more information on messaging parameters follow below link:
http://help.sap.com/saphelp_nwpi71/helpdata/en/59/25ee41c334c717e10000000a155106/content.htm
Relevant material :
messaging.system.queueParallelism.maxReceivers
Value type: Integer
Default: 0 (disabled)
This property specifies the maximum number of parallel worker threads per queue, based on the receiver fields of the processed messages. A value of 2, for example, will limit the amount of parallel worker threads for one receiver channel instance to 2, allowing the remaining configured worker threads to process messages for other receiver channel instances of the same adapter type.
We checked the communication channel there also the FTP timout was 60 sec. Obviously, the messages stuck due to the FTP Timout but after that the messaging server was not able to process any of the message.
Root cause and work around suggested by David from XI team to set the value of parameter messaging.system.queueParallelism.maxReceivers to 2 for SAP XI AF Messaging and SAP XI AF Core adapters in visual admin.
We checked the value of the same was 2 in server0 but was 0 in server1. Change raised to correct the same in server1
For more information on messaging parameters follow below link:
http://help.sap.com/saphelp_nwpi71/helpdata/en/59/25ee41c334c717e10000000a155106/content.htm
Relevant material :
messaging.system.queueParallelism.maxReceivers
Value type: Integer
Default: 0 (disabled)
This property specifies the maximum number of parallel worker threads per queue, based on the receiver fields of the processed messages. A value of 2, for example, will limit the amount of parallel worker threads for one receiver channel instance to 2, allowing the remaining configured worker threads to process messages for other receiver channel instances of the same adapter type.
Subscribe to:
Posts (Atom)