- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Setting up PRM Application records
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
05-06-2004 01:56 AM
05-06-2004 01:56 AM
The users are split between the groups.
This works fine.
But for a few users I would like to place the processes in different PRM groups. I try to use Application records to make it work automaticly.
My problem is that I have to known the absolute path of the binary to be able to specify the Application records. When I use the ps -ef command I can't see the complete path of the specific binary.
The "args" field presented by ps can look like
"./RunThisScript".
How can I get the absolute binary path of a process?
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 02:12 AM
05-06-2004 02:12 AM
Re: Setting up PRM Application records
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 02:17 AM
05-06-2004 02:17 AM
Re: Setting up PRM Application records
> ps -efx | grep MyServer
myadmin 21641 21638 0 09:34:50 ? 0:27 ./MyServer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 02:19 AM
05-06-2004 02:19 AM
Re: Setting up PRM Application records
I am afraid if a process is not started with the full path, you are not able to see it using ps. If you have glance installed you should be able to view the process memory regions. The TEXT is mapped on a file name. This is the full path of the executable.
If you do not have glance ( free 60 days , on application cdrom) you can always ask the application manager, the person who started the process.
Regards,
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 02:22 AM
05-06-2004 02:22 AM
Re: Setting up PRM Application records
guess you are limited to:
su - myadmin (or other process owner)
which MYCOMMAND
whereis MYCOMMAND
Regards,
Bernhard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 02:23 AM
05-06-2004 02:23 AM
Re: Setting up PRM Application records
# which
and that will give you the full path. So, grep for it like you are doing and if it exists, then execute the which command.
-Hazem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 02:33 AM
05-06-2004 02:33 AM
Re: Setting up PRM Application records
TEXT /Shared 2 436kb 528kb 0kb
To ask the person who started the process can be hard. Most processes are started by several levels of scripts. I hope to find a better way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 02:40 AM
05-06-2004 02:40 AM
Re: Setting up PRM Application records
application = xxx
file = *RunThisScript*
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 02:43 AM
05-06-2004 02:43 AM
Re: Setting up PRM Application records
Another problem is when the ps command gives even less information. For the oracle processes I only get something like this:
> ps -efx | grep ora_reco
oracle 21905 1 0 09:35:49 ? 0:00 ora_reco_PPK
What is the path of the binary?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 02:56 AM
05-06-2004 02:56 AM
Re: Setting up PRM Application records
Did you try gpm. If i look at a process i get Type, File Name P/S and RSS/KB , In the file name section i get a full path. or the lvol followed by an inode number:
The inode numbers can be found with
ls -Ri in the start point of the lvol.
HTH,
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 03:05 AM
05-06-2004 03:05 AM
Re: Setting up PRM Application records
/usr/bin/dummy::::MYGROUP,*procName*
to check if the binary path was used.
But it didn't work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 06:36 AM
05-06-2004 06:36 AM
SolutionThe alias only works if it is started from the executable provided started it. Aliases can be verry usefull for oracle processes. The processes are all started by the oracle executable, but the many process names contain ora*
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 07:03 AM
05-06-2004 07:03 AM
Re: Setting up PRM Application records
Thank you vary much.
If you don't know where the binary could be found and have to search the complete filesystem, this method could take some time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 07:16 AM
05-06-2004 07:16 AM
Re: Setting up PRM Application records
May be a
#find /dir -inum
is quicker. just make sure /dir is the root dir of a filesystem. You can use the -xdev option if the filesystem has mount of an other filesystem in it.
Regards,
Gideon