- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- psgrep not found
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2003 11:35 PM
07-24-2003 11:35 PM
i am having problems with my cluster's config.
it says:
psgrep: not found
i checked customer.functions and the psgrep line seems OK..
i also looked for psgrep but i cant find it anywhere.
trying to work it with MCSG A.11.13 and SAP
please help...
thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2003 11:55 PM
07-24-2003 11:55 PM
Re: psgrep not found
I am not aware of a psgrep command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2003 12:02 AM
07-25-2003 12:02 AM
Re: psgrep not found
It may be an alias...
try issuing, from shell
alias | grep ps
and see.
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2003 12:05 AM
07-25-2003 12:05 AM
Re: psgrep not found
I further would assume that this alias or like is already defined in some (shell specific) dotfile in the sap user's $HOME.
Probably your package control script just needs to source this dotfile?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2003 12:10 AM
07-25-2003 12:10 AM
Re: psgrep not found
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2003 12:20 AM
07-25-2003 12:20 AM
Re: psgrep not found
I remembered we had a box that runs SAP.
Thereon I did this:
# swlist|grep -i sap
B7885BA B.03.07 MC/Service Guard Extension for SAP
PHSS_28733 1.0 OV DP5.00 patch - SAP packet
# swlist -l file B7885BA
# Initializing...
# Contacting target "warnow"...
#
# Target: warnow:/
#
# B7885BA B.03.07 MC/Service Guard Extension for SAP
# B7885BA.SG-Ext-SAP-R3 B.03.07 MC/ServiceGuard Extension for SAP
# B7885BA.SG-Ext-SAP-R3.SG-SAP-COR B.03.07 Core MC/SG SAP R/3 Integration Files
/opt/cmcluster
/opt/cmcluster/sap
/opt/cmcluster/sap/CCmon
/opt/cmcluster/sap/CCmon/Readme_CCmon
/opt/cmcluster/sap/CCmon/Setup_CCmon
/opt/cmcluster/sap/CCmon/ccmon.tar
/opt/cmcluster/sap/SID
/opt/cmcluster/sap/SID/customer.csh
/opt/cmcluster/sap/SID/customer.sh
/opt/cmcluster/sap/SID/sap.conf
/opt/cmcluster/sap/SID/sapap.cntl
/opt/cmcluster/sap/SID/sapci.cntl
/opt/cmcluster/sap/SID/sapdb.cntl
/opt/cmcluster/sap/SID/sapdbci.cntl
/opt/cmcluster/sap/SID/saplc.cntl
/opt/cmcluster/sap/SID/saplc.mon
/opt/cmcluster/sap/SID/startdb.sql
/opt/cmcluster/sap/customer.functions
/opt/cmcluster/sap/sap.functions
# grep -l psgrep $(swlist -l file B7885BA|grep /opt)
/opt/cmcluster/sap/customer.functions
/opt/cmcluster/sap/sap.functions
# grep alias\ psgrep /opt/cmcluster/sap/sap.functions
alias psgrep='ps -ef | grep -v grep'
There we got the culprit.
I think you must provide your customer_defined_cm{run|halt}_commands()
somehow with an invocation (probably sourcing) of this sap.functions file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2003 12:27 AM
07-25-2003 12:27 AM
Re: psgrep not found
got it now....
its just an alias..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2003 12:34 AM
07-25-2003 12:34 AM
Re: psgrep not found
don't know if the basic SAP file layout is the same on most HP-UX boxes.
However I found on our's in one of the SG packages' directories this sapdbci.cntl file lingering.
Therein is a variable assignment that gives the path to the sap.functions.
Maybe this one is lacking in your installation?
# grep ^FUNC_FILE /etc/cmcluster/Z01/sapdbci.cntl
FUNC_FILE=${FUNC_FILE:-/etc/cmcluster/sap.functions}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2003 12:43 AM
07-25-2003 12:43 AM
SolutionYou should find in the /opt/cmcluster/sap/sap.functions file that there is a line:
alias psgrep=`ps -ef | grep -v grep`
All this is doing is enabling later grep command lines to be shortened in htese scripts.
This is definitley in the B.03.06 release.
As I say, this no longer seem to appear in the later SGeSAP toolkit releases.
Checking my B.03.07 it is still htere, but in hte newer B.03.08 it is no longer there.