Find the answer to your Linux question:
Results 1 to 10 of 10
Hi, I have to write scripts in linux server to get the network traffic and network failure and log them in a file. Can anyone give me some help how ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2009
    Posts
    85

    Red face How to know the network traffic in a linux server


    Hi, I have to write scripts in linux server to get the network traffic and network failure and log them in a file. Can anyone give me some help how to do this..

    Thanks in advance

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Quote Originally Posted by maheshgupta024 View Post
    Hi, I have to write scripts in linux server to get the network traffic and network failure and log them in a file.
    Hello, maheshgupta024

    Perhaps I'm wrong, but wouldn't it be easier to use something that's already been written rather than recreate it from scratch?
    oz

  3. #3
    Just Joined!
    Join Date
    Dec 2006
    Posts
    8
    Quote Originally Posted by ozar View Post
    Hello, maheshgupta024

    Perhaps I'm wrong, but wouldn't it be easier to use something that's already been written rather than recreate it from scratch?
    What would that be Ozar?

    Please share with us since I'd like to know as well.

    Thanks,

  4. #4
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,672
    THIS might be a starting place.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  5. #5
    Linux Newbie
    Join Date
    Dec 2010
    Posts
    146
    netstat --statistics maybe...

  6. #6
    Just Joined!
    Join Date
    Oct 2009
    Posts
    85
    Thnx for the help, if Im using a linux server on what parameter generally we decide the network traffic is it the number of packets recieved and transmitted or is there any other..

  7. #7
    Linux Newbie
    Join Date
    Dec 2010
    Posts
    146
    I think it's the rate that matters. If you're on X, you can try system monitor or ksysguard... however these are heavy graphical packages.

    The netstats command (I believe) is good enough for the purpose, just consult it's man page. It also has a live mode where the stats update automatically.

    Unfortunately the man page mostly goes over my head So I dont know.

  8. #8
    Just Joined!
    Join Date
    Dec 2006
    Posts
    8
    I think you're better off using mrtg (Multi Router Traffic Grapher). You can collect all you need or want to and then generate graphs. The mgmt. will feel warm and fuzzy with visual statistic diagrams.

    Good luck.

  9. #9
    Linux Newbie user-f11's Avatar
    Join Date
    Feb 2011
    Location
    Sofia, BG
    Posts
    185
    Quote Originally Posted by xmdms View Post
    What would that be Ozar?

    Please share with us since I'd like to know as well.

    Thanks,
    Hi,
    Open from the Desktop Menu
    System -> Administration -> Add/Remove Software
    In the search box write: netstat
    and read about the packages in the label box of the Package Manager.

    For further reading write in Google: <package name> wiki
    For example: gnome-netstatus wiki

    Regards

  10. #10
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Lots of different tools, some of which might suit your needs, can be found here:

    Monitoring | Linux App Finder

    Network Monitoring Tools

    Note that some of the tools within the second link are not for Linux.
    oz

Posting Permissions

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