need to check on some hosts and send an email if there status changes
I wanna put together a script in bash that will allow me to check the up/down state of a single host via ping
i want it to run in a continuous loop so I can just fire the script and forget about it(dont want cron to drive... (2 Replies)
This is the code:
while test 1 -eq 1
do
read a
$a
if test $a = stop
then
break
fi
done
I read a command on every loop an execute it.
I check if the string equals the word stop to end the loop,but it say that I gave too many arguments to test.
For example echo hello.
Now the... (1 Reply)
Hi everyone,
I'm a newby in the python languages, and I try to make some parallels to shell.
My question is how ca I give the information to python that the line 3 "r=...." the string "line" is a variable.
import os, re
line = "localhost"
r = "".join(os.popen("ping line -c... (2 Replies)
Hi,
I develop simple animation ping script on Solaris Platform. It is like Cisco ping.
Examples and source code are below.
bash-3.00$ gokcell 152.155.180.8 30
Sending 30 Ping Packets to 152.155.180.8
!!!!!!!!!!!!!.!!!!!!!!!!!!!!!.
% 93.33 success... % 6.66 packet loss...... (1 Reply)
Hello,
RHEL5.5
PYTHON=2.4.3
I have 2 python variables using the datetime module.
Here is how I call them:
print "Current Time: %s" % now
print "LastDownloadTime: %s" % LastDownloadTime
Here is an example of an issue.
Current Time: 2012-01-05 14:06:09.749240... (2 Replies)
Hi
I am using perl to ping a list of nodes - with script below :
$p = Net::Ping->new("icmp");
if ($p->ping($host,1)){
print "$host is alive.\n";
}
else {
print "$host is unreacheable.\n";
}
$p->close();... (4 Replies)
help with bash script!
im am working on this script to make sure my server will stay online, so i made this script..
HOSTS="192.168.138.155"
COUNT=4
pingtest(){
for myhost in "$@"
do
ping -c "$COUNT" "$myhost" &&return 1
done
return 0
}
if pingtest $HOSTS
#100% failed... (4 Replies)
Hi all...
As you know I like making code backwards compatible for as many platforms as possible.
This Python script was in fact dedicated for the AMIGA A1200 using Pythons 1.4.0, 1.5.2, 1.6.0, 2.0.1, and 2.4.6 as that is all we have for varying levels of upgrades from a HDD and 4MB FastRam... (1 Reply)
Discussion started by: wisecracker
1 Replies
LEARN ABOUT FREEBSD
kdigest
KDIGEST(8) BSD System Manager's Manual KDIGEST(8)NAME
kdigest -- userland tool to access digest interface in the KDC
SYNOPSIS
kdigest [--ccache=string] [--version] [--help] command [arguments]
DESCRIPTION
Supported options:
--ccache=string
credential cache
--version
print version
--help
Available commands are:
digest-probe [--realm=string] [-h | --help]
--realm=string
Kerberos realm to communicate with
digest-server-init [--type=string] [--kerberos-realm=realm] [--digest=digest-type] [--cb-type=type] [--cb-value=value] [--hostname=hostname]
[--realm=string]
--type=string
digest type
--kerberos-realm=realm
--digest=digest-type
digest type to use in the algorithm
--cb-type=type
type of channel bindings
--cb-value=value
value of channel bindings
--hostname=hostname
hostname of the server
--realm=string
Kerberos realm to communicate with
digest-server-request [--type=string] [--kerberos-realm=realm] [--username=name] [--server-nonce=nonce] [--server-identifier=nonce]
[--client-nonce=nonce] [--client-response=response] [--opaque=string] [--authentication-name=name] [--realm=realm] [--method=method]
[--uri=uri] [--nounce-count=count] [--qop=qop] [--ccache=ccache]
--type=string
digest type
--kerberos-realm=realm
--username=name
digest type
--server-nonce=nonce
--server-identifier=nonce
--client-nonce=nonce
--client-response=response
--opaque=string
--authentication-name=name
--realm=realm
--method=method
--uri=uri
--nounce-count=count
--qop=qop
--ccache=ccache
Where the the credential cache is created when the KDC returns tickets
digest-client-request [--type=string] [--username=name] [--password=password] [--server-nonce=nonce] [--server-identifier=nonce]
[--client-nonce=nonce] [--opaque=string] [--realm=realm] [--method=method] [--uri=uri] [--nounce-count=count] [--qop=qop]
--type=string
digest type
--username=name
digest type
--password=password
--server-nonce=nonce
--server-identifier=nonce
--client-nonce=nonce
--opaque=string
--realm=realm
--method=method
--uri=uri
--nounce-count=count
--qop=qop
ntlm-server-init [--version=integer] [--kerberos-realm=string]
--version=integer
ntlm version
--kerberos-realm=string
Kerberos realm to communicate with
HEIMDAL September 25, 2008 HEIMDAL