Ad Widget

Collapse

Network monitor AIX 5.3

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • luquee
    Junior Member
    • Apr 2008
    • 13

    #1

    Network monitor AIX 5.3

    Hi i like to create a item to monitoring the Kilobytes IN and OUT in a agent AIX 5.3 whit key
    system.run

    I like to use these command netstat -v these is the result

    Transmit Statistics: Receive Statistics:
    -------------------- -------------------
    Packets: 683113 Packets: 2034057
    Bytes: 2559976 Bytes: 890201743
    Interrupts: 1165 Interrupts: 1802362
    Transmit Errors: 0 Receive Errors: 0
    Packets Dropped: 0 Packets Dropped: 0

    Im taked the result whit these command
    netstat -v en0 | grep ^Bytes | awk '{ print $ 2 }'

    I Capure a number 2559976 correct but my question is how a can tho see these results in MB and if these a correct value for I need
    i like see the result same the linux item
    Thanks
  • bartek
    Junior Member
    • Sep 2008
    • 2

    #2
    Hi man,

    As I think if You want to see data in MB You have to divide two times by 1024.
    First is kB and second MB.

    How to do it:

    netstat -v en0 | grep ^Bytes | awk '{ print $ 2 }'|xargs -I{} echo "{} / 1024 / 1024" |bc

    but, please check it I am not sure.

    I am using entstat command to monitor AIX ethernet bandwidth.


    Regards,
    B.

    Comment

    Working...