RE: Resetting IFCONFIG Info

From: Sites, Brad (BSites_at_mem-ins.com)
Date: 07/23/03

  • Next message: Paul Brandariz x6546: "Re: mozilla filters"
    To: "'redhat-list@redhat.com'" <redhat-list@redhat.com>
    Date: Wed, 23 Jul 2003 10:11:19 -0500
    
    

    Joe Giles wrote:
    > Hmmmm.. Well, if I can isolate the kernel module for ONE card, that
    > would be great, but I don't think it works that way. Oh well, I guess
    > I'll have to cause a stir. Especially if they want a smooth running
    > server :-D
    >
    > Thanks for all the replies. I actually learned a few things I never
    > new.
    >
    > Thanks again :)
    > --
    > Joe Giles

    Take a look in the /proc filesystem. Specifically in the /proc/net
    directory. There are several files which contain the status information of
    your network devices, including the numbers you are looking at through the
    ifconfig command. /proc/net/dev holds the Transmit and Receive numbers for
    all interfaces. If you want to go even further, go into the
    /proc/net/nicinfo directory and take a look at the ethX.info file for your
    interfaces. Here you will see all the current settings and numbers for your
    network card(s).

    Now, I haven't tried this, so there is no guarantee that this will work or
    that it will work without causing your server to have a problem, but you
    could always try resetting the numbers in that /proc/net/nicinfo/ethX.info
    file for the interface you are wanting to reset. This _should_ allow you to
    set all the RX and TX numbers and error counters back to zero without
    interrupting the actual interface. So, hopefully no network interruption.

    Again, I have not done this and don't have the time right now to test it out
    on one of my servers, but it might just be the thing you are looking for.
    You will probably have echo the entire file into /proc/net/nicinfo/ethX.info
    with the numbers set to zero, but that should be pretty easy to do. Just
    cut and paste the contents of the original file into a temporary file, make
    your changes, then echo that file into /proc/... Plus, if you keep this
    temporary file that has the numbers set to zero, then you could echo that to
    /proc anytime you wanted to reset the counters on that interface.

    Hope that gives you something to look at that might work for you. If I get
    some time today, I might just try this for myself. Always love a challenge!
    :)

       .~. Brad Sites
       /V\ Systems Administrator
      // \\ Missouri Employers Mutual Insurance
     /( )\ bsites@mem-ins.com www.mem-ins.com
      ^^-^^ (573) 499-4230

    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Paul Brandariz x6546: "Re: mozilla filters"

    Relevant Pages

    • Wireless CETK tests wzctooltest.dll
      ... SDIO card. ... ECHO:WARNING this test needs XWIFI11B1 [has PEGASSDN1] ... ECHO: Default Gateway ... ... ECHO: Interface Number .. ...
      (microsoft.public.windowsce.platbuilder)
    • Cant connect to firewall
      ... # IPCHAINS FIREWALL script for the Linux 2.2 kernel. ... # The default value below is for a 192.168.0.0 network. ... The internal interface will likely have ... echo " Enabling IP forwarding..." ...
      (Debian-User)
    • Re: VHDL subprocedure call
      ... of the computation is ALWAYS ZERO. ... In simulation or synthesis? ... interface to the logic you ...
      (comp.lang.vhdl)
    • Re: about iterative loop to write numbers into file
      ... @ECHO OFF ... I would say first you design an interface ... the script engine that supports inheritance ... Should be a 100% backward compatible to WSH; ...
      (microsoft.public.scripting.vbscript)
    • Re: Set Full Duplex on AIX
      ... Actually I have written the following script that interactively ... displays all options available per interface and changes them without ... echo "\nWARNING: THIS OPERATION WILL CUTT OFF ANY APPLETALK/NFS/TCPIP ... $CHENT ...
      (comp.unix.aix)