Home » Archive

Articles tagged with: maxusers

Linux Administration »

[29 May 2008 | No Comment | ]

Here ’tis
w | awk ‘{a[$1]++}END{for(i in a){print a[i] ” ” i}}’ | sort -rn | head
stumbled on this issue with a HP-UX server we run where the maxusers kernel paramater is set to 600 (512 by default). To change this setting, requires a reboot of the server (something not easily achievable at midday with 600 users logged in). You can change kernel parameters via SAM in HP-UX
This is a slight modification of the 1 liner that sorts your bash history by commands used:
history | awk ‘{a[$2]++}END{for(i in a){print a[i] ” …