[WBEL-users] Enterprise Managment Suggestions
Vincent.Raffensberger@dtn.com
Vincent.Raffensberger@dtn.com
Thu, 11 Nov 2004 14:09:52 -0600
A good starting point is to setup ssh key authentication everywhere and
write a script like this:
Note: what you see here is pieces of a larger, more complex script but the
general idea is intact.
This has a ton of uses. Name it "SSH" and use it to run a command on all
of your systems, like 'SSH /sbin/chkconfig --list xinetd'.
The "more complex" part that I pulled out is mainly cases and arguments to
target groups of systems.
#!/bin/bash
#SSH
SYSTEM_LIST=/data/scripts/PRE_config/allsystems
SYSTEMS=`cat $SYSTEM_LIST | grep -v ^#`
case $# in
*)
case $1 in
"-q" )
QUIET=1
CMD=`echo $@ | cut -d\ -f 2-`
;;
*)
CMD=$@
;;
esac
;;
esac
function is_host_up {
if [ $# -lt 1 ]; then
echo "Specify a host or ip as an argument."
else
echo $1 | fping -t 250 -r 1 -a 2>/dev/null
fi
}
for system in $SYSTEMS; do
if [ ! "$QUIET" ]; then
echo "###############################################"
echo $system; echo "*****"
fi
if [ `is_host_up $system` ]; then
ssh $system "$CMD";
else
echo "Skipping $system - unavailable"
fi
if [ ! "$QUIET" ]; then echo "*****"; fi
done
#EOF
"Tony" <Tony@instaview.com>
Sent by: whitebox-users-admin@beau.org
11/11/2004 08:41 AM
Please respond to
<Tony@instaview.com>
To
<whitebox-users@beau.org>
cc
Subject
[WBEL-users] Enterprise Managment Suggestions
Sorry if this is a tad OT, but does anyone have suggestions for
'enterprise
management' tools?
Having to manage a whole department of machines separately is a drag. What
is needed is
something like Microsoft's' GPO/Active Directory..
Short of writing a whole bunch of scripts ( and perhaps a GUI for our
'admins' ) on my own,
what all have you people dealt with that can do the same sort of job? And
preferably GPL or
BSD licensed..
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.0.4e (MingW32)
Comment: For info see http://www.gnupg.org
mQGiBEEdSLkRBADed+FY4v2Ptj+aUK36vyZdBtl2VBdc4D2IPxLCdWlmyNGu6/B0
F5DbE/eqUCRW2kksdIvggxzE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mnqaOtAT+aTb3YE1Io=
=IVpH
-----END PGP PUBLIC KEY BLOCK-----
_______________________________________________
Whitebox-users mailing list
Whitebox-users@beau.org
http://beau.org/mailman/listinfo/whitebox-users