- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: once again time to show off your brain!
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
тАО06-24-2004 05:00 AM
тАО06-24-2004 05:00 AM
once again time to show off your brain!
NO ; please... make it a TRUE one liner. Yes it can wrap the line but no ";" at all. Since we all know that allows you to put multiple commands on one line.
Here is mine
cat filename.in |awk -F\: '{ print $1 }' |sed 's/rdsk/s/dsk/g'|sort > filename.out
- Tags:
- sed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2004 05:21 AM
тАО06-24-2004 05:21 AM
Re: once again time to show off your brain!
Kaps
- Tags:
- PS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2004 05:46 AM
тАО06-24-2004 05:46 AM
Re: once again time to show off your brain!
.*dsk.*\)/ \1/'
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2004 05:46 AM
тАО06-24-2004 05:46 AM
Re: once again time to show off your brain!
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2004 05:57 AM
тАО06-24-2004 05:57 AM
Re: once again time to show off your brain!
PROCESS=$(UNIX95= ps -ef -o pid,pcpu,args | sort -nbk 2 | tail -1 | awk '{print $NF}')
Finding the PID & the process name of the process with the highest CPU usage.
- Tags:
- UNIX95
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2004 06:01 AM
тАО06-24-2004 06:01 AM
Re: once again time to show off your brain!
echo \$Z | /usr/sbin/sendmail -bt -d
Identifies and displays stale extents:
vgdisplay -v | awk '/LV Name/ { print $3 }' | xargs lvdisplay -v | grep -i -e "lv name" -e "lv status" -e stale -e '?'
show top memory users and pid:
UNIX95= ps -e -o 'vsz pid ruser args' |sort -nr|head -30
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2004 06:08 AM
тАО06-24-2004 06:08 AM
Re: once again time to show off your brain!
Gives you the process ID of the all the processes using the file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2004 06:14 AM
тАО06-24-2004 06:14 AM
Re: once again time to show off your brain!
Only one point assignment per person, but you can post as often as you want...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2004 06:17 AM
тАО06-24-2004 06:17 AM
Re: once again time to show off your brain!
echo "selclass qualifier cpu;info;wait;infolog"|cstm
memory information
echo "selclass qualifier memory;info;wait;infolog"|cstm
serial number
echo "sel path system\ninfolog\nexit"|cstm|grep "System Serial Number"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2004 06:30 AM
тАО06-24-2004 06:30 AM
Re: once again time to show off your brain!
Lists all of the processes that were started in the last 24 hours, but are still running. I run this every morning, around 1:30.