Networking :: Up-/download Rate For A Single Host (from Shell)?

Jan 25, 2011

I have a slave node uploading all kinds of backups to my server in the internet. Now I would like to display the actual upload and download rate to this server (not the entire nic-traffic, any protocol) in a small php-page for easy monitoring.I had a look at quite some monitoring tools and the one which kind of offers what I am looking for is iftop with a filter on the IP of my server. As I would like to periodically update a file with the actual rates, an interactive program won't do. A possibility would be to filter the packages myself using but this seems to be quite a long shot.The optimal solution would be a program or script printing out the actual upload to a host specified in the options to STDOUT

View 3 Replies


ADVERTISEMENT

Networking :: Single LAN Port Inexplicably Changes RSA Host Key

Feb 19, 2010

I am running several servers with multiple LAN ports. Two of the machines can communicate via two separate subnets to control bandwidth issues.

Machine 1: 10.0.0.1 (w/ additional alias 12.0.0.1)
192.168.1.1
Machine 2: 10.0.0.2
192.168.1.2

I see three separate intermittent symptoms on the 10.0.0.0 network.
1) Both machines will cut off in the middle of the data transfer (rsync) if it takes too long.
2) Both machines will claim that the RSA key host has changed on the other...this will happen every few minutes.
3) Both machines will, at times, disallow login from the other...ssh prompts for password but will not accept the password.

Performing any operation between the same machines via the 192.168.1.0 subnet has no issue (as of yet).From what I can see, the routing tables are set correctly. Machines were exact clones of each other. Machine 2 is a recently rebuilt machine with a fresh suse11 distro install. Symptoms on Machine 2 appeared immediately. I had this exact setup but reversed ip addresses before Machine 2 burned out without issue. All networks but the 12.0.0.1 are internal and there hasn't been any indication of attack.At times, running ssh-keygen -R <ipaddress> will fix issues 1-3, other times only 1-2.

View 2 Replies View Related

Networking :: Use External Transparent Proxy For A Single Host?

Jul 24, 2010

what I am trying to do is use an external transparent proxy for only one of the hosts on my internal network. For example, for an internal host of 192.168.1.8, I want to send all internet requests for ANY port to a proxy server out in the internet at 238.34.232.7 / port: 8080. All other hosts would use the internet without using any proxy server. Is IPTables the way to set this up or is there an easier option?

View 3 Replies View Related

Ubuntu Networking :: Use External Transparent Proxy For A Single Host?

Jul 24, 2010

I have searched for this quite a bit but my lack of knowledge of IPTables makes me doubt whether I have found a solution or not. I have very light experience with IPTables as well.So I thought I'd ask here.Basically, what I am trying to do is use an external transparent proxy for only one of the hosts on my internal network. For example, for an internal host of 192.168.1.8, I want to send all internet requests for ANY port to a proxy server out in the internet at 238.34.232.7 / port: 8080. All other hosts would use the internet without using any proxy server.

View 1 Replies View Related

Networking :: Route Traffic From A Single Host Through A Specific Interface?

Aug 21, 2010

I have a linux router with 2 physical ISPs and a VPN tunnel that all my traffic passes through. I would like to setup a rule to redirect all traffic from one internal IP address (10.0.0.x) through the physical link only. My current script is as follows.

iptables -F
iptables -X
echo 1 > /proc/sys/net/ipv4/ip_forward

[code]....

My goal is to do something similar to the mangle on the tor traffic, but for an entire host.

View 2 Replies View Related

Ubuntu :: Internet Very Slow - Saying Download Rate: Unknown

Apr 12, 2010

I am trying to sort out a problem with my mum's Ubuntu 9.10. On my laptop, the internet is working fine and is really really fast but on my mum's laptop it is very slow. I tried doing an update and they were unsurprisingly slow as well. I need when I tried to install, they took ages, they kept saying download rate: unknown.

View 11 Replies View Related

General :: Torrent Client Allowing Upload - Download Rate Limit Depending On The Time Of Day

Jan 1, 2011

With Azureus/Vuze, can we set an upload/download rate limit depending on the time of day?

If not, do you know a torrent client allowing this? Client must be available on Linux.

I learned that you can install plugins for Azureus/Vuze. There is one about scheduling. I've tried to install it but I got a NullPointerException.

View 3 Replies View Related

Ubuntu Servers :: Multiple Websites On Single Host Machine Without Virtualisation

Jun 1, 2010

I have this intra net server project going on and now I moved to 10.04 however there are still some things that I would like to see clarification and instructions on. I am interested to set up multiple parallel websites for my apache server, however I am not sure how to do this exactly. Now I have solid address rivera.wippies.net and port 80 redirecting to my server. What I would like to get done is that I get multiple independent of each other websites for my server I was thinking of making websites like this

/var/www/site1 (which would be as rivera.wippies.net)
/var/www/site2 (which would be as rivera.wippies.net/othersite)
/var/www/site3 (which would be rivera.wippies.net/secondothersite)

etc, so that I have multiple "individual" websties for my server. Requirements would be that each of these websites could have SSL encryption as needed available too, since some of the website could have confidential information.

View 9 Replies View Related

Ubuntu Installation :: Change Compiler For A Single Shell?

Feb 11, 2010

I have upgraded my machine to Karmic, and thereby getting gcc/g++ 4.4 in the process. I have some code that requires gcc/g++ 4.3.

I can change the compiler system wide by redirecting the symbolic link from 4.4 to 4.3

Code:
sudo rm /usr/bin/gcc
sudo ln -s /usr/bin/gcc-4.3 /usr/bin/gcc

but i would like to have it done per session instead.

View 9 Replies View Related

Software :: Shell Script Single Step Debugging?

Aug 5, 2011

Does anyone know of a way to single-step through Bash shell scripts in order to debug? (similar to the way Windows 98 used to let you single-step through autoexec.bat)

View 2 Replies View Related

General :: Capture Reponse Of 20 Different URL Hits In Single Shell Script?

Aug 5, 2010

I need to execute 20 urls in one shell script and display there responses on the console and write on text file too. consider the case when url is not responding.

View 4 Replies View Related

Programming :: Take A Single Line Of Input From User In Shell Script?

Mar 10, 2011

How do i take a single line of input from the user in a shell script?

View 3 Replies View Related

General :: Download A Single File In 2 Parts To Different Locations Using Wget?

Jan 18, 2011

I need to use wget (or curl or aget etc) to download a file to two different download destinations by downloading it in two halves:

First: 0 to 490000 bytes of file
Second: 490001 to 1000000 bytes of file.

I will be downloading this to separate download destinations and will merge them back to speed up the download. The file is really large and my ISP is really slow, so I need to get help from friends to download this in parts (actually in multiple parts)

The question below is similar but not the same as my need: How to download parts of same file from different sources with curl/wget?

aget

aget seems to download in parts but I have no way of controlling precisely which part (either in percentage or in bytes) that I wish to download.

Extra Info

Just to be clear I do not wish to download from multiple locations, I want to download to multiple locations. I also do not want to download multiple files (it is just a single file). I want to download parts of the same file, and I want to specify the parts that I need to download.

View 1 Replies View Related

CentOS 5 :: Download Source Code Of Single ServerCD I386 ?

Oct 26, 2010

Is cento open source ? if yes, where i can download source code of CentOS x.y Single ServerCD i386 ?

View 1 Replies View Related

General :: Shell Script To Extract Single Report By Pattern Then Both Backward And Forward

Feb 18, 2010

I have to admit that I register to LQ after I failed to search for similar solutions.let me see whether I can explain my problem clearly. I need to extract a single report from a big file. The big file looks something like this:

Report for yyyyyy
Your info 999-9999999
End of Report

[code]....

I need to search for a user provided string, say 999-9999999, in the big file. Then I have to extract the single report. My logic is simple,

1) find 999-9999999
2) backward search for "Report for", note down the line number
3) forward search for "End of Report", note down the line number
4) extract the record by using info found from step 2) and 3).

I am trying to do this in bash, with awk and sed (I am new to both).

View 8 Replies View Related

Ubuntu :: Writing A Single Shell Script To Change Preview Settings And A Launcher's Icon

Mar 22, 2010

I want to write a single shell script that allows me to, once executed from a panel launcher, change the image preview setting between "local files only" and never. Right now i have two tiny scripts, one for local files only and another one for never, that is:

[Code]...

and the other says string "local_only". But that means i need to have two launchers, because i don't know how to write the condition <<when set to never, change it to local only. And is it possible to make a script that also changes the launcher's icon when the preview config is set to one or the other value? That way i'd know what it is set to just by looking at it. It would act as a diagnostic and therapeutic tool XD

View 9 Replies View Related

Ubuntu Networking :: Transfer Files From Cluster To Host And Then Host To Another?

Mar 4, 2010

I am working on a cluster for a molecular dynamics class and I have to edit my FORTRAN code (only the newest and best for me!). In order to get through to the cluster I have to ssh in. The network on which the cluster resides is behind a firewall, so I have to ssh through the firewall into the network first.

this is fine, I can login and move files and folders as needed, including sftp-ing into host 1, then into the cluster so I can transfer files from cluster to host and then host to me. This gets rather tiresome, so it would be nice to edit the files in place.

The problem is that when I access my code with emacs it launches the emacs client on Host 1, with no mouse support. I know the purists will howl about how I should be using keyboard shortcuts, but I am a chemist and not a programmer, so the mouse is very nice for me. Is there any way I can perhaps mount the cluster using sshfs so that when I open my code it launches a local instance of emacs? Sorry if this is the wrong forum, but I thought it was network related.

View 3 Replies View Related

Networking :: How To Find Least Busy Host Given Hardcoded Host List?

Oct 12, 2010

I got a bunch of machines (~10) that I share with my co-workers. I have appropriate .ssh file(s) set up so I don't get prompt for password when I try to ssh.Currently I ssh into these hosts and then do a top to check the load before I start using the machine. Because I don't want to be on a busy host.Can someone show me how to write a script that find a least-busy host given a list of hosts to check? (hardcoded is fine)

View 1 Replies View Related

Networking :: Very Low Network Performance In Host-to-host Connections

Jan 27, 2009

The internal network is behind nat done by the PC Router.The TP Link is recieving wireless signal from outdoors and it has switching and basic routing capabilities. I'm using the PC router for better routing options.PC Router (or R for short) is a triple-booting machine - Linux, FreeBSD and Windows. It has two lan cards - external (ext_if) - 100Mbps Realtek 8139 and internal (int_if) - 1Gbps integrated Realtek 8169.The problem is that all traffic from R to the network is slow - about 5-20K, while the traffic in the oppoiste direction is all right - about 10MB that is fine for 100Mbps cables, NICs and switches. The problem persist no matter the OS the pc R is running.I've tried some debugging on the situation as follows:

- put another PC at the place of R - everything is fine. That exclude the possibility of damaged cables, RJ-45s, switches and etc.
- connected both of the NICs to the Internet while the internal network is being disconnected and they both work fine (no delays)
- traffic shaping is not running
- there is nothing in firewalls except NATing the internal network (and it is working fine). Actually these firewall rules have been operational for more than months and everything was fine untill a week or two ago.
- changed the internal NIC with another
- connected the internal network directly to the TP and all of the PCs are getting good network performance. Then connected the R machine to the TP as well and there was good performance between the internal network PCs and R.
- R has good performance to the TP. In fact everything has good performance directly to the TP (when not connecting trough R).
- the problem persist only between R and machines from the internal network.

View 2 Replies View Related

Server :: No Route To Host Error When Trying To Download Email

Sep 24, 2010

My domain [URL]... has recently been moved to a new server. Since then, I have not been able to download email. Email sent to the domain can be seen in /var/spool/mail/akwebsoft, just as on the previous server. However when I go to download the email, I get the following error message (in part) in my fetchmail logfile:

[code]...

View 3 Replies View Related

Ubuntu Servers :: Install Coldfusion 9 - Download Or Copy Across From My Host OS ?

Feb 10, 2010

I have Ubuntu Server 9.10 setup on virtualbox and i'm using webmin and everthing works so far. But now i'd like to install Coldfusion 9, so how do i download or copy across from my Host OS ? Is there a very lightweight gui i could install, although prefer to stay away from that if i can ?

View 2 Replies View Related

Ubuntu Networking :: Host Able To Ssh To FreeBSD Host?

May 19, 2010

So here's the setup:

Ubuntu 10.04 host inbound port 22 open
FreeBSD 8.0 host no inbound ports open

Both hosts are running sshd currently. What would you do for the Ubuntu host to be able to ssh to the FreeBSD host? A tunnel?

View 6 Replies View Related

Debian :: User Cannot Download Any Files From Host Via WinsCP Or Other SFTP Client

May 26, 2015

Can i block on debian that user can not download any files from host via winscp or other SFTP client ?

View 4 Replies View Related

Software :: Shell Script Commands To Automate Server Or Host Telnet Login Session?

Feb 7, 2010

finally i found the script for telnet automated login session...<<Mod edit: questionable link removed>>

View 4 Replies View Related

Ubuntu :: Download A File Via HTTP From A Shell?

Mar 28, 2011

How can I download a file via HTTP from a shell?

View 3 Replies View Related

Networking :: How To Limit Upload Rate?

May 30, 2010

I have a linux box running between my router and my LAN. My connection speed is 10MB download and 1MB upload. The issue is that whenever someone starts to upload something, it is like my connection is down. No one else can open websites, read emails etc.Is it possible to place a limit for upload, maybe 50kb/s? This way, people won't use the entire upload speed available.

View 1 Replies View Related

Networking :: NAS Over WiFi Transfer Rate

Mar 27, 2010

I have a LaCie NAS which is mounted on my main linux machine over a wifi LAN using the cifs file system. I would stupidly expect the transfer rate between my hard drive and the NAS to be limited by the Wifi speed (54 Mbps) but when I transfer files, the speed tops at 1.9 Mb/s which is roughly 15.2 Mbps. The most puzzling thing is that when I do multiple simultaneous transfers, I reach approximately 3MB/s in total but none of the individual transfers goes beyond 1.8. Does anyone have an idea about what is keeping the transfer rate so low?

View 2 Replies View Related

Networking :: Rate Control In Ethernet

Apr 15, 2009

Can anybody tell me what is rate control and rate control mode of operation (in data link layer) in an Ethernet interface?. Does it have anything to do with auto negotiation in Ethernet?

View 1 Replies View Related

Networking :: Tc Rate Control Over Network

Jul 2, 2010

I want to implement rate control over network interface. So I have configured Linux PC as a router with netem installed and having two interface cards.

device1----> Linux router with netem ---> device2

device1 connects to eth0 and device2 connects to eth1 of the Linux router. eth0 is configured to connect to the internet and eth1 has a static IP address on a local network. I want to limit bandwidth on devices connected to eth0.So I applied the below rules using tc and tbf.

tc qdisc add dev eth0 root handle 1: prio
tc qdisc add dev eth0 parent 1:3 handle 30: netem
tc qdisc add dev eth0 parent 30:1 tbf rate 256kbit buffer 1600 limit 3000

Will the above work or should I use htb instead. I want to simulate the network conditions using different bandwidths.

View 10 Replies View Related

Software :: Automated Download Problem - Shell Ftp Vs Perl

Jun 1, 2009

I recently set up an automated shell script (bash on Ubuntu 8.10) to download new files from a server using ftp. Unfortunately the other end of the link is not terribly stable (and there is nothing I can do about this) which has resulted in the script hanging sometimes and then being kicked off again at the time set in the crontab.

This has resulted in multiple hung sessions taking up all the system resources.

The offending section of code is given below.

Code:

I'd like to know if there is a way I can force an exit if the connection hangs or alternatively if something like the Perl Net::FTP can handle these sorts of errors internally.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved