Re: Daemon to monitor NIC activity and activate "spare" NIC
From: Corné Beerse (I.Dont_at_want.your.spam)
Date: 12/08/03
- Previous message: Corné Beerse: "Re: porting problems"
- In reply to: championsleeper: "Daemon to monitor NIC activity and activate "spare" NIC"
- Next in thread: championsleeper: "Re: Daemon to monitor NIC activity and activate "spare" NIC"
- Reply: championsleeper: "Re: Daemon to monitor NIC activity and activate "spare" NIC"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 08 Dec 2003 16:40:04 +0100
championsleeper wrote:
> Hi,
>
> I'm trying to write a daemon for a HP-UX 11i system to do the
> following:
>
> * Monitor a particular NIC for activity,
test the port every 5 minutes for example, can be done from cron. For example
just to ping the router or such.
> * If the NIC fails, try to reactivate,
the ping should do such a thing. Otherwise, ifconfig (or such) is your command.
> * If the NIC cannot be activated, activate a spare NIC.
That's something different. Be noted, at this point the connections are already
lost or at best sleeping.
Then, if the connection is not lost due to problems at your end, the other port
will most likely also fail.
>
> I know that this functionality can be obtained by purchasing hp
> autoport aggregation but we've decided to go down this route. I've
That might provide a way to keep connections alive...
Proper (creative) routing settings can automate this (up to a point). Then, this
can also provide load (bandwidth) sharing as long as they both are available.
Channel bundling (as I know it from isdn, for IP it can have an other name)
might also be an idea.
> found a good document on how to write a daemon at:
>
> http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,923,00.html
>
> I'm also trying to understand a utility available for linux (ethtool)
> for some inspiration.
>
> http://freshmeat.net/projects/ethtool/?topic_id=146%2C150
try http://hpux.its.tudelft.nl/ or one of the other mirrors for HP binaries...
>
> What I'd like is some hints on what C-libraries (POSIX or HP-specific)
> I should be looking at which can:
>
> *return status values for NICs and
> *alter NICs - startup/stop/change values.
>
> Any help appreciated. I'll put a detailed report together when I get
> it working.
Are you sure you want to write something yourself? I think only HP is capable
of doing the most acurate monitoring, since they have the real documentation.
You might not even have access to the calls to the device drivers to do it.
My 2 cents, not my employers...
CBee
- Previous message: Corné Beerse: "Re: porting problems"
- In reply to: championsleeper: "Daemon to monitor NIC activity and activate "spare" NIC"
- Next in thread: championsleeper: "Re: Daemon to monitor NIC activity and activate "spare" NIC"
- Reply: championsleeper: "Re: Daemon to monitor NIC activity and activate "spare" NIC"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|