- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- SYSTEM TOOLS: What scripts have you developed for...
Operating System - Linux
1752250
Members
5408
Online
108785
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО12-15-2006 04:23 PM
тАО12-15-2006 04:23 PM
I'm curious to see what everyone has come up with for monitoring their systems. Give us your best stuff!!! I will be awarding points. Thanks.
Solved! Go to Solution.
- Tags:
- Monitor
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2006 09:17 PM
тАО12-15-2006 09:17 PM
Solution
Hello,
Here is a script that I use daily.
I update it regularly and I think
I got rid of most bugs in
the code :)
So far it helped me during many upgrades and server release-to-production:
http://www.circlingcycle.com.au/Unix-sources/HP-UX-check-OAT.pl.txt
Almost 200 tests are run in the Perl script.
I used it on hardware as large as
SuperDomes down to small workstations.
All you need is at least Perl 5.6.1.
Regards,
VK2COT
Here is a script that I use daily.
I update it regularly and I think
I got rid of most bugs in
the code :)
So far it helped me during many upgrades and server release-to-production:
http://www.circlingcycle.com.au/Unix-sources/HP-UX-check-OAT.pl.txt
Almost 200 tests are run in the Perl script.
I used it on hardware as large as
SuperDomes down to small workstations.
All you need is at least Perl 5.6.1.
Regards,
VK2COT
VK2COT - Dusan Baljevic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2006 01:20 AM
тАО12-16-2006 01:20 AM
Re: SYSTEM TOOLS: What scripts have you developed for system administration?
Hi:
Some years ago, thre threads offered a collection point for favorite scipts of any kind. You might find the threads of use:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=123030
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=178514
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=51050
Regards!
...JRF...
Some years ago, thre threads offered a collection point for favorite scipts of any kind. You might find the threads of use:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=123030
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=178514
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=51050
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2006 04:48 AM
тАО12-16-2006 04:48 AM
Re: SYSTEM TOOLS: What scripts have you developed for system administration?
There's a lot in the links that James gave you...
Here's a little script I use called lpst
# cat /opt/hpnpl/bin/lpst
#!/bin/sh
#
# check printer status
# Geoff Wild
if [ $# -lt 1 -o \( $# -gt 1 -a $# -lt 4 \) ]
then
echo "Usage:"
echo "lpst \"printer\""
echo "Example:"
echo "lpst W052"
exit 1
fi
echo " "
/usr/sbin/ping $1 -n 2
echo " "
lpstat -p$1 -v$1
echo " "
echo "Output Requests"
echo "-----------------------------------------------------------"
lpstat -o$1
echo " "
lpstat -r
echo " "
Output like so:
# lpst W052
PING pcr12169.mydomain.net: 64 byte packets
64 bytes from 192.168.163.184: icmp_seq=0. time=6. ms
64 bytes from 192.168.163.184: icmp_seq=1. time=6. ms
----pcr12169.mydomain.net PING Statistics----
2 packets transmitted, 2 packets received, 0% packet loss
round-trip (ms) min/avg/max = 6/6/6
printer W052 is idle. enabled since Jul 19 11:32
fence priority : 0
device for W052: /dev/null
Output Requests
-----------------------------------------------------------
no entries
Here's a little script to check all your lan cards:
# cat /usr/local/bin/lancards
#!/usr/bin/sh
# script to check speed and settings of lan cards
PATH=/usr/sbin:/usr/bin
ppas=`lanscan | awk '$3~/^[0-9]$/{print $3}' | xargs`
for i in $ppas
do
printf "Card at PPA %s - " $i
ipa=`ifconfig lan${i} 2>/dev/null | awk '{ip=$2}END{if(ip==""){printf("Not assigned")}else{printf("%s ",ip)}}'`
printf "IP Address: %15s- " "$ipa"
lanadmin -x $i 2>/dev/null | awk '{$1="";printf("%s",$0)}'
echo ""
done
Rgds...Geoff
Here's a little script I use called lpst
# cat /opt/hpnpl/bin/lpst
#!/bin/sh
#
# check printer status
# Geoff Wild
if [ $# -lt 1 -o \( $# -gt 1 -a $# -lt 4 \) ]
then
echo "Usage:"
echo "lpst \"printer\""
echo "Example:"
echo "lpst W052"
exit 1
fi
echo " "
/usr/sbin/ping $1 -n 2
echo " "
lpstat -p$1 -v$1
echo " "
echo "Output Requests"
echo "-----------------------------------------------------------"
lpstat -o$1
echo " "
lpstat -r
echo " "
Output like so:
# lpst W052
PING pcr12169.mydomain.net: 64 byte packets
64 bytes from 192.168.163.184: icmp_seq=0. time=6. ms
64 bytes from 192.168.163.184: icmp_seq=1. time=6. ms
----pcr12169.mydomain.net PING Statistics----
2 packets transmitted, 2 packets received, 0% packet loss
round-trip (ms) min/avg/max = 6/6/6
printer W052 is idle. enabled since Jul 19 11:32
fence priority : 0
device for W052: /dev/null
Output Requests
-----------------------------------------------------------
no entries
Here's a little script to check all your lan cards:
# cat /usr/local/bin/lancards
#!/usr/bin/sh
# script to check speed and settings of lan cards
PATH=/usr/sbin:/usr/bin
ppas=`lanscan | awk '$3~/^[0-9]$/{print $3}' | xargs`
for i in $ppas
do
printf "Card at PPA %s - " $i
ipa=`ifconfig lan${i} 2>/dev/null | awk '{ip=$2}END{if(ip==""){printf("Not assigned")}else{printf("%s ",ip)}}'`
printf "IP Address: %15s- " "$ipa"
lanadmin -x $i 2>/dev/null | awk '{$1="";printf("%s",$0)}'
echo ""
done
Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP