System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

favorite sysadmin scripts you always keep around (3)

 
SOLVED
Go to solution
Hakki Aydin Ucar
Honored Contributor

Re: favorite sysadmin scripts you always keep around (3)

This is a script to rename for group files as given *partial* file names and given server-name.
Jan Zalman
Advisor

Re: favorite sysadmin scripts you always keep around (3)

How to find out the umask for all running processes. Quite slow, it uses q4 debugger ;-), but works.
Time and loyalty cannot be bought.
Highlighted
Hakki Aydin Ucar
Honored Contributor

Re: favorite sysadmin scripts you always keep around (3)

This is from HP UX 11.31 resources first creates a directory lvmbackup; datafills from current LVM configuration and then checks if there is any change in LV config when executed. . .Useful.
Hakki Aydin Ucar
Honored Contributor

Re: favorite sysadmin scripts you always keep around (3)

This is from HP UX 11.31 resources modifed for HP UX 11.11
First creates a directory lvmbackup; datafills from current LVM configuration and then checks if there is any change in LV config when executed.
Steve Post
Trusted Contributor

Re: favorite sysadmin scripts you always keep around (3)

Run dircmp but do NOT recurse through subdirectories.
Tell us if files are in directory 1 but not in directory 2
Tell us if files are in directory 2 but not in directory 3
Tell us if a file is in both directories but have different contents
If -d is added, give us a diff command on these files.
Cesare Salvioni
Trusted Contributor

Re: favorite sysadmin scripts you always keep around (3)

Hi all,

one more script to choose and kill FIN_WAIT_
network connections.

The script use ndd -get /dev/tcp tcp_status to get a list of FIN_WAIT* connections and ndd -set /dev/tcp tcp_discon_by_addr to disconnect selected connections.

The usage of script is shown with kill_finwait.sh -? and is the following:

usage: ./kill_finwait.sh [-a] [-p ] [-i ] [-k]
-a select all FIN_WAIT connections
-i select only connections from given ip
-p select only connections on given port
-k kill selected connections
default is to select no connections and do not kill

hope it will be usefull
bye
Bill McNAMARA_1
Honored Contributor

Re: favorite sysadmin scripts you always keep around (3)

see above!
ps if someone wants to start then next thread, please go ahead!

I don't log in so frequently to assign all the points I'd like!
It works for me (tm)