Programming :: Running Iperf On Machine From Web Interface
May 22, 2011
I'm not sure if I'm posting in the correct section, so please move it if it isn't.I currently have a bunch of laptops for testing a distributed network - throughput etc., using a bunch of bash scripts that send or listen to multiple addresses and ports, which run iperf. But at the moment I have to run it from each machine, or log in through ssh.To make this easier, I'd like to be able to present a bunch of buttons and selections from a web interface, so I can just put in the hostname of each laptop, and then click on a presented 'send' or 'listen' button to then execute iperf, and be able to kill it early if need by, say, by a 'stop' button.
What is the best way to go about this? Python, JavaScript, Java Servlet?And how would I do it? Just one of the above on Apache or something on each laptop?I just don't which direction to start heading in. Any help would be greatly appreciated.BTW. The network is considered to be not connected to the Internet, so I'm not too concerned about security, but if you've got any suggestion of how to start and stop iperf securely from a web interface on a machine, I'm interested.
How can I install iperf (and jperf) and ntop???? I need these to resolve some issues with the LAN throughput. See this link for more info. how-to-speedtest-lan-traffic-on-windows-and-linux-clients-and-servers This is the message I get.
I'm know very little about Linux but decided to set up a machine running Drupal CMS on a Debian machine and it won't go. The folks at Drupal have tried to help but it seems the Debian OS won't do it's PHP thing for Drupal.
That means i'll have to start at the START I guess.
how to become a master of Linux if one is starting from ABC (I can add and subtract, that's what it feels like)
The test results are false because I use 100Mb/s NIC's. I can't use two pc's for test.I tried to do the same test under windows 7 x64 it and works properly, but under windows xp there occurs the same problem like under ubuntu.
I have managed to configure a wireles PCI card on CentOS 5.3 and it seems to work fine. It is a off brand (Hercules) with a Ralink RT61 chipset. I installed the most current driver (RT2501PCI/mPCI/CB(RT61:RT2561/RT2561S/RT2661) from the rt2x00 Open Source Project. I now have a question that might be very simple for one or more of you to answer. When I issue the command "shutdown -h now", the machine starts to come down and brings down eth0 cleanly, but when it attempts to bring down wlan0, the machine hangs and never brings down the interface OR powers off the box. The only way to complete the power off is to "hard" power off the machine.
I have ran the installation of Ubuntu (10.10) on my Acer Aspire computer, I chose to wipe the disk and use only linux, however after installing and restarting, I get some sort of terminal/command line and not the actual operating system. I did not install Ubuntu Server and this disk worked on another computer (actually the one I am typing this on right now).
I just took a class on sql, unfortunately, it was Windows-centric, which means I have to figure out how to do stuff in Redhat by myself. By installing mysql via yum and then running pirut, I find there is an interface type program called MySQL-python-1.2.1-1.x86_64 so I installed it but I'll be danged if I can find any information on how to actually run the thing. What is the command to start MySQL-python-1.2.1-1.x86_64?
suppose I have multiple interfaces installed on my machine. The question is how to specify which interface to use while starting a web-browser.What I would like to make possible is something like:Code:browser_name interface addressif it is possible in for any web-browser or via scripts please advise me accordingly.
If I have only 1 physical WLAN interface, is there some hackery that can be done so that it can be a client of an existing access point and at the same time also act as an access point for other clients? I have an existing 802.11g ADSL router, and I'm going to be building an HTPC which will have 802.11n. My laptop also has 802.11n, but at the moment it only connects at 54Mbps because thats what the AP supports. I'd like to be able to have the HTPC be a client of my ADSL router, but have my laptop be a client of the HTPC, so copying files to it will be faster.
I have just installed debian-live-8.3.0-i386-lxde on my old hp530 32-bit laptop
Everything went well but every time I start my laptop I get following message which lasts for approx 1m 20s ...
Code: Select allLoading, please wait... fsck from util-linux 2.25.2 fsck error 2 (No such file or directory) while executing fsck.ext4 for /dev/sda1 fsck exited with status code 8 [ 13.941532] systemd-fsck[145]: DEBIAN8: clean,140919/640848 files, 978992/2560942 blocks [ ***]A start job is running for LSB: Raise network interfaces. (1min 20s / no limit) with the 3 asterisks above moving back and forth.
... then it boots OK into operating system. so apart from the delay everything is working ok.
eth0 is connecting via a Cisco switch to the outer world and eth1 and eth2 to internal networks.
eth1 and eth2 are working without problems all the time, however I have the following incident with eth0: although it is RUNNING, and after it works for some time (like some hours), it then becomes incapable of sending/receiving traffic. Here are more details, after the interface exits the RUNNING state:
I am wondering whether there this is because there is not traffic for some time and so the interface goes to idle. Is there any parameter I can tweak in RHEL6 to force the interface to remain RUNNING even in the absence of traffic (although I would be expecting that some 802.1 packets would be periodically flowing from the switch to the interface)?
I have currently had the need to go back to basic socket programming, and implemented a simple udp packet sender. But I realized I needed to be able to select which network interface to send the packets from.
The reason is so that one of the interfaces has vlan tagging, and I need my UDP packets to be accordingly vlan tagged. For example, one of the interfaces is eth1.200.
The following are the output of command "ifconfig -a":
[Code]....
The interface "eth0", which is down, was not displayed, but loopback interface has been displayed. So, how can I make my application display all interfaces, including the interfaces which are down, but excluding the loopback interface?
Is suid disabled from running all home made bash scripts or just from running them as root or:
Who would know for sure.
I googled several combinations of Mandriva Linux how-to suid disabled setUID etc... so far all I found was "many distributions are disabling suid for security reasons" nothing specific.
My root Vixie cron crontab is set to perform a system snapshot via fsarchiver: 0 0 * * * fsarchiver savefs -o -A /backups/p30_root.fsa /dev/sda2 /dev/sda3 The command itself works fine, generating about a 7G snapshot of my Suse server. I then wish to rsync this to a NAS I have located in another building: 0 3 * * * rsync -av -e ssh --delete /backups/ root{at address}:/DataVolume/os_backups/
(yes, I'm rsyncing as root. I absolutely loathe it, but I got thrown into an quasi-SA position with a ridiculous to-do list and no time to do it. I'm having to make things just work and then go back and try to improve them/learn how. I couldn't make it work in a non-root way quick enough, so for now I'm having to cron rsync jobs as root because of all the differing file permissions on this samba/MySql server. I set the NAS to only accepts ssh from the server IP, and we're behind a campus firewall... It's serious trial by fire.) The crontab also has rsync commands for the samba areas, our specialized chemistry software and affiliated MySQL databases............
I am having trouble running yum on my fedora 10 machine. Running yum to install any package gives following error :- [Errno 4] IOError: <urlopen error html><body><center><br><script>> Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again
I have been searching a solution for this for quite some time , but unable to find one which can solve the error I am getting.
I am trying to run open a GUI program on a remote Ubuntu machine using ssh.
I want to open, lets say firefox or skype, on a machine I have connected to via ssh. But when writing logging in with user2 and writing sudo -u user1 firefox I get an error message saying no display specified.
The machine is turned on and logged in with user1, it just appears that i cant get ubuntu to recognize that there is a GUI available.
I have 3 boxes running opensuse-11.4 64 bit - Phenom-I 2.6 GHz, Intel Q9400 quad core 2.66 GHz and Intel SU7300 dual core 1.3 GHz (the last one is a laptop). When I run a KVM virtual machine and load it quite a lot all host OS freeze. Interestingly, the laptop works the longest (hours), while the fastest system with Q9400 freezes in max. 10 minutes. After a hard reboot there is nothing in /var/log/messages This bug is 100% reproducible. The guest OS is either RHEL or openSUSE. Is it a 11.4 bug or I am missing something? Have not tried the same hardware with RHEL-6.
I have an offer for a free outdated laptop, and wondering if it's possible to run skype on this. It will be running with a very stripped-down Ubuntu Linux operating system, and no other graphical goodies hogging up the processing power.
The specs will be:
400 Mhz Celeron processor
Approx 300 MB RAM
Rest is unknown.
Think this is capable of running skype with video?
My hostmachine is Windows, and install Ubuntu on a virtual machine. I developed some program on Ubuntu. Suppose I want to transfer these files to a folder in Windows. How to find and get these files, which logically are stored in the virtual machine.
I'm just trying to know if is there is a way to run the first version of linux in a virtual machine. Since I am very new to this, my aim is to learn something basic on how the first version of linux kernel was built and worked.
from a local machine i connect to the remote via the terminal:$ ssh -X john@192.168.1.248 VirtualBoxthe vb dialog box appears with the list of the virtual machines on the left hand side, just as if i was runing it locally, but when i try and start one of the machines it crashes the connection!why dose it crash the connection and what can i do to make this work?
I am getting seriously tired of running MS Office in a virtual machine. It's been about 18 months since I tried running in on Wine, so I just checked out WineHQ and CodeWeavers and apparently usability hasn't improved at all.
I keep trying to use OpenOffice but whenever I open PowerPoint presentations they are always kind of messed up. This week, somebody sent me an MS Word file for printing labels for a mail merge and the label template file opened up blank. Anybody else have any brilliant work arounds or am I still stuck with my MS Office VirtualBox!! It's really hard to believe that its 2011 and Linux is still missing a world-class Office Suite...
I recently got my laptop setup as an Ubuntu machine, but if I just leave it running, after a while I'll look over and see that it has shut down. I have gone through the power management options and I do not see anything there regarding this. So I was wondering if this is a feature in the 10.04 version?
I m new to linux. I have fedora 14 on my lenovo 3000 n100 machine but thr is no sound at all. I have tried all the possible solution but no success at all. My alsa profile is [URL].