I have written perl ping program to ping list of IPs one by one and print the status.But each and every time it is showing the status as Pass for all IPs even though the IP is wrong.
multipleip.pl
ips.txt
But the same program is working fine for single IP.
Could you please let me know what went wrong with the multipleip.pl program
Regards,
John
---------- Post updated at 06:18 AM ---------- Previous update was at 05:23 AM ----------
trying my level best but not albe to solve this...Any help on this is much appreciated...
I have a multipath system with 2 physicals, a virtual and a failsafe. All network connectivity is working fine to and from all of the interfaces and the virtual. The one thing that is not working is 'ping -s'. From this machine, I cannot send and receive packets using ping -s. ping without the... (1 Reply)
Helo !
I set up a new server using FreeBSD 6.0-RELEASE. Everything is ok, until I try to connect it to the internet. After I set up the connection I try to ping yahoo.com and I don't get any reply. When I try to ping the gateway I get a lot of replyes for the same packet. It looks similar to this:... (2 Replies)
Hi
Can someone give me a shell script that can ping a range of IPs and return IPs which are not pingable.
Range for example say 192.168.0.1 to 192.168.0.50 and whichever are not pingable then return the IP.
Thanks for your help (3 Replies)
Hi,
I have this script in ksh, what it does is loop every ip in the nodes_nso and produced another variable up_nodes_nso of only ip's that are up.
nodes_nso=$(cat /var/tmp/nodes.txt)
echo "ICMP Tests:"
up_nodes_nso=""
for ip in ${nodes_nso} ; do
ping ${ip} 3 > /dev/null
if ; then
... (1 Reply)
I have 2 physical interfaces (bnx0 and bnx1) aggregated into aggr1. I need to assign second IP, and normally I know how to do it to physical interface (i.e. bnx0:1) however same trick (aggr1:1) is not working. Is there any way to do it? (0 Replies)
anyone ever seen this problem:
I can ping the server by IP address but I can't by hostname.
nslookup is working and dns query is ok.
# nslookup mwxnsb24
Server: 10.11.49.206
Address: 10.11.49.206#53
Name: mwxnsb24
Address: 10.10.58.175
# ping... (8 Replies)
hi guys
This is suse 11 sp1
I have a Server that has 4 NICs, I've created 2 bonds
bond0(eth0-eth1) - 10.10.10.2
bond1(eth2-eth3) - 10.10.10.3
Each bound goes to a Storage Device which is directly connected
so bond0 goes to Storage_Controller_1 and 2 like this
Server_bond0 <-------->... (2 Replies)
Hi Team
we have created a DNS server at RHEL6.2 environment in 10.20.203.x/24 network.
Everything is going well on linux client as nslookup, ping by host etc in entire subnet. We are getting problem in windows client as nslookup working as well but not ping. all the firewall is disabled and... (5 Replies)
Hi,
I have ip addresses from 192.168.0.1 to 192.168.0.10.
I have to ping those series of IP address in single command? Which command i can use? (2 Replies)
I am rather new to shell scripting and currently taking a linux course.
Im having some troubles writing a loop to curl multiple ips in mutiple access logs to the site ipinfo.io and push the output to a text file for easy viewing and removing duplicates.
So far i have these simple lines
cat... (1 Reply)
Discussion started by: kjcraig77
1 Replies
LEARN ABOUT DEBIAN
grepcidr
GREPCIDR(1) General Commands Manual GREPCIDR(1)NAME
grepcidr -- Filter IP addresses matching IPv4 CIDR/network specification
SYNOPSIS
grepcidr [-V] [-c] [-v] [-e pattern | -f file]
DESCRIPTION
This manual page documents briefly the grepcidr command.
This manual page was written for the Debian distribution because the original program does not have a manual page.
grepcidr can be used to filter a list of IP addresses against one or more Classless Inter-Domain Routing (CIDR) specifications, or arbi-
trary networks specified by an address range. As with grep, there are options to invert matching and load patterns from a file. grepcidr
is capable of comparing thousands or even millions of IPs to networks with little memory usage and in reasonable computation time.
OPTIONS -V Show software version
-c Display count of the matching lines, instead of showing the lines
-v Invert the sense of matching, to select non-matching IP addresses
-e Specify pattern(s) on command-line
-f Obtain CIDR and range pattern(s) from file
EXAMPLES
grepcidr -f ournetworks blocklist > abuse.log
Find our customers that show up in blocklists
grepcidr 127.0.0.0/8 iplog
Searches for any localnet IP addresses inside the iplog file
grepcidr "192.168.0.1-192.168.10.13" iplog
Searches for IPs matching indicated range in the iplog file
script | grepcidr -vf whitelist > blacklist
Create a blacklist, with whitelisted networks removed (inverse)
grepcidr -f list1 list2
Cross-reference two lists, outputs IPs common to both lists
AUTHOR
This manual page was written by Ryan Finnie ryan@finnie.org for the Debian system (but may be used by others). Permission is granted to
copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by
the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
GREPCIDR(1)