10 More Discussions You Might Find Interesting
1. Solaris
Hello dears
how to assign IPv4 and IPv6 addresses with same interface on solaris 10 (1 Reply)
Discussion started by: ttashman
1 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I have created a bonding bond1 interface with 6 Eth , mode=4. Recently i have changed my old ipv6 to new one and tried to restart as well as reload network service. Post which i can see old as well as changed ipv6 in ifconfig command output. Below are few files and command output for your... (1 Reply)
Discussion started by: omkar.jadhav
1 Replies
3. Shell Programming and Scripting
Hi All,
I need to read values of 10 columns from oracle query and assign the same to 10 unix variables. The query will return only one record(row).
I tried to append all these columns using a delimiter(;) in the select query and assign the same to a single variable(V) in unix. I thought I... (3 Replies)
Discussion started by: hkrishnan91
3 Replies
4. UNIX for Dummies Questions & Answers
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)
Discussion started by: thomasraj87
2 Replies
5. Solaris
Hi
I am looking to set-up ISC DHCP to support ipv6, and to migrate my existing SUN DHCP ipv4 to ISC,
finding the ipv4 options for the SUN DHCP options was ok eg
TFTPsrvN = tftp-server-name
OptBootF = bootfile-name
However if I set up a DHCPv6 does anyone know what the equivalent... (1 Reply)
Discussion started by: eeisken
1 Replies
6. UNIX for Advanced & Expert Users
Hi
I am looking to set-up ISC DHCP to support ipv6, and to migrate my existing SUN DHCP ipv4 to ISC,
finding the ipv4 options for the SUN DHCP options was ok eg
TFTPsrvN = tftp-server-name
OptBootF = bootfile-name
However if I set up a DHCPv6 does anyone know what the equivalent... (0 Replies)
Discussion started by: eeisken
0 Replies
7. Shell Programming and Scripting
hi friends,
im new to scripting and am tiring out to valid an ip address if user inputs
9 : 003 : 0 : 0 : 100 : 256 ,i need to suppress all leading zeros and single zero
ie out put for the same should be
9 : 3 : : : 100 : 256 can any help using awk ,regular expression to split the string... (1 Reply)
Discussion started by: sandeepjeede
1 Replies
8. IP Networking
Hello all,
I have set up dhcpd on a linux box for serving subnets on multiple vlans configured on a Cisco 6500 with ip helper of the dhcp server. Servers get dhcp leases just fine, however, some machines lose their connection for reboot or what not and I can not get their lease back even though... (0 Replies)
Discussion started by: closedown
0 Replies
9. IP Networking
I have an OpenBSD 3.7 firewall with five network interfaces on it, one of which is connected to the Internet. I'd like to use the remaining four interfaces as a network switch for a single internal subnet. The main problem I have is that the DHCP daemon doesn't like multiple interfaces matching... (0 Replies)
Discussion started by: vertigo23
0 Replies
10. UNIX for Advanced & Expert Users
This is more a linux question.
I have pptp users logging in remotely, they dial in via a modem, my linux server has three modems attached, each modem is assigned an IP address. Each time a user trys to connect to a modem and it is in use, it acts like a rotary system and goes to the next modem.... (1 Reply)
Discussion started by: system77
1 Replies
Text::DHCPLeases(3pm) User Contributed Perl Documentation Text::DHCPLeases(3pm)
NAME
Text::DHCPLeases - Parse DHCP leases file from ISC dhcpd.
SYNOPSIS
use Text::DHCPLeases;
my $leases = Text::DHCPLeases->new("/etc/dhcpd.leases");
foreach my $obj ( $leases->get_objects ){
print $obj->name;
if ( $obj->binding_state eq 'active' ){
...
}
...
DESCRIPTION
This module provides an object-oriented interface to ISC DHCPD leases files. The goal is to objectify all declarations, as defined by the
ISC dhcpd package man pages.
This interface is useful for analyzing, reporting, converting lease files, or as a tool for other applications that need to import dhcpd
lease data structures.
CLASS METHODS
new - Class Constructor
Arguments:
Hash with the following keys:
file - Leases file path
Returns:
Text::DHCPLeases object
Examples:
Text::DHCPLeases->new(file=>"/etc/dhcpd.leases");
INSTANCE METHODS
get_objects - Get objects from leases file
Arguments:
Object attributes to match (optional)
Returns:
Array of Text::DHCPLeases::Lease objects,
or iterator depending on context.
Examples:
my $it = $leases->get_objects(ip_address=>'192.168.0.1');
while ( my $obj = $it->next ) ...
print - Print all lease objects contents as a formatted string
Arguments:
None
Returns:
Formatted String
Examples:
print $leases->print;
BUGS AND LIMITATIONS
Correct parsing of leases files depends on changes made to the format of said files by the authors of the ISC DHCPD package. This module
was tested against leases files generated by ISC DHCPD version 3.1.0. In addition, I do not have access to leases file with all possible
declarations and statements, so parsing could be broken in some circumstances. Patches are welcome.
No bugs have been reported.
Please report any bugs or feature requests to "bug-Text-DHCPleases@rt.cpan.org", or through the web interface at <http://rt.cpan.org>.
AUTHOR
Carlos Vicente <cvicente@cpan.org>
LICENCE AND COPYRIGHT
Copyright (c) 2007-2010, Carlos Vicente <cvicente@cpan.org>. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
DISCLAIMER OF WARRANTY
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT
WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND,
EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
perl v5.10.0 2009-08-12 Text::DHCPLeases(3pm)