Paul,
Why not just log the output of "uptime" at a routine interval?
Thanks.
On Tue, Jan 30, 2024 at 05:04:50PM +0000, Paul Boserup via IBM TechXchange Community wrote:
> Good point, duly noted. Here is what I've come up with and plan to add this as a cron job.
>
> echo "$(date +%Y%m%d%k%M) $((who)|wc -l)" >> /var/log/MaxUsers/MaxUsers.log
>
>
>
> Paul Boserup
> Senior Server Engineer
> Information Systems - Technical Services
> Sarasota Memorial Hospital
> 941-302-7154 mobile
>
>
> *************************************************************************
> Confidentiality Notice: the information contained in this email and any attachments may be legally privileged and confidential. If you are not an intended recipient, you are hereby notified that any dissemination, distribution, or copying of this e-mail is strictly prohibited. If you have received this e-mail in error, please notify the sender and permanently delete the e-mail and any attachments immediately. You should not retain, copy or use this e-mail or any attachments for any purpose, nor disclose all or any part of the contents to any other person.
>
> -------------------------------------------
> Original Message:
> Sent: 1/30/2024 10:52:00 AM
> From: Jos? Pina Coelho
> Subject: RE: Logging maximum number of concurrent users in AIX
>
>
> Note that here "concurrent" is "logged in at the same time", not "working at the same time", so management's usual linear approach may backfire spectacularly if the amount of work per user times time unit is significantly higher for the new users than for the previous ones.
>
>
>
>
> ------------------------------
> Jos? Pina Coelho
> IT Specialist at Kyndryl
> ------------------------------
> -------------------------------------------
> Original Message:
> Sent: Tue January 30, 2024 10:21 AM
> From: Paul Boserup
> Subject: Logging maximum number of concurrent users in AIX
>
>
> Thanks for your reply. This appears to be nice and simple solution to what I need.
>
> Mgmt is wanting to know the max number of concurrent users hitting the box and how it relates to utilization.
>
> They are looking to add more users to the system and want to know how many more can be accommodated.
>
>
>
>
>
> Paul Boserup
> Senior Server Engineer
> Information Systems - Technical Services
> Sarasota Memorial Hospital
> 941-302-7154 mobile
>
>
> *************************************************************************
> Confidentiality Notice: the information contained in this email and any attachments may be legally privileged and confidential. If you are not an intended recipient, you are hereby notified that any dissemination, distribution, or copying of this e-mail is strictly prohibited. If you have received this e-mail in error, please notify the sender and permanently delete the e-mail and any attachments immediately. You should not retain, copy or use this e-mail or any attachments for any purpose, nor disclose all or any part of the contents to any other person.
>
>
> Original Message:
> Sent: 1/30/2024 10:09:00 AM
> From: Jos? Pina Coelho
> Subject: RE: Logging maximum number of concurrent users in AIX
>
>
> AIX doesn't keep that metric. If you need it, you must collect the output of "who|wc -l" at set intervals.
>
> On the other hand, you might be facing an X/Y problem, what is the intended use of this metric ?
>
>
> ------------------------------
> Jos? Pina Coelho
> IT Specialist at Kyndryl
> ------------------------------
>
> Original Message:
> Sent: Thu January 25, 2024 12:11 PM
> From: Paul Boserup
> Subject: Logging maximum number of concurrent users in AIX
>
>
> Hi, is there a way to log and or view the history of the maximum number of concurrent authenticated user logins in AIX?
>
> A Google search did not return anything useful.
>
>
> ------------------------------
> Paul Boserup
> ------------------------------
>
>
> Reply to Sender :
https://community.ibm.com/community/user/eGroups/PostReply?GroupId=6049&MID=396048&SenderKey=6c2ce62b-8140-41c3-8c58-018d50ef0794>
> Reply to Discussion :
https://community.ibm.com/community/user/eGroups/PostReply?GroupId=6049&MID=396048>
>
>
> You are subscribed to "AIX" as
Russell.Adams@AdamsSystems.nl. To change your subscriptions, go to
http://community.ibm.com/community/user/preferences?section=Subscriptions. To unsubscribe from this community discussion, go to
http://community.ibm.com/HigherLogic/eGroups/Unsubscribe.aspx?UserKey=c23dfccc-9910-40ae-beeb-fdcbced5bf1f&sKey=KeyRemoved&GroupKey=7b554d78-d4dc-417a-b4dc-017e309e5c91.------------------------------------------------------------------
Russell Adams
Russell.Adams@AdamsSystems.nlPrincipal Consultant Adams Systems Consultancy
https://adamssystems.nl/
Original Message:
Sent: 1/30/2024 12:05:00 PM
From: Paul Boserup
Subject: RE: Logging maximum number of concurrent users in AIX
Good point, duly noted. Here is what I've come up with and plan to add this as a cron job.
echo "$(date +%Y%m%d%k%M) $((who)|wc -l)" >> /var/log/MaxUsers/MaxUsers.log
Paul Boserup
Senior Server Engineer
Information Systems - Technical Services
Sarasota Memorial Hospital
941-302-7154 mobile
*************************************************************************
Confidentiality Notice: the information contained in this email and any attachments may be legally privileged and confidential. If you are not an intended recipient, you are hereby notified that any dissemination, distribution, or copying of this e-mail is strictly prohibited. If you have received this e-mail in error, please notify the sender and permanently delete the e-mail and any attachments immediately. You should not retain, copy or use this e-mail or any attachments for any purpose, nor disclose all or any part of the contents to any other person.
Original Message:
Sent: 1/30/2024 10:52:00 AM
From: José Pina Coelho
Subject: RE: Logging maximum number of concurrent users in AIX
Note that here "concurrent" is "logged in at the same time", not "working at the same time", so management's usual linear approach may backfire spectacularly if the amount of work per user times time unit is significantly higher for the new users than for the previous ones.
------------------------------
José Pina Coelho
IT Specialist at Kyndryl
------------------------------
Original Message:
Sent: Tue January 30, 2024 10:21 AM
From: Paul Boserup
Subject: Logging maximum number of concurrent users in AIX
Thanks for your reply. This appears to be nice and simple solution to what I need.
Mgmt is wanting to know the max number of concurrent users hitting the box and how it relates to utilization.
They are looking to add more users to the system and want to know how many more can be accommodated.
Paul Boserup
Senior Server Engineer
Information Systems - Technical Services
Sarasota Memorial Hospital
941-302-7154 mobile
*************************************************************************
Confidentiality Notice: the information contained in this email and any attachments may be legally privileged and confidential. If you are not an intended recipient, you are hereby notified that any dissemination, distribution, or copying of this e-mail is strictly prohibited. If you have received this e-mail in error, please notify the sender and permanently delete the e-mail and any attachments immediately. You should not retain, copy or use this e-mail or any attachments for any purpose, nor disclose all or any part of the contents to any other person.
Original Message:
Sent: 1/30/2024 10:09:00 AM
From: José Pina Coelho
Subject: RE: Logging maximum number of concurrent users in AIX
AIX doesn't keep that metric. If you need it, you must collect the output of "who|wc -l" at set intervals.
On the other hand, you might be facing an X/Y problem, what is the intended use of this metric ?
------------------------------
José Pina Coelho
IT Specialist at Kyndryl
Original Message:
Sent: Thu January 25, 2024 12:11 PM
From: Paul Boserup
Subject: Logging maximum number of concurrent users in AIX
Hi, is there a way to log and or view the history of the maximum number of concurrent authenticated user logins in AIX?
A Google search did not return anything useful.
------------------------------
Paul Boserup
------------------------------