- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- PRM - capturing script application
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
Discussions
Discussions
Forums
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
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
тАО10-18-2006 01:39 AM
тАО10-18-2006 01:39 AM
hpux 11.11, PRM C.03.00.
I have an application that we need to resource restrict with PRM.
In ps the output looks like this:
root 1247 1246 0 13:48:07 pts/0 0:00 /bin/ksh /opt/coins9/dev/bin/session_%normal.sh -p pm99b.p -b
There will be many sessions like this but I'm only interested in the ones that contain pm99b.p .
Ive got this entry for it in /etc/prmconf:
REPORTS:15:1::
/bin/ksh::::REPORTS,.*pm99b.p*
The trouble is I can only see prm capture this (via prmmonitor) when I run the program with 'prmrun -g REPORTS progname', I can't see it when I just run it without prmrun.
The root user is in the PRM REPORTS group.
I need to find out how to get this script captured by PRM without having to specify prmrun.
Any help on this would be much appreciated before I pull whats left of my hair out ;)
Cheers,
Nick .
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2006 03:40 AM
тАО10-18-2006 03:40 AM
Solution/bin/ksh::::REPORTS,'.*pm99b\.p.*'
HTH
Duncan
I am an HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2006 10:03 PM
тАО10-18-2006 10:03 PM
Re: PRM - capturing script application
there's no mention of having to quote the RE in the docs or the examples I've seen.
However, I've just changed it to '*pm99b\.p*' and it seems to be working !
Thanks for your help.
Nick .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2006 01:40 AM
тАО10-19-2006 01:40 AM
Re: PRM - capturing script application
I spoke too early, the problem is still there.
I have a user called 'coins'.
This user is in PRM groups REPORTS and WEB.
Here's the application records from prmconf:
/bin/ksh::::REPORTS,'.*pm99b\.p*'
/usr/opt/dlc/v91d/bin/_progres::::WEB,'.*ubpid.*'
When this coins user runs anything it all goes into the REPORTS group. Nothing is using the WEB group.
Anyone got any ideas please ?
Thanks,
Nick .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2006 01:47 AM
тАО10-19-2006 01:47 AM
Re: PRM - capturing script application
coins::::REPORTS,WEB,OTHERS
to
coins::::WEB,REPORTS,OTHERS
then everything goes into the WEB group !
It's totally ignoring the Application records...
Any ideas ?
Nick.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2006 03:36 AM
тАО10-19-2006 03:36 AM
Re: PRM - capturing script application
# ps -efP
-P option:
Add column prmid (for -l) or prmgrp (for -f or -fl) immediately before column pid.
rgs,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2006 08:50 AM
тАО10-19-2006 08:50 AM
Re: PRM - capturing script application
Beginning with PRM 3.2, you can use EREs in alternate names. From the PRM 3.2 user's guide:
"...[T]he ERE should be the only alternate name in the record, and it should be within single quotes. Other records can still have non-ERE alternate names for the same application. Note that while non-ERE alternate names are matched against non dash command-line arguments, Extended Regular Expression alternate names are matched against the entire available command line."
So with PRM 3.2, your application records should behave as you are expecting. For PRM 3.0 you would have to use some scripting outside of the product using prmrun to get the process in the correct group based on the something other than the script name.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2006 09:08 PM
тАО10-19-2006 09:08 PM
Re: PRM - capturing script application
Thanks
Nick .