Find the answer to your Linux question:
Results 1 to 3 of 3
Can one detect when the address of a network interface has changed programmatically? Can one detect when the network interface went down? Furthermore how can I get statistical information ex ...
  1. #1
    Just Joined!
    Join Date
    May 2008
    Posts
    1

    Detect Network Change

    Can one detect when the address of a network interface has changed programmatically?

    Can one detect when the network interface went down?

    Furthermore how can I get statistical information ex the received and send packets from the interface.

    Many Thanks,

    Albert

  2. #2
    Linux User Agent-X's Avatar
    Join Date
    May 2005
    Location
    Dimension X
    Posts
    261
    Yes. And this thread ought to be moved to "Linux Programming & Scripting."
    Otherwise, a good understanding of creating Linux daemons and shell scripting is helpful.

  3. #3
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    If you can use DBUS and are using Network Manager you can query NM directly.

    http://people.redhat.com/dcbw/Networ...DBUS%20API.txt

    Also, moving to Programming/Scripting

Posting Permissions

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