Sponsored Content
Full Discussion: prtconf
Top Forums UNIX for Dummies Questions & Answers prtconf Post 302279151 by Nagapandi on Thursday 22nd of January 2009 03:55:58 AM
Old 01-22-2009
Thanks Mr. zaxxon.

Thanks,
NagaSmilie
 

4 More Discussions You Might Find Interesting

1. Solaris

equivalent prtdiag and prtconf command

I have a very old sunOS 4.xx server on a SPARCstation 5. What is the command , if any, that is similar to prtdiag and prtconf? Thanks (4 Replies)
Discussion started by: antalexi
4 Replies

2. AIX

prtconf command not working in Aix 5.3

put prtconf command,after show this error message: bash-3.00# prtconf /usr/sbin/prtconf: msize=msize + 12544^J12544: syntax error pleae help me...........waiting for replay by mohan.s Aix sysadmin (deleted email, rule violation) (2 Replies)
Discussion started by: smohan62
2 Replies

3. Linux

prtconf in Linux

Hello, i would like to know the alternate command in Linux for the below command used in Solaris. # prtconf -D | egrep 'pci,|network|ethernet|SUNW,qfe' pci, instance #0 (driver name: pcicmu) pci, instance #0 (driver name: px) pci, instance #0 (driver name: pxb_plx) ... (6 Replies)
Discussion started by: tsaravanan
6 Replies

4. AIX

Difference between lsconf & prtconf cmds on AIX

Friends, Could someone answer me on a silly question of mine: What's the difference between lsconf & prtconf commands of AIX? I find the o/p's of either of these commands to be same. Excuse me if I'm missing something, also I google-ed about it before turning down here for answer. ... (3 Replies)
Discussion started by: thisissouvik
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 09:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy