Programming :: Script With Will Ping A Network To Find Out Unused IP?
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
ADVERTISEMENT
Aug 26, 2010
Does any body have a script handy to detect unused disks on a Linux Server? I have a bunch of RHEL 4 and 5 Servers with a number of unused EMC disks hanging in there. I just want to make use of these disks or return these disks to the SAN Pool after confirming that they are unused.
View 2 Replies
View Related
Jul 25, 2011
I need to find myselfe unused IP address in some subnet.
How to determine that particular IP is ununsed in that subnet without asking network admin ?
View 5 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
Oct 12, 2010
I recently moved to a new machine, and I copied my entire home folder across. This included lots of hidden (starting with '.') folders, and in many cases they are config folders for packages which I have not installed on the new machine. They are taking up space, so I would like to delete them, but to go through manually and figure out which ones I need would be very laborious. Is there a way to find, and perhaps delete, config folders for packages that are not installed?
View 2 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
Aug 29, 2010
I just installed open Suse 11.3, and I cannot SSH my school. Upon further investigation I could not even ping any machines outside my local area network. Ironically I could nmap machines outside my local area network.
View 4 Replies
View Related
Jul 17, 2011
I installed openSUSE on one of my work system. The network port wasn't working when I was installing, but works fine now (checked in Windows). But for some reason, I am not able to configure the network. I used both Dynamic and Static IPs (both work fine in Windows) but still no go. I am using Yast Control Center for this purpose. I can't even ping the default gateway when I am using custom settings. When I use dynamic settings, it says Unreachable Network.
View 7 Replies
View Related
Feb 13, 2011
I'm new to SuSe and lateley I was trying to establish a Network, when some weired problems occured. I was able to establish the network and i have connection to the internet. The suse-machine is rechable by ping from all the other computers in the network. If I'm tryiing to ping the other computers from the suse-machine, nothing happens. The router responds without packet loss, but every other ping occurs in:
From 192.168.2.6: icmp_seq=2 Destination Host Unreachable
From 192.168.2.6: icmp_seq=3 Destination Host Unreachable
From 192.168.2.6: icmp_seq=4 Destination Host Unreachable
From 192.168.2.6: icmp_seq=5 Destination Host Unreachable
I've been searching for some ideas to solve this problem but couldn't find any.
View 1 Replies
View Related
Aug 8, 2010
I have 2 10.04 computers and one win 7 and one vista computer: The win computers can see each other and the ubuntu computers, but the ubuntu computers cannot see each other or the win machines. The ubuntu computers connect to the internet fine and can ping each other. I cannot find settings to correct.
View 3 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
Jan 11, 2010
how can I allow a non-root user to do ping?
View 6 Replies
View Related
Mar 14, 2010
i am doing a project in which i have to use xen to create virtualised environment.I have already done this.
now i am using the following setup
host os :- opensuse 11.1with ip 192.168.9.19 and with aliasing ip 192.16.9.14
guest os1:- opensuse 11.1 with ip 192.168.9.107
guest os2:- opensuse 11.1 with ip 192.16.9.13
[code]....
View 2 Replies
View Related
May 21, 2011
Basically i want the opensuse firewall to stop responding to pings-how do i do this?
View 2 Replies
View Related
Apr 30, 2011
I can ping the router, but I cannot ping anything outside of the network. The ping just sits there and eventually times out, no error message. I cannot download updates and it is the only box inside the network having any issues accessing the internet. I am running 10.10 server. I can get a list of packages on the update server, but not download them, it appears to be in an incoming issue. I'm using a motorola Netopia router in bridge mode with a netgear SRXN3205 as a router. Again every other system can download fine. I have tried running on one nic, no help dhcp, static again does nothing. I can pulls host [URL].. and I get
[code]...
It may be worth noting that I set the box up at home on a dlink router and it worked fine, however I am confused why it is the only system on the network having these issues every other box can ping just fine.
View 2 Replies
View Related
Jul 14, 2011
i have problem ubuntu server network! internet works but #cant ping [URL]... and outside ip?
View 9 Replies
View Related
Jan 28, 2009
cannot ping internal network
I am a new user to Linux but in the last couple of months gained some Idea about it,I am trying to set up a small network in my office having 3 windows xp PCs, two fedora10 PCsI have an adsl router with 4-port hub connecting to the internet, one switch (say sw1) and one linux PC (say linux1) is connected directly to the router, the three win xp PCs are connected to switch sw1.all the above is working fine, I am able to get connected to Internet In all the systems, and able to network among all the above four.Now I want to make the linux1 as a proxy server for, hence I added another network card into it connected it to another switch sw2, which is connected to another linux pc (say linux2).
I have tried a hundred things, and googled an equal no. and finally posting it here.In order to reduce confusion I have disabled DHCP in all machines, and given static ips insteadNetworkManager was not happy about it, hence to fix my static IP i disabled NetworkManager ('chkconfig NetworkManager off')
View 10 Replies
View Related
Aug 27, 2010
Is there a way to disable ping in the network instead ping of IP addresses must be hostname or a name.
View 1 Replies
View Related
Jun 10, 2011
Why my redhat can;t ping to other network( if ping to gateway is ok) and than i can use internet and resolve to dns. selinux status is disable and iptables is flush
View 2 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
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
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
Feb 1, 2010
The NetworkManager applet on my desktop states that my router is 192.168.2.1 and that my first DNS server is 192.168.2.1, but I cannot ping any hosts on my network using by name. All my other computers are windows so the naming is netbios naming, but I don't know if that makes any difference to DNS. I take it that because the other computers are windows that I need a wins client or something on my Fedora laptop. I would rather not fill out my hosts file because the IP addresses of the windows boxes may change.
View 2 Replies
View Related
May 27, 2010
I did a shields up test and it told me that 1056 ports were stealth but that my pc responded to ping and was visible on the net. How do i fix this?
View 4 Replies
View Related
Aug 11, 2010
I have a somewhat complicated network setup that I am testing on an internal network. I have the following route setup:
PC Client (192.168.2.100) --> Router (192.168.2.1) --> DSLAM (on our internal network) --> PPPOE Server (192.168.9.1) on Linux Ubuntu 8.04 on interface card eth2.
On the same Linux Ubuntu Machine on interface card eth1 (static IP 192.168.5.100), I have an Asterisk SIP server plugged into it. SIP Server = 192.168.5.101 (static) I need the PC client (192.168.2.100) to register via SIP soft phone to register on the SIP server (192.168.5.101). From the PC client I can ping as far as the eth1 interface (192.168.5.100)...but cannot ping the SIP Server (.101).
From the SIP server (192.156.5.101)...I can ping 192.168.5.100, I can ping 169.254.5.228 (Eth2:avahi), but not sure what that is. I cannot ping the pppoe default gateway (192.168.9.1), which I think you cannot anyway. No firewalls are running. My IPtables I cleaned out totally. I think it might be as simple as a route add, but I really have no clue. Tried building a virtual bridge using brctl LINUX betweeh eth1 and eth2, but that made things worse (could not ping anything after that)
Route table:
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.9.100 * 255.255.255.255 UH 0 0 0 ppp0
192.168.5.0 * 255.255.255.0 U 0 0 0 eth1
[code]...
View 1 Replies
View Related
Jan 11, 2011
I have ubuntu 10.4 running on both my desktop and laptop. Both machines are connected to the router in wireless mode with Wifi.I can access internet from both machines without any issues, however I cant ping one machine from another. (and vice versa)
View 4 Replies
View Related
Jul 6, 2011
I'm setting up an Ubuntu-based kiosk for my organization, and I can't seem to ping it by its hostname. The network is an Active Directory domain.
I tried editing /etc/dhcp3/dhclient.conf (I filled in the hostname where it said <hostname>), but no dice.
I also tried editing /etc/network/interfaces (the machine authenticates via DHCP but its network configuration is manually specified -- can't have users messing with NetworkManager):
Code:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
hostname <the computer's hostname here>
Finally, I tried joining it to the domain using likewise-open, and while it shows up in Active Directory, I still can't ping it.
View 9 Replies
View Related
Jan 8, 2011
I have set up a MythBox on Debian Lenny. I have a wireless connection using a Belkin USB WiFi Device. I am using ndiswrapper, wpa_supplicant, etc. I am using a static ip address. I have internet access without problems. However, if I try to ssh in or even ping my mythbox inside my network there is no connection. I have never had to do anything special to ssh into debian in my network before. I am confused that I have an internet connection but can't get a ping reply.
View 1 Replies
View Related
Mar 7, 2011
I have two linux servers, I tried to ping from one linux box to another and vice versa but error message is "connect: Network is unreachable" Where as If I tried from windows machine I am getting the reply from both the servers.
C:Documents and Settings>ping bnkprod
Pinging bnkprod.softtech.com [172.20.40.141] with 32 bytes of data:
Reply from 172.20.40.141: bytes=32 time=16ms TTL=64
Reply from 172.20.40.141: bytes=32 time<1ms TTL=64
Reply from 172.20.40.141: bytes=32 time<1ms TTL=64
Reply from 172.20.40.141: bytes=32 time<1ms TTL=64
Ping statistics for 172.20.40.141:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 16ms, Average = 4ms
View 2 Replies
View Related