Sponsored Content
Top Forums Web Development Tidal Stations - Top of the World Post 302890522 by vbe on Thursday 27th of February 2014 08:55:43 AM
Old 02-27-2014
Smilie
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

command to schedule a unix script in tidal' scheduler

hi i am needed to use tidal's scheduler to schedule unix scripts available on server A. while creating a job to be scheduled, it has an option called command which will take a path of the file. i have seen several examples in the following way e:\tidal\bin\sleep.exe here i did not understand two... (0 Replies)
Discussion started by: balireddy_77
0 Replies

2. Shell Programming and Scripting

Change Root Password For Multi Stations

I would like to change root password for 30 stations by script. The script will rlogin to each station and change the root password. (2 Replies)
Discussion started by: whatiwan2000
2 Replies

3. Web Development

Tidal Stations - Far East and Australasia

Just created this beta web app for Tidal Stations - Far East and Australasia: https://www.unix.com/members/1-albums112-picture628.png I plan to do the entire "world" soon. (0 Replies)
Discussion started by: Neo
0 Replies

4. Web Development

Tidal Stations - North America (East)

Tidal Stations - North America (East) https://www.unix.com/members/1-albums112-picture629.png (0 Replies)
Discussion started by: Neo
0 Replies

5. Web Development

Tidal Stations - North America (West Coast)

Tidal Stations - North America (West Coast) https://www.unix.com/members/1-albums112-picture631.png (0 Replies)
Discussion started by: Neo
0 Replies

6. Web Development

Tidal Stations - Europe and Africa

Tidal Stations - Europe and Africa https://www.unix.com/members/1-albums112-picture632.png (0 Replies)
Discussion started by: Neo
0 Replies

7. Web Development

Tidal Stations - South America

Tidal Stations - South America https://www.unix.com/members/1-albums112-picture633.png (0 Replies)
Discussion started by: Neo
0 Replies

8. Web Development

Tidal Stations - The Ocean Tropics

Tidal Stations - The Ocean Tropics For warm water lovers everywhere: https://www.unix.com/members/1-albums112-picture634.png (0 Replies)
Discussion started by: Neo
0 Replies

9. What is on Your Mind?

Mad World Remix of Moby Video (Are You Lost In The World Like Me)

This is an excellent video comment on modern society and the remix is good too: https://www.youtube.com/watch?v=5DU1B_XkyIk 5DU1B_XkyIk Watch the video above and post your comments. (3 Replies)
Discussion started by: Neo
3 Replies
Net::Subnets(3pm)					User Contributed Perl Documentation					 Net::Subnets(3pm)

NAME
Net::Subnets - Computing Subnets In Large Scale Networks SYNOPSIS
use Net::Subnets; my $sn = Net::Subnets->new; $sn->subnets(@subnets); if (my $subnetref = $sn->check($address)) { ... } my ($lowipref, highipref) = $sn->range($subnet); my $listref = $sn->list(($lowipref, $highipref)); DESCRIPTION
Very fast matches large lists of IP addresses against many CIDR subnets and calculates IP address ranges. This is a simple and efficient example for subnet matching: use Net::Subnets; my @subnets = qw(10.0.0.0/24 10.0.1.0/24); my @addresses = qw/10.0.0.1 10.0.1.2 10.0.3.1/; my $sn = Net::Subnets->new; $sn->subnets(@subnets); my $results; foreach my $address (@addresses) { if (my $subnetref = $sn->check($address)) { $results .= "$address: $$subnetref "; } else { $results .= "$address: not found "; } } print($results); This is a simple example for range calculation: use Net::Subnets; my @subnets = qw(10.0.0.0/24 10.0.1.0/24); my $sn = Net::Subnets->new; my $results; foreach my $subnet (@subnets) { my ($lowipref, $highipref) = $sn->range($subnet); $results .= "$subnet: $$lowipref - $$highipref "; } print( $results ); This is a simple example for list generation: use Net::Subnets; my $lowip = '192.168.0.1'; my $highip = '192.168.0.100'; my $sn = Net::Subnets->new; my $listref = $sn->list(($lowip, $highip)); foreach my $address (@$listref) { # do something cool } METHODS
"new" my $subnets = Net::Subnets->new; Creates an "Net::Subnets" object. "subnets" $subnets->subnets([qw(10.0.0.0/24 10.0.1.0/24)]); The C<subnets> method lets you prepare a list of CIDR subnets. "check" my $match = $subnets->check($address); The C<check> method lets you check an IP address against the previously prepared subnets. "range" my ($lowest, $highest) = $subnets->range($subnet) The C<range> method lets you calculate the IP address range of a subnet. "list" my $list = $subnets->list($lowest, $highest); The C<list> method lets you calculate a list containing all IP addresses in a given range. AUTHOR
Sebastian Riedel (sri@cpan.org), Juergen Peters (juergen.peters@taulmarill.de) COPYRIGHT AND LICENSE
Copyright (C) 2003-2009, Sebastian Riedel. This program is free software, you can redistribute it and/or modify it under the terms of the Artistic License version 2.0. perl v5.10.1 2009-12-18 Net::Subnets(3pm)
All times are GMT -4. The time now is 10:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy