how can I tell if a link is up on a NIC?

Ask a Question related to Linux / Unix Administration, Design and Development.

  1. #1

    Default Re: how can I tell if a link is up on a NIC?

    Thank you Bit and Jerry for your answers! :> I tried the mii-tool and it
    seems to be pretty cool. Thanks again.



    "Bit Twister" <BitTwister@localhost.localdomain> wrote in message
    news:slrnc6m47o.69v.BitTwister@wb.home.invalid...
    > On Wed, 31 Mar 2004 13:22:35 -0500, Flip wrote:
    > > How can I tell through a script/command if a link is up on a specific
    NIC on
    > > a firewall/router linux box?
    >
    > for me it's
    > ping -c 1 -w 2 nic's_gateway_ip_addy_here
    > if [ $? -ne 0 ] ; then
    > fault_logic_here
    > fi

    Flip Guest

  2. Similar Questions and Discussions

    1. what is the "utility link" and "global link" supposed tobe for?
      I'm using a halo template to create a personal website for myself, and at the top of the page, there's options for "utility link" and "global link"...
    2. Showing the email link from a database link
      Hi Does anyone know how to have an email link show when showing the databse info in a repeating table. Here is the link...
    3. preserve the link to a single Excel cell when updating link
      I want to import a single cell from an Excel spreadsheet into InDesign CS. Initially, I am placing a single cell into a text frame and get the...
    4. how do i link an object in Flash to an HTML link?
      hi ppl, i want to make a link on an HTML page to an object (layer) in a flash window - this should be possible for multiple layers using...
    5. please check this link - and the link is............
      And the link is http://www.cre8x.co.uk/cranfieldpool/ "Tony Currie" <tony@coreinnovation.com> wrote in message...
  3. #2

    Default Re: how can I tell if a link is up on a NIC?

    Flip wrote:
    > Thank you Bit and Jerry for your answers! :> I tried the mii-tool and it
    > seems to be pretty cool. Thanks again.
    >
    >
    >
    > "Bit Twister" <BitTwister@localhost.localdomain> wrote in message
    > news:slrnc6m47o.69v.BitTwister@wb.home.invalid...
    >
    >>On Wed, 31 Mar 2004 13:22:35 -0500, Flip wrote:
    >>
    >>>How can I tell through a script/command if a link is up on a specific
    >
    > NIC on
    >
    >>>a firewall/router linux box?
    >>
    >>for me it's
    >> ping -c 1 -w 2 nic's_gateway_ip_addy_here
    >> if [ $? -ne 0 ] ; then
    >> fault_logic_here
    >> fi
    >
    >
    >
    For future reference, you might look at entstat as well, you can query a
    ton of stuff, and it is built in...

    Timothy J. Bogart Guest

  4. #3

    Default Re: how can I tell if a link is up on a NIC?

    Timothy J. Bogart wrote:
    > Flip wrote:
    >
    >> Thank you Bit and Jerry for your answers! :> I tried the mii-tool and it
    >> seems to be pretty cool. Thanks again.
    >>
    >>
    >>
    >> "Bit Twister" <BitTwister@localhost.localdomain> wrote in message
    >> news:slrnc6m47o.69v.BitTwister@wb.home.invalid...
    >>
    >>> On Wed, 31 Mar 2004 13:22:35 -0500, Flip wrote:
    >>>
    >>>> How can I tell through a script/command if a link is up on a specific
    >>
    >>
    >> NIC on
    >>
    >>>> a firewall/router linux box?
    >>>
    >>>
    >>> for me it's
    >>> ping -c 1 -w 2 nic's_gateway_ip_addy_here
    >>> if [ $? -ne 0 ] ; then
    >>> fault_logic_here
    >>> fi
    >>
    >>
    >>
    >>
    > For future reference, you might look at entstat as well, you can query a
    > ton of stuff, and it is built in...
    >
    Ooops, thought I was in comp.unix.aix - please disregard the blather.

    Timothy J. Bogart Guest

  5. #4

    Default Re: how can I tell if a link is up on a NIC?

    > Ooops, thought I was in comp.unix.aix - please disregard the blather.
    haha, I tried that entstat on my RH9 box and it wasn't there, so I thought I
    was doing something wrong. Thanks for the heads up. :>


    Flip Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139