- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Monitoring maxuprc
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
Forums
Discussions
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
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-26-2004 09:01 PM
05-26-2004 09:01 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 09:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 09:10 PM
05-26-2004 09:10 PM
Re: Monitoring maxuprc
maxuprc is the maximum number of processes a particular user can start on the system. ps -ef |grep "user name " |wc -l may give the approx number.
regards,
RDL.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 09:13 PM
05-26-2004 09:13 PM
Re: Monitoring maxuprc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 09:29 PM
05-26-2004 09:29 PM
Re: Monitoring maxuprc
# ps -fu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2004 12:13 AM
05-27-2004 12:13 AM
Re: Monitoring maxuprc
# more procs_per_user.sh
#!/bin/ksh
##
##
#************************************************************
#* *
#* *
#* *
#************************************************************
MAXUPRC_LOGFILE=/var/tmp/userprocs.log
INTERVAL=1800
while true
do
user=`ps -ef | awk '{print $1}' | sort -u | grep -v UID`
for x in $user
do
userproc=`ps -ef |grep $x |wc -l`
echo "`date | awk '{print $2,$3,$4}'` USER: $x\t NUMBER OF PROCESSES:\t$userproc" >> $MAXUPRC_LOGFILE
done
sleep $INTERVAL
echo "\n************************************************************************\n" >> MAXUPRC_LOGFILE
done
If you want you can even add some alerting in there... or a threshold where, when reached, the logging interval is cut in half and in half and in half until the number is over that threshold again... at which point, the logging interval could return to normal.
Hope this helps!
Tonya Underwood
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2004 12:16 AM
05-27-2004 12:16 AM