I want to monitor a netstat command as follows:
# netstat -Aan|grep 4800|grep LISTEN
f1000e0017a12bb8 tcp4 0 0 *.4800 *.* LISTEN
So I want the script to run this and if there is a return of "LISTEN" do nothing..
If it returns nothing email alert to...
I need a ksh script that will find the newest file in a directory:
root@phxsa2 in /usr2/HHM/pub/SMM/transfer/request
# ls -t | head -n1|cat
izdata_656701_20140702_64897.rejected.dat
root@phxsa2 in /usr2/HHM/pub/SMM/transfer/request
Then email that file to a specified user:
mail -s " BYIM...
I have a script that authenicates everyone to DB app except for root goes to shell as shown below:
# Added for LikeWise
#######START#######
uid=`id -u`
if [[ $uid != 0 ]];then
> .sh_history
exec csession ENSEMBLE -U HHM "^ZU"
exit
fi
########STOP#######
I need to add more UID's to it now but...
rm /tmp/auth.txt.rpt /tmp/auth.txt
DATE=$(date) # Set DATE equal to the output of running the shell command date
HOSTNAME=$(hostname) # Set HOSTNAME equal to the output of the hostname command
echo "" > /tmp/auth.txt.rpt
echo "" >> /tmp/auth.txt.rpt
echo...
I have a port monitoring script that monitors a port and alerts when it is down. I would like to send a string to a file to build a histogram.
Now I have:
netstat -Aan|grep 4446 1>/dev/null
RC=$?
echo RCb $RC
if [[ ${RC} -eq 1 ]]
then
# echo "Mailing"
mail -s "MIDAS Broker 4446 is...
I need some assistance writing a script to monitor a RPC broker and notify if it is down.
I have a broker that runs on port 9250. When it is up it looks like the following:
# netstat -Aan|grep 9250
f1000e00025863b8 tcp4 0 0 172.16.2.1.9250 172.16.80.40.1185 ESTABLISHED...
I have Active Directory authentication running on my system but I need to setup so that if root logs in you get prompt but if other users via AD login it executes a script in /etc/profile:
> .sh_history
exec csession cache -U HHM "^ZU"
exit
This way all users can run the application and then...
I used to write "endpoint monitoring scripts" for Tivoli Enterprise Console to monitor processes and how long they have been running.
Does anybody know of some way to do the same in Openview (OVO)
I have many servers with hundreds of mounts exported off other servers but one has a strange problem:
1. All the servers start with 90+ mounts to other server exports
2. When I mount 100 more filesystems there is no problem
3. When I mount 150 instead of 100 more filesystems I get an...
We are formatting a jfs2log and are getting the following error:
mklv -y' jfsloga' -t' jfs2log' datavg2 1 hdiskpower17
logform -V jfs2 /dev/jfsloga
stldb2a:root:(/)>chfs -a log=jfsloga /db2_fs23b
chfs: jfsloga is not a jfs2 log type
ANY HELP WOULD BE APPRECIATED
I have two AIX 5.3 systems, one 5300-04 and one 5300-05. On one the man pages work fine. On the second when I type man ls it pauses for a while and then returns to the prompt.
I have checked files in:
/usr/bin/man
/usr/share/man/*
/usr/local/man/*
Seem to be the same and nroff works on both...
On:
p595c-e25:root:(/tmp)> oslevel -r
5300-04
I have loaded:
p595c-e25:root:(/tmp)> lslpp -L all|grep xlf
xlfcmp 7.1.1.5 C F XL Fortran Compiler
xlfcmp.html.en_US 7.1.1.0 C F XL Fortran Compiler
xlfcmp.idebug.html.en_US 7.1.1.0 C...
We are migrating some servers from AIX 4.3 to AIX 5.3. We had NCSA on the old server and loaded apache 1.3 on the new server.
When we start the server on the new system some of the cgi-bin files (xxxx.cgi) work fine but some don't all the symlinks (files) do not seem to work. We have set the...
I have a STK 9730 (30 slot) with a single DLT7000. I am using Networker 7.2 and the library robot seems to work fine. As soon as a call is made to mount the drive the robot grabs the tape, pulls out of slot and the library fails while trying to traverse across to load the drive. All diags work...
I have Legato Networker(WIndows) and Quantum ATL L500. I am trying to set up the library but I do not know which element numbers attach to whis SCSI addresses for the 3 DLT7000 drives. I have ran jbconfig 3 times and the robot works fine but I think it is putting the tape in the wrong drive...
I am trying to do the following:
I have a Debian Linux server and a remote terminal concentrator. I need to setup rtelnet to dial out on ttyS4 on server, that tty will then open a socket to the IP and port assignment on the TC. If you telnet to the TC IP and port UUCP should be able to run AT...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.