Re: Daemon to monitor NIC activity and activate "spare" NIC

From: Corné Beerse (I.Dont_at_want.your.spam)
Date: 12/08/03

  • Next message: Ming: "Can't print from HP DeskJet 812C"
    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


  • Next message: Ming: "Can't print from HP DeskJet 812C"

    Relevant Pages

    • Re: Changing from 1 NIC to 2 NICs
      ... The issue with the two nics on the same subnet is that RRAS ... to correct this - and maintain the wireless connections ... router - which would then be on the external network - the workstations are ... Les Connor [SBS Community Member - SBS MVP] ...
      (microsoft.public.windows.server.sbs)
    • Re: Presario 2100 Motherboard Testing
      ... without shattered monitor, without DVD drive, etc. with no effect. ... instead such as an external VGA monitor, USB keyboard and mouse? ... The motherboard appears to be in good shape - no visible ... hundreds of traces or broken solder connections. ...
      (comp.sys.laptops)
    • Re: Problem configuring NAT to share Internet Connection
      ... posting the result of routing tables of both server and client ay help, For more and other information, go to http://howtonetworking.com. ... finally I have 3 network connections, 2 corresponding with NIC A and NIC B ... corresponds to the NICs A and B and other, named Internal, I ...
      (microsoft.public.win2000.ras_routing)
    • Re: Networking Port Drops Wired/wireless -realtek responsible?
      ... > connections and them my ethernet connections. ... I seem to have fixed the wireless problem ... > network connections. ... >> I've replaced a TON of bad nics over the years. ...
      (microsoft.public.windowsxp.network_web)
    • Re:Problem configuring NAT to share Internet Connection
      ... I spent too much time trying to configure NAT in Windows Server 2003 to let ... other LAN PC's to connect to Internet through the server without success. ... finally I have 3 network connections, 2 corresponding with NIC A and NIC B ... corresponds to the NICs A and B and other, named Internal, I ...
      (microsoft.public.win2000.ras_routing)