11-29-2011
thanks DukeNuke2...
a question, how do you know it points to net2 or e10000g2 interface ?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi
I have a problem to start up my Solaris Ultra 5. When it boots up I get a strange clicking sound, sounds like the hard drive that is "thinking" very hard. On the screen I get these messages:
Boot device: Files and Args:
Please check cable and try again
Network link setup fail
Time out... (8 Replies)
Discussion started by: Orange
8 Replies
2. UNIX Desktop Questions & Answers
How do I check my system to see if the graphics are using hardware 3d suport or not. I have a TNT2 on RH 7.1 kernel 2.4.9-?(can't remember off top of my head)I'm running all the latest updates from RH. Also I now have a dvd drive and I am trying to find a player that will play all movies and not... (1 Reply)
Discussion started by: MaxCat
1 Replies
3. UNIX for Dummies Questions & Answers
Is it possible to use Perl to work with hardware? Or is it strictly for text processing. (1 Reply)
Discussion started by: Luftwaffe
1 Replies
4. Programming
Hello !
I have a friend , in one day he tell me this : some guy made a cool program in C , for some sort or hardware control . I say : wow !
Maybe someone , can give me an example , how can C control hardware so good ( as I hear ) , and maybe some cool information , where to learn the idea ,... (1 Reply)
Discussion started by: !_30
1 Replies
5. Solaris
Hi,
I'm looking to run Sun Solaris 8 or 9, but have been running windows :mad: .can anyone give me advice about the hardware needed for solaris and possably any software i may need, the type of model and where i may be able to buy these within the uk. :confused:
... (3 Replies)
Discussion started by: franz
3 Replies
6. Solaris
Can someone tell me what the following means? We have a v440 running Solaris 9. What do the patterns actually mean?
May 17 12:12:03 ibasdb02 cediag: Revision: 1.78 @ 2005/02/11 15:5
:29 UTC
May 17 12:12:03 ibasdb02 cediag: Analysed System: SunOS 5.9 with
UP 117171-17 (MPR active)
May 17... (5 Replies)
Discussion started by: hshapiro
5 Replies
7. AIX
Can someone help me with what I am guessing is a simple job for an AIX admin. However I am 100% HP-UX and not touched AIX before the start of this week.
I am trying to connect an IBM Blade (JS22) to our HP Enterprise Tape Library. I have done all the SAN zoning and this appears to be happy... (5 Replies)
Discussion started by: Andyp2704
5 Replies
8. Virtualization and Cloud Computing
Hello to all
In my organization we want to pass to move the systems to an virtualized environment, nevertheless, considering the absence of resources, the idea is to acquire the versers and that the department (I) do the facilities, tests, etc. Wearing out the possible minimal cost in... (1 Reply)
Discussion started by: aalvarez77
1 Replies
9. Solaris
Same version of Solaris etc. Moving to new hardware.
The application that runs on this server is easy enough to re-install but Im concerned about things like:-
1. Users/passwords/home directories
2. Cron jobs
3. Static routes
Is there ANY way to either export this sort of thing so that I... (6 Replies)
Discussion started by: psychocandy
6 Replies
10. Solaris
Hi Guys,
One of two disks in my solaris machine has failed, the name is disk0, this is SUN physical sparc machine
But I work remotely, so people working near that physical server are not that technical, so from OS command prompt can run some command to bink faulty disk at front panel of Server.... (9 Replies)
Discussion started by: manalisharmabe
9 Replies
LEARN ABOUT DEBIAN
paranoid::network::ipv4
Paranoid::Network::IPv4(3pm) User Contributed Perl Documentation Paranoid::Network::IPv4(3pm)
NAME
Paranoid::Network::IPv4 - IPv4-related functions
VERSION
$Id: IPv4.pm,v 0.1 2012/05/29 21:37:44 acorliss Exp $
SYNOPSIS
use Paranoid::Network::IPv4;
@net = ipv4NetConvert($netAddr);
$rv = ipv4NetIntersect($net1, $net2);
or
use Paranoid::Network::IPv4 qw(:all);
print "Valid IP address
" if $netAddr =~ /^@{[ IPV4REGEX ]}$/;
@net = ipv4NetConvert($netAddr);
$broadcast = $net[IPV4BRDCST];
DESCRIPTION
This module contains a few convenience functions for working with IPv4 addresses.
By default only the subroutines themselves are imported. Requesting :all will also import the constants as well.
SUBROUTINES
/METHODS
ipv4NetConvert
@net = ipv4NetConvert($netAddr);
This function takes an IPv4 network address in string format and converts it into an array containing the base network address, the
broadcast address, and the netmask, in integer format. The network address can have the netmask in either CIDR format or dotted quads.
In the case of a single IP address, the array with only have one element, that of the IP in integer format.
Passing any argument to this function that is not a string representation of an IP address (including undef values) will cause this
function to return an empty array.
ipv4NetIntersect
$rv = ipv4NetIntersect($net1, $net2);
This function tests whether an IP or subnet intersects with another IP or subnet. The return value is essentially boolean, but the true
value can vary to indicate which is a subset of the other:
-1: destination range encompasses target range
0: both ranges do not intersect at all
1: target range encompasses destination range
The function handles the same string formats as ipv4NetConvert, but will allow you to test single IPs in integer format as well.
CONSTANTS
These are only imported if explicity requested or with the :all tag.
MAXIPV4CIDR
Simply put: 32. This is the largest CIDR notation supported in IPv4.
IPV4REGEX
Regular expression: qr/(?:d{1,3}.){3}d{1,3}/sm
You can use this for validating IP addresses as such:
$ip =~ m#^@{[ IPV4REGEX ]}$#;
or to extract potential IPs from extraneous text:
(@ips) = ( $string =~ m#(@{[ IPV4REGEX ]})#gsm);
IPV4CIDRRGX
Regular expression:
qr#(@{[ IPV4REGEX ]})(?:/(d+|@{[ IPV4REGEX ]}))?#sm
By default this will extract an IP or CIDR notation network address:
($net, $mask) = ( $ip =~ m#^@{[ IPV4CIDRRGX ]}$# );
In the case of a simple IP address $mask will be undefined.
IPV4BASE
This is the ordinal index of the base network address as returned by ipv4NetConvert.
IPV4BRDCST
This is the ordinal index of the broadcast address as returned by ipv4NetConvert.
IPV4MASK
This is the ordinal index of the network mask as returned by ipv4NetConvert.
DEPENDENCIES
o Paranoid
o Paranoid::Network::Socket
BUGS AND LIMITATIONS
AUTHOR
Arthur Corliss (corliss@digitalmages.com)
LICENSE AND COPYRIGHT
This software is licensed under the same terms as Perl, itself. Please see http://dev.perl.org/licenses/ for more information.
(c) 2012, Arthur Corliss (corliss@digitalmages.com)
perl v5.14.2 2012-05-29 Paranoid::Network::IPv4(3pm)