Programming :: Ping A List Of Devices?
Jul 27, 2010
I would like to ping all my virtual hosts in virtual machine server with a oneliner. For example like this:
Code:
for i in $(seq 1 20); do if [[ $(ping host$i.virtualhostserver.com -c 2 2>/dev/null | grep "2 received") == "2 packets transmitted" ]]; then echo $i; fi; done
The problem is, that I'm afraid my if-sentence is somewhat wrong because it never gets a match even if I know, that host is up.
View 5 Replies
ADVERTISEMENT
Mar 2, 2010
Not long ago I lost all sound, but I got it back eventually-the system wasnt snesing my usb speakers.
Now its stopped recognising them again and I cant remember how I got it back before.
How do I find a list of USB devices?
View 7 Replies
View Related
Jul 15, 2011
I am using an virtual machine. where I need to ping from one machine to another. earlier I was able to ping. But after going to google.com once, I cannot ping back to this machine.
But if I gave ping -I eth1 <IP> then I can ping.
I cannot install any package, so tell me solution which includes not installing any package.
View 2 Replies
View Related
May 11, 2010
I get ubuntu 10.04 LTS installed on my PC and laptop , and I tried ubuntu one.It worked and I want to have a test, so I removed the two devices that already subscribed to my ubuntu one account, after that, I found I can't get them subscribed back.Everytime I start ubuntu one preference , I'll get the error message: got empty result for devices list.How can I add my two devices back to my ubuntu one account (I googled a lot and found that someone pointed that delete the ubuntu one's key will work, so if this is the right solution, how to delete it?
View 5 Replies
View Related
Sep 28, 2010
I would like to display hardware devices and their drivers in Debian. Sth similar to windows 'Device Manager' not necessarily must be in gui version. What kind of cmds I should use to be able to display hardware detected by HAL and their drivers ?
View 3 Replies
View Related
Mar 15, 2011
Is there any way to list all PCI devices apart from the obvious lspci command? In other words what is an alternative to lspci....
View 1 Replies
View Related
Mar 24, 2011
Here's what I a running dell n series Inspiron 910 ubuntu hardy heron the following codes read :
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC268 Analog [ALC268 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC268 Digital [ALC268 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
aplay -L
default:CARD=Intel
HDA Intel, ALC268 Analog
Default Audio Device
front:CARD=Intel,DEV=0
HDA Intel, ALC268 Analog
Front speakers
surround40:CARD=Intel,DEV=0
HDA Intel, ALC268 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
HDA Intel, ALC268 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
HDA Intel, ALC268 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
HDA Intel, ALC268 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
HDA Intel, ALC268 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
null
Discard all samples (playback) or generate zero samples (capture) .....
I've tried finding other drivers nothing came up.
View 1 Replies
View Related
May 7, 2011
Is there a terminal command or application to browse attached firewire devices in the likes of lspci and lsusb? I'd like to view elementary device information such as the ID, manufacturer, and the like.
View 1 Replies
View Related
May 21, 2011
I want to know that is there any command by which i can check which type of hardware devices are installed in my Linux box like SVGA,Sound Card,LAN Card.
View 4 Replies
View Related
Jul 20, 2010
I have been administering linux systems for years now, but usually they are commodity boxes and as a result I rarely have driver problems, short of needing to install some "restricted" or "proprietary" driver package, or manually installing the nvidia binary drivers back in the day. However, one question to which I have never picked up a straight answer regards common troubleshooting practice. Will lsusb and lspci list device for which a system has no drivers (kernel modules)? I am trying to install a webcam on a SiS-chipset laptop and though I can see a physical webcam, neither lsusb or lspci are showing me that any webcam-like device exists. What I want to know is if it would show anything, or if it needs drivers in order to show a device?
View 4 Replies
View Related
Jan 16, 2011
This is probably me looking but not seeing an option somewhere. I re-installed 10.10 over 10.04 by formatting the root partition but keeping the home partition the same, to save me a lot of work. (64 bit) However, now when I mount a CD, DVD or USB stick, they don't appear in Dophin's "Places" window. What have I missed please?
View 2 Replies
View Related
Nov 17, 2010
As the title says the machine name is not showing up in the attached devices list on my router. Is there a file where I need to add the name? Or is this an issue with the router? The router finds all the other machine names on the network except my 3 servers.
Ubuntu Server 10.04 Lts
Ubuntu Server 10.10 Lts
View 3 Replies
View Related
Feb 2, 2010
How would I list 4 users ID numbered 10, 11, 12 and 13 from my users list and output them to a file busers where their names are numbered by ascending order? How would I accomplish that on a one line command?
View 4 Replies
View Related
Feb 10, 2009
I am trying to get this script to work. The purpose is to download a list of modules from the slax.org the list consist of a list of module numbers. What I am trying to do is Download the file or the file name corresponding to the number in the list.the list is comma delimited. this is what I have done so far and I am a stand still.
#!/bin/sh
# Wget script to retrieve modules from slax.org modules
#
# ----Begin of user defined values -----
# Path to wget
[code].....
View 7 Replies
View Related
May 20, 2010
I have an old pentium 3 computer that has ~7 NICs installed. These NICs are attached to modems and other networking equipment. According to the linux ping page on computerhope.com, it seems that one could send a ping from a certain specified NIC. How would one go about this?
View 6 Replies
View Related
Nov 18, 2010
Is there any way to implement a simple ping script in C (unix)? I'm programming simple OpenWRT scripts.
I have found some examples of ping in C:
[URL]
However, nothing happens, nothing is sent.
When I look at the code, in the portion where the socket is created, I can see that the socket is not binding to any interface:
Code:
if ((sockfd = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP)) == -1)
{
perror("socket");
exit(EXIT_FAILURE);
}
setsockopt(sockfd, IPPROTO_IP, IP_HDRINCL, &optval, sizeof(int));
Instead, it uses "setsockopt" to set some options.
My guess is that it is trying to send packets over the eth0 interface instead over the wl0 (wireless) interface (which is the one I want to use to send pings).
Now, my question is: Is there any other way to send pings in C by binding to an interface?
View 1 Replies
View Related
Apr 19, 2010
Just i want to ask doubts in c programming. I dont know whether this is the right place to ask doubts in c. If this is not a correct place, may i know where can i get help for c programming?is there any active forum or mailing list for c programming?
View 6 Replies
View Related
Apr 26, 2011
I have a php scriptI want it to ping list of ips from a databse(using fping) and based on the status of the values to put them in a field(status) into the database(0 if down,1 if up)i executed tghe script and it gives me this error:Thread 1 - 17:51:01 26-04-2011 4.2.2.2 alive Couldn't execute query.I cant see what 's wrongthis is the source of the php script:
<?php
require_once("conf.php");
$connection1 = mysql_connect($h, $u, $p) or die("Couldn't connect.");
[code]....
View 1 Replies
View Related
Feb 16, 2010
I can't get exec ping to work on my system. wish is located in /usr/bin/wish8.4
Code:
#!/usr/bin/wish8.4
text .txt
set in [open "/root/hosts.txt" r]
while {[gets $in line] != -1} {
[Code]....
View 2 Replies
View Related
Sep 15, 2010
Now I am using ping command following
ping -I eth1 192.168.1.17
I want to add to shell script but I want type myself -I and eth1 when running the bash file.
View 9 Replies
View Related
May 16, 2010
I'm trying to build a custom setup that requires a flash drive and a CD to both be mounted to root. Applications, boot data, and other static directories are on the CD, while /home, /opt, and /tmp are on the flash drive. Is there a special option I can enter into fstab to allow this? If not, I intend to modify my kernel to allow this, but I'll need to find the sources that control this function.
View 4 Replies
View Related
Mar 4, 2010
I'm trying to do the following. from a php webpage click on a link, that opens a shell/cmd and runs an open ping to the device. so it must actually open a shell (for linux) or cmd (for windows) and run a ping to the specified ip. Currently i'm running an exec command, but for this i need to wait for the result to be fetched and print it out. I want to monitor it in realtime, by just clickingon the button. How to get this working?
View 1 Replies
View Related
Mar 23, 2010
I would like to make a script, where I specify my Cisco devices IP addresses as arguments to the script and then this script automatically logs into every one of them and does "show version" and "exit" in every Cisco device. I have public/private key authentication system with my Cisco devices- thats why I'm using ssh-agent and ssh-add. I did something like this:
Code:
#!/bin/bash
if [ -z $1 ]; then
echo USAGE:
echo "$0 IP1 IP2 IP3 IPn"
[code].......
However, it logs nicely into the first device(I'm able to execute IOS commands in this first Cisco device etc) and then does nothing further.
View 1 Replies
View Related
Jun 29, 2010
Is it possible to create threads in BASH? I need a script with will ping a network to find out unused IP. in a for or while loop the pinging process is taking a very long time. I was wondering if it is possible to send multiple ping on the same time so this will speed up the scanning process.
View 5 Replies
View Related
Jun 14, 2011
I am new to linux and am trying to write a script that will ping IP addresses and say either online or unavailable.
View 3 Replies
View Related
Jun 18, 2014
I want to disable mounting usb storage devices except some devices based on its vendor id. I tried by adding below udev rule in debian wheezy
Code: Select allACTION=="add", SUBSYSTEMS=="usb", RUN+="/bin/sh -c 'for host in /sys/bus/usb/devices/usb*; do echo 0 > $host/authorized_default; done'"
ACTION=="add", ATTR{idVendor}=="054c", RUN+="/bin/sh -c 'echo 1 >/sys$DEVPATH/authorized'"
But it disabled all usb devices(USB keyboard and mouse). How can I allow other devices except storage devices.
View 0 Replies
View Related
Aug 1, 2010
you have to read from many devices separate devices and make it look like a single one. It sounds very much like a device driver to me, perhaps... but getting my hands dirty with kernel code sounds like a daunting task for me that I've never done it...
View 2 Replies
View Related
Dec 16, 2010
Please let me know how i will overcome this.I have tried from the past 5 days.
[root@localhost ~]# cc p.cc
In file included from p.cc:1:
/root/ping.h:2:32: warning: multi-character character constant
In file included from p.cc:1:
/root/ping.h:4: error: stray in program
/root/ping.h:2: error: invalid function declaration
[Code]...
View 2 Replies
View Related
Dec 16, 2010
Split programming in ns2 marc greis chapter 7 ping protocol code. I tried compiling the above program and got the errors as in error.txt I have attached. Ping.cc and ping.h also are attached. I have supplied all the required header files along with appropriate paths and yet this problem.
ATTACH]5537[/ATTACH]
pingcc.txt
pingh.txt
View 3 Replies
View Related
Feb 23, 2011
This applies to my 2 opensuse PC's, my Windows PC is fine.I can ping a hostname, say "PC1" but I can not ping PC1.domain.local (even the host PC can not ping it's own FQDN). When I ping just the hostname the ping stats even list the FQDN.Onto the next issue, since all my PC's, have the domain prefix domain.local, my Synology can not. I can ping it's IP and that is it. I can resolve it's name with nmblookup just fine tho and that is what is killing me. How is this not resolving.Even weirder, I can browse to "Synology" in Network Servers under places on the slab.
View 3 Replies
View Related