Net::DHCP::WatchA class for monitoring a remote DHCPD server | |
Download |
Net::DHCP::Watch Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Evilio José del Río Silván
- Publisher web site:
- http://search.cpan.org/~ejdrs/
Net::DHCP::Watch Tags
Net::DHCP::Watch Description
A class for monitoring a remote DHCPD server Net::DHCP::Watch is a Perl module to help monitor remote DHCP servers. It opens an udp socket to send and receive responses to and from a DHCP server. It stores the last connection status information.This module serves to implement This module can help to write some simple code to implement a reliable DHCP service over complex or simple networks.SYNOPSIS use Net::DHCP::Watch; # server name my $Server = 'dhcpd.mydomain.com'; # this machine ip and ethernet address my $IP = '192.168.1.1'; my $Ether = '01:23:45:67:89:ab'; # Net::DHCP::Watch object my $dhcpw = new Net::DHCP::Watch({ server => $Server, client => $IP, ether => $Ether }); # Open network $dhcpw->watch(); # Get status my $stat = $dhcpw->status; # print results if ( $stat->{Bad} ) print $stat->{Time}, ": Remote DHCP on $Server unavailable (",$stat->{Bad},"). "; if ( $stat->{Ok} ) print $stat->{Time}, ": Remote DHCP on $Server online. "; Requirements: · Perl
Net::DHCP::Watch Related Software