- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: favorite sysadmin scripts you always keep arou...
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
тАО04-30-2003 06:24 AM
тАО04-30-2003 06:24 AM
favorite sysadmin scripts you always keep around (2)
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x836cc1c4ceddd61190050090279cd0f9,00.html
favourite sysadmin scripts you always keep around (1)
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x026250011d20d6118ff40090279cd0f9,00.html
PLEASE attach scripts as a txt file to facilitate cut and paste.
TOP POINTS for tried tested and improved and corrected scripts! (ie use at your own risk!)
Later,
Bill
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2003 07:04 AM
тАО04-30-2003 07:04 AM
Solutionhttp://h40045.www4.hp.com/data/ccmon-service-brief.pdf
There is a small cost - usually just 1 or 2 "technical service days" from your support contract.
Note: This doesn't have to be just for MC/SG - any application where you need to monitor similiar configurations across multiple machines will work as well (IE SAP App Servers).
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2003 06:22 PM
тАО04-30-2003 06:22 PM
Re: favorite sysadmin scripts you always keep around (3)
Steven
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2003 11:00 PM
тАО04-30-2003 11:00 PM
Re: favorite sysadmin scripts you always keep around (3)
((teaser below))
1. AcceptMutex
2. Use 2.0 and threading (worker MPM)
3. SSL session cache
4. KeepAliveTimeout
5. Using mod_status
And the link is this -
http://builder.com.com/article.jhtml?id=u00320020423ere01.htm&page=1&vf=fb
HTH.
- ramd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2003 12:35 AM
тАО05-01-2003 12:35 AM
Re: favorite sysadmin scripts you always keep around (3)
Script to loop every second showing how many bytes are coming in to your default lancard. Easily changed to show outbound also. Very handy to see how much traffic is going in and out.
#!/bin/ksh
function lanad
{
lanadmin<
lan
display
quit
EOF
cat /tmp/t|grep Inbound|grep Oct|awk '{print $4}'
}
echo "Inbound Bytes per second on default lan interface"
let z=0
while true
do
sleep 1
let x=$(lanad)
let t=$x-$z
echo $t
let z=$x
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2003 07:02 AM
тАО05-01-2003 07:02 AM
Re: favorite sysadmin scripts you always keep around (3)
Cleanup your ps|grep search.
Usage: seek something
alias seek='ps -ef|grep -v grep|grep -v "ps -ef"|grep -i '
Add the server name and current directory your in
to the top of an xterm or dtterm window. NOTE: Changes
the "cd" command.
####################################
# Set window and icon titles
####################################
# put text on the X-window title bar
setTitle()
{
hn="$1"
if [ "$TERM" = "hp" -o "$TERM" = "hpterm" ]
then
echo "^[&f0k${#hn}D$hn^M\c"
elif [ "$TERM" = "xterm" -o "$TERM" = "vt100" ]
then
echo "\033]2;$hn\007\c"
elif [ "$TERM" = "dtterm" -o "$TERM" = "vt220" ]
then
echo "\033]2;$hn\007\c"
fi
}
typeset -fx setTitle
# Lets set an alias
_cd()
{
'cd' ${1:-$HOME} ${2:-}
setTitle "`hostname`:`pwd`" 1>&2
}
alias -x cd="_cd"
_cd .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2003 12:31 PM
тАО05-01-2003 12:31 PM
Re: favorite sysadmin scripts you always keep around (3)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2003 12:51 PM
тАО05-01-2003 12:51 PM
Re: favorite sysadmin scripts you always keep around (3)
File system is >= 90% - email root.
File system is > 95% - page somebody.
It will work when lvol names are large and running bdf drops the "kbytes used" etc data to the next line.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2003 05:20 AM
тАО05-12-2003 05:20 AM
Re: favorite sysadmin scripts you always keep around (3)
bigfile -> To find large files in a filesystem
For eg, bigfile /var 10\*1024\*1024
will list all files of size greater than 10MB
Regards,
Sajith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2003 05:21 AM
тАО05-12-2003 05:21 AM
Re: favorite sysadmin scripts you always keep around (3)
for eg., bigdir /var 100\*1024\*1024
will list all folders larger than 100MB in /var
Regards,
Sajith