LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-13-2007, 03:47 AM   #1
munna_dude
Member
 
Registered: Dec 2006
Posts: 362

Rep: Reputation: 30
network connection


hi

i am using F5.
there is an image which showing network connection
at the pannel.

when i clicked it shows a window that is

connection properties-> Generel tab->
connection
name:
status:

from where it showing status (from system files)

the status is showing like idle,recieving/sending...


help me in this way

thank you in advance
 
Old 03-13-2007, 03:58 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
I'm sorry, but what did you want to do?
 
Old 03-13-2007, 04:08 AM   #3
munna_dude
Member
 
Registered: Dec 2006
Posts: 362

Original Poster
Rep: Reputation: 30
thank you for quick replay

Quote:
Originally Posted by Simon Bridge
I'm sorry, but what did you want to do?
it is very useful to know whether internet is there or not.

can you please tell me from which file (in the f5 system)it showing like this

thank you in advance
 
Old 03-13-2007, 08:45 PM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
to find out if you are connected to the internet, open up a termina and enter

ping www.google.com

if nothing happens for a while, then you have no internet connection. If you are connected then you'd get something like this:
Code:
simon@errata:~$ ping www.google.com
PING www.l.google.com (66.102.7.99) 56(84) bytes of data.
64 bytes from mc-in-f99.google.com (66.102.7.99): icmp_seq=1 ttl=244 time=214 ms
64 bytes from mc-in-f99.google.com (66.102.7.99): icmp_seq=2 ttl=244 time=209 ms

--- www.l.google.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 209.448/212.126/214.804/2.678 ms
 
Old 03-13-2007, 11:13 PM   #5
munna_dude
Member
 
Registered: Dec 2006
Posts: 362

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Simon Bridge
to find out if you are connected to the internet, open up a termina and enter

ping www.google.com

if nothing happens for a while, then you have no internet connection. If you are connected then you'd get something like this:
Code:
simon@errata:~$ ping www.google.com
PING www.l.google.com (66.102.7.99) 56(84) bytes of data.
64 bytes from mc-in-f99.google.com (66.102.7.99): icmp_seq=1 ttl=244 time=214 ms
64 bytes from mc-in-f99.google.com (66.102.7.99): icmp_seq=2 ttl=244 time=209 ms

--- www.l.google.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 209.448/212.126/214.804/2.678 ms
i tried for ping but it is very late. and when server is down my gui application is hanging. so, i need help about connection properties window. there is a status which showing internet is there or not.

thank you in advance
 
Old 03-14-2007, 01:53 AM   #6
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
i tried for ping but it is very late.
Late?
Quote:
and when server is down my gui application is hanging.
Your server is down, your "GUI application is hanging"?
Quote:
so, i need help about connection properties window.
What do you need to know about your connection status window
Quote:
there is a status which showing internet is there or not.
And what does it say?

I am still having a great deal of trouble understanding you.

I take it you are trying to get internet access with FC5.
How are you trying to get access, and what kind of connection, and what hardware are you using?
 
Old 03-14-2007, 02:09 AM   #7
munna_dude
Member
 
Registered: Dec 2006
Posts: 362

Original Poster
Rep: Reputation: 30
thank you for quick replay

hi

what am i trying to do is

my gui application is network based.
so,
it has three condition to satisfy
1. netdown or up(neat->activate or deactivate)
2.unplugging (internet cable)
3. server down or up

i am using F5 AMDand am using sip protocol (tcp/ip)

i would like write a program to satify all the three condtion.

so, i asked you about connection properties window( it showing a tray icon beside of volume controler on the desktop)

it is giving information about network

that is

when net is up ->idle,sending/recieving
when net is down ->disconnected
when unplugged ->disconnected
when serverdown ->sending

like these messages are showing so, from where it is showing,

i hope you understood now.

can you please help me in this way


thank you in advance
 
Old 03-14-2007, 04:01 AM   #8
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Oh I see, you want to know how the net status messages get to the applet display in FC5... lets see, have a look in /proc/net and also man netstat.
 
Old 03-14-2007, 05:09 AM   #9
munna_dude
Member
 
Registered: Dec 2006
Posts: 362

Original Poster
Rep: Reputation: 30
thank you for quick replay

Quote:
Originally Posted by Simon Bridge
Oh I see, you want to know how the net status messages get to the applet display in FC5... lets see, have a look in /proc/net and also man netstat.

yeah thank you

how can i use this command "netstat" to only know the status
that is idle,receiving,sending and disconnected

can you please help me

thank you in advance.
 
Old 03-14-2007, 09:53 AM   #10
munna_dude
Member
 
Registered: Dec 2006
Posts: 362

Original Poster
Rep: Reputation: 30
hi

Quote:
Originally Posted by Simon Bridge
Oh I see, you want to know how the net status messages get to the applet display in FC5... lets see, have a look in /proc/net and also man netstat.
i cant find in /proc/net

can you please tell me the exact path for only status.

and

i used netstate -i command

it is printing like this
Quote:
[root@localhost ~]# netstat -i
Kernel Interface table
Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg
eth0 1500 0 123590 2363 42 1002 104110 218 0 0 BMRU
lo 16436 0 35144 0 0 0 35144 0 0 0 LRU
but here Flg is showing some deferece
when netis down and unplugged

but when the server is down it is not showing any deference
it showing message like netup

i have to compare with flg...

can you please help me

thank you in advance
 
Old 03-14-2007, 09:08 PM   #11
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
Originally Posted by munna_dude
i cant find in /proc/net
What can't you find in /proc/net?
Quote:
can you please tell me the exact path for only status.
nope - you'll have to hunt. In general, system stuff will be found in /etc and /proc or one of the hidden files in your home directory (ls -al ~)
Quote:
i used netstate -i command
it is printing like this
...
but here Flg is showing some deferece
when netis down and unplugged

but when the server is down it is not showing any deference
it showing message like netup

i have to compare with flg...

can you please help me

thank you in advance
man netstat.

Other network tools are like ifconfig and iwconfig. Read around.

Remember, I am having a great deal of trouble understanding you, so I am reluctant to do more than point you in a hopeful direction. I am relying on your native intellegence to figure out what you need to do.

You should know that network monitors don't actually access a file containing the words "idle" or whathaveyou, they usually perform simple tests on the network and interpret the results using these words.

Crudely, one could run netstat -i repeatedly and catch it's statistics. If the network device is present, but there is no change in TX-OK then it is "idle"... get it? If there is a change then it is "active" and the transfer rate could be represented as the difference divided by the time between runs. See? You can do something similar with ifconfig.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
No network connection at all Score Debian 4 03-12-2007 09:28 AM
my internet connection disconnects my network connection? emre polat Linux - Networking 2 12-19-2006 01:11 PM
Network connection down alanchansl Linux - Software 1 07-05-2006 06:12 AM
Can't get a network connection JMJ_coder Slackware 26 04-14-2006 01:25 AM
Network Connection InsaneBob Linux - Software 2 08-30-2003 06:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration