06-12-2007
Here is an interesting idea...
Does anyone know how to test if an ethernet interface is alive, or accepting connections? Here is the scenario - I have rsc and sc console interfaces on some Suns. There are some sporadic vulnerability scans that send them out to lunch when they run the scans. I have to login to the host and reset the console cards with the software installed on the host, but if the host gets honked up it is the wrong time to find out if my console connection isn't working.
So, I've been thinking about a script that could just check to make sure all of my consoles are alive and if not, I can reset them before something happens. Like maybe
for $IP
do
$some_way_to_check_consoles
done
This would be cool to see, either sh, csh, ksh, whatever!
D
5 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Keeping in mind that I'm relatively comfortable with programming in general but very new to unix and korn/bourne shell scripts..
I'm using awk on a CSV file, and then performing calculations and operations on specific fields within specific records. The CSV file I'm working with has about 600... (2 Replies)
Discussion started by: yongho
2 Replies
2. What is on Your Mind?
I am not a native English speaker. I wanna improve my English. But I am kind of lazy, so I decide to pratice my English by reading English novel. I'd like read books about magic or superman and so on. How can I get that kind of books from Internet? I'll really appreciate it!! (4 Replies)
Discussion started by: virmin
4 Replies
3. UNIX for Dummies Questions & Answers
first off, i LOVE unix to death, but i really only like the text/console side of it. im not big into the XFree86/Xwindows side of things.. so with that known... im in search of really old *nix's.. like way outdated, floppy OS's from way back in the day. im kinda in search of the pure'r UNIX's.... (0 Replies)
Discussion started by: 01000101
0 Replies
4. Shell Programming and Scripting
Hello,
So I'm utilizing the bash brace expansion feature to checkout multiple folders from cvs with ease, while excluding certain subfolders within. So I do a command like this:
cvs co trunk/{mod_a,mod_b,mod_c} \!trunk/{mod_a,mod_b,mod_c}/web
to checkout modules trunk/mod_a , trunk/mod_b ,... (1 Reply)
Discussion started by: neked
1 Replies
5. Shell Programming and Scripting
Hi,
I am new in this forum and I am glad to be a part of it. I have a problem that has two parts:
1/ extract just the timestamp from a filename: for example, I have a file called 'sales20080226144525.txt' and I want to extract just the '20080226144525' part out of it.
2/ Now, take that... (5 Replies)
Discussion started by: ChicagoBlues
5 Replies
LEARN ABOUT DEBIAN
setether
SETETHER(8) System Manager's Manual SETETHER(8)
NAME
setether - Set the ethernet address for use with DECnet
SYNOPSIS
setether <if> [<if>...]|all [options]
DESCRIPTION
Set ethernet MAC address on ethernet adaptors
This script should be run at system startup. It will change the ethernet hardware (MAC) address of any or all ethernet interfaces to match
the DECnet node address. DECnet requires that the MAC address of all ethernet adaptors running the protocol be set approriately. If you do
not run setether then you must change the ethernet address in some other way for DECnet to work.
By default no ethernet interfaces will have their MAC addresses changed by setether, if you specify all then all interfaces name eth* will
be changed, otherwise a list of interface names can be specified. setether will enable (UP) all interfaces it changes the MAC addresses
of.
(2.4 only) The first interface specified on the command-line will also be made the default interface for DECnet operations (ie attempts to
contact nodes not in the neighbour table will be done over this interface).
This script must be run with the interface inactive, it is normally run from /etc/init.d/decnet before TCP/IP starts up.
EXAMPLES
set the MAC address of eth0.
# /sbin/setether eth0
set the MAC address of all ethernet interfaces
# /sbin/setether all
HELPFUL HINTS
If you have multiple ethernet cards on your system and they are connected to the the same network you should specify which one you want to
use for DECnet communication on the setether command line, otherwise they will both be given the same MAC address and this is probably not
what you want.
Running DECnet on multiple ethernet interfaces only works under Linux 2.4. If you are running Linux 2.2 then the interface name on the
setether command line must match the one in /etc/decnet.conf(5).
SEE ALSO
decnet.conf(5), dntype(1), dndir(1), dndel(1), dnetd(8), dnping(1)
DECnet utilities March 01 2001 SETETHER(8)