Networking :: Record Tx/Rx Bw In A Program - Without Using Tools From /proc/net/
Feb 22, 2011
I need to record Tx/Rx bw in my c program at defined intervals. I am aware that there a bunch of available tools but I need a minimal version with only Tx/Rx bw with no other details. I have tried the tool bwm-ng which mostly serves my purpose but either it runs continuously in the console or saves result in html file. It does not have any options to save the result in txt file which could have been easy to parse.
Is there any other simple way to record Tx/Rx bw in a program?(without using tools from /proc/net/ or any) I am using Mandriva Linux 2.6.31.5.
View 2 Replies
ADVERTISEMENT
Dec 8, 2010
I have a third party program (tightvnc) which I want to monitor and detect if it loses a connection with a client. I don't care if the client has the program open but isn't doing anything with it, I only want to know if the actual TCP connection is lost.
Since TCP takes forever to die on it's own I was thinking the best way to detect if a connection is lost is by bandwidth the bandwidth on the tcp port allocated to the VNC connection. Are there any tools built in to redhat (RHEL 5.2) which I could use to do this? Since I don't have full control of the operating system I would prefer to use built in tools rather then trying to get a new tool installed.
View 3 Replies
View Related
May 1, 2011
I have a kernel module program which is used to create a entry in the proc file system. I have to read and write values in the entry. Its taken from a online tutorial stuff.how to write the value to the proc entry in the program ?
View 1 Replies
View Related
Feb 22, 2010
I want to check whether a USB is plugged in its slot from a C program. I want to make use of /proc interface for the same. During my reading i found that /proc/bus/usb/devices will tell how many USB devices are currently present.
So whether i can open this file and use stat call to identify whether the size is 0. If size is 0, i can assume no USB present. Else i can assume USB is present.
Whether my understanding correct. If USB inserted, how can i check the folders present in the USB stick.
View 2 Replies
View Related
Jul 6, 2010
I've got the F13 LiveCD that I was able to boot and use using the "nomodeset" boot option. From the desktop I'm trying to perform an Install to Hard Drive. I've read the Install from LiveCD post regarding the creation of a /boot partition and a / root partition. I've tried creating them without the LVM group and with. But every time I appempt to install I get...
An error occurred mounting device proc as /proc: mount failed: (9, None). This is a fatal error and the install cannot continue.
Hardware is a Sager 8887 (P4, 3.06HT, 60GB HDD, Radeon 9000 graphics adapter)
View 7 Replies
View Related
Nov 22, 2010
I want more program like ubuntu tools and ubuntu tweaks
where can i find it
View 5 Replies
View Related
Jan 17, 2010
Is there a way I can start a program and then record a log of how much memory it's using at a specific interval until the program ends?
I've tried writing a shell script but get the error: ./apps/mem-test.sh: line 4: [: too many arguments
Here's the non-working script:
Code:
$HOME/apps/ImageMagick/bin/convert -limit memory 64 -limit map 128 $HOME/SSI/davidkennardphotography/Img-Orig/95-Pole-Bank.jpg -set option:filter:filter Lanczos -set option:filter:blur 0.8 -resize 1024x720 $HOME/resizedImage.jpg &
GOODY="ps -p $! -o pid,%cpu,rss,cmd | grep convert >>test.txt"
[Code]....
View 3 Replies
View Related
Jul 14, 2010
I was running 9.04 and could, through some magical sequence of toggling options that I was unable to figure out, occasionally get recording from the mic to work in audacity. Ardour worked more reliably, but is kind of over-featured. Audacity is simpler and I know how to get things done. For a while, I was doing basic recording in Ardour, saving it to wav then editing in audacity.
Well, I noticed a howto on getting audacity working in 9.10... so I upgraded ("what could possibly go wrong?"). I still can't record audio in audacity and ardour is now ALSO unable to record audio. They start recording samples but nothing comes in but silence. I've got audacity set to ALSA/default/default and when I click monitor, the stream appears in the pavucontrol app. I've moved it to the input device and that doesn't seem to affect the results at all. Everything looks like it should be working fine except there's some invisible mute button, or something. Under alsamixer's Capture section, Mic has a red "CAPTUR" with no bar to adjust.
View 9 Replies
View Related
Oct 21, 2010
I want to record a line-in source Using the Audacity program. but the wave trace in the app is not symmetrical about the zero axis. This is not what I would have expected and I wonder if it will show up as poor quality recordings when I transfer to my hifi.
View 1 Replies
View Related
Apr 6, 2010
I am new to Linux, and I just tried to compile a program (powertab tools) from source. I'm having som problems doing that. The "./configure" command works fine, but when I run "make", it gives an error:
Code:
seppe@Thuis:~$ cd ptabtools-0.5.0
seppe@Thuis:~/ptabtools-0.5.0$ ./configure
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
[Code]...
View 1 Replies
View Related
Jan 16, 2011
Were we are we are now getting dinged by the gigabyte were up till now it was just a monthly cost for unlimited use. I guess they are fishing for more profits anyways I need a program that will record/track my monthly usage is their anything available like this for ubuntu?
View 6 Replies
View Related
Jul 10, 2011
I'm just wondering if there is a video capturing program that can, at the least record what is on my computer screen (including what is on Wine) and at the most capture what is on my webcam as well.
View 2 Replies
View Related
Apr 4, 2010
Have a television card on the computer. Works perfectly well and it would be nice to use the computer as a television program recorder. Buggering about with a DVD recorder is a lot of trouble. How is it possible to do this - surely pretty basic - job? Buggered if I know. It is important to compress the thing into *.avi format or something like that. Otherwise it takes up a huge amount of space.
View 4 Replies
View Related
Jul 14, 2010
Can i find sample program to record audio through microphone connected to PC.
View 9 Replies
View Related
Jul 30, 2010
i want to change permissions for /proc/sys/net/ipv4/ip_forward and permission denied.when i want to delete it , operation not permitted.i know it is dynamically created file . but i want to chenge its permittion to read-only or delete it
View 2 Replies
View Related
Dec 16, 2010
Bugzilla # 224662 & 9
Red Hat 5.2
a) /etc/sysconfig/network-scripts displays only eth0 and lo0. However, /proc/net/dev and ifconfig INCORRECTLY display :
[Code]....
b) the _tmp NIC is reported in the above Bugzilla report and I'm looking for a patch.
c) Why is the kernel continuing to make NICS for eth1, 2 and sit0?
View 2 Replies
View Related
Dec 7, 2010
I am trying to read the /proc/net/tcp6 file of a huge server (chat server) for monitoring the tcp6 connection states.
This tcp6 file has more than 26000 lines. For monitoring the server connections, my monitoring tool has to read the /proc/net/tcp6 file quickly in regular interval. Presently it takes minimum 6-7 seconds for reading the whole file.
My tool can able to read the normal file (26,000 lines) less than 1 second, but it is not possible to read the same size of proc file.
I have 2 questions:
1) Why proc file takes more read time than normal file?
2) Is there any way to read the /proc/net/tcp6 file more quickly?
View 1 Replies
View Related
Apr 16, 2010
When writing a script using command-line tools why is it more difficult using graphical tools?
View 3 Replies
View Related
Apr 8, 2010
I checked xen-tools on a Debian Lenny system
Got following
Code:
This package contains tools to manage Debian based XEN virtual servers.
Using the scripts you can easily create fully configured Xen guest domains (domU) which can be listed, updated, or copied easily.
Homepage: [url] in the above output I am getting a line Conffiles and then you can see a series of /etc what are that and is it an error or some conflict?
View 2 Replies
View Related
Sep 2, 2010
I need to install the scripts of angstrom distribution
ie ARM gcc..................how to install the scrpits from the site [url]
View 1 Replies
View Related
Sep 5, 2009
i have problem with samba share everytime when i want to browse shared folders on fedora machine from windows i always get this msg (SELinux is preventing samba (smbd) "getattr" to /proc/fs/nfsd (nfsd_fs_t).)here is my selinuxlog
Summary:
SELinux is preventing samba (smbd) "getattr" to /proc/fs/nfsd (nfsd_fs_t).
%
View 6 Replies
View Related
Jun 27, 2010
I have to get soem statistic about interfaces from /proc/net/dev. but statistic on this file is reset when get reach more than 4G byte.I think linux has limitation on this case.
View 1 Replies
View Related
Aug 20, 2010
I'm trying to find out what is the difference between wifi0 and ath0 (atheros wifi card) in terms of packet counters shown in proc/net/dev pseudofile. The fact is that wifi0 and ath0 packet counters are different. I've read that wifi0 refers to the physical device and ath0 refers to virtual device over wifi0, so, as far as I know, packets counters in both devices should be the same, isn't it? Another annoying question for me is that ath0 doesn't show any erroneous packets, while wifi0 does.
[Code]..
View 6 Replies
View Related
May 11, 2010
dear can someone highly gui or text base/command line tool that use as "isp bandwidth monitoring tools in linux".i do have leased line,frame relay, wireless linke,dsl too. i want to monitor what is uploading and downloading.
View 11 Replies
View Related
Apr 16, 2011
I just wanna know if anybody know what type of free VPN tools on Fedora that you use? Previously on Windows I use PackectiX. So what now on Fedora?
View 1 Replies
View Related
Mar 25, 2010
I did this --> [url]
My computer says the driver is installed and the device is present. All of that went fine. Now I need to connect my card to my house's wireless network. Am I supposed to do that in System-->Administration-->Network Tools? The problem is that whenever I click on network tools, the application looks like it is going to start-up and then quits/crashes/runs away, whatever. Any ideas on what is causing this?
Okay, I tried launching from the terminal, here is what I got:
Code:
View 1 Replies
View Related
Mar 30, 2011
As a frequent traveler, I spend most of my time in Hotel these months.My laptop is Ubuntu Maverick.Is there any UI tools for wifi scanning and auto-connection in Ubuntu?I have tried wifiradar. Although it could scan out the wifi SSID, while, the wifiradar could not connect to the WIFI.
View 4 Replies
View Related
Aug 5, 2010
Is there some software to measure Internet speed and show where the slowest element is?
I use OpenSuse 11.1 and KDE although Im happy to set up a user using Gnome.
Just recently my browsing speed dropped to almost nothing ...I used [url] to measure my speed and it gave a very slow result 30kb/sec ....usually its around 3000kb/sec. I rang my ISP's helpdesk and they told me my ADSL connection was fine. Two minutes later it was back to normal!
I know the internet speed varies from time to time ...I guess depending on how many are using it and for what. But..I suspect that my ISP was restricting my speed and Im looking for a tool that will tell me which part of the internet is the "slowest"
I would also welcome pointers to information about internet speed and what causes it to change.
View 3 Replies
View Related
Jun 1, 2010
I don't know if the title is a correct description of the problem I have. I registered a domain name in godaddy, created a subdomain name and pointed it to some name servers. After some time, I moved my website so I change the name servers of this subdomain name. But the problem now is it is still pointing to the old name servers. Everytime I visit the website in my computer, I get errors. But I try it in another computer, I works. So I suspect there is something left in my computer that still tells my browser to go for the old name server. I've cleared cache and temporary files of this browser but it still does not change.
View 8 Replies
View Related
May 20, 2010
I'm currently tunnelling to my Ubuntu pc at home from my laptop in order to bypass my schools false-positive prone filter. Is there a way to record traffic that both comes to and is delivered by my pc?
View 1 Replies
View Related