Net::ISC::DHCPd::OMAPI::Host - OMAPI host class
Net::ISC::DHCPd::OMAPI::Actions. Net::ISC::DHCPd::OMAPI::Meta::Attribute.
use Net::ISC::DHCPd::OMAPI; $omapi = Net::ISC::DHCPd::OMAPI->new(...); $omapi->connect $host = $omapi->new_object("host", { $attr => $value }); $host->read; # retrieve server information $host->$attr($value); # update a value $host->write; # write to server
$self->dhcp_client_identifier(??); ?? = $self->dhcp_client_identifier;
The client identifier that the client used when it acquired the host. Not all clients send client identifiers, so this may be empty.
Actions: examine, lookup, modify.
$self->group(??); ?? = $self->group;
The named group associated with the host declaration, if there is one.
Actions: examine, modify.
$self->hardware_address($str); $str = $self->hardware_address;
The hardware address (chaddr) field sent by the client when it acquired its host.
$self->hardware_type($str); $str = $self->hardware_type;
The type of the network interface that the client reported when it acquired its host.
$self->ip_address($ip_addr_obj); $self->ip_address("127.0.0.1"); # standard ip $self->ip_address("22:33:aa:bb"); # hex $std_ip_str = $self->ip_address;
The IP address of the host.
$self->known($bool); $bool = $self->known;
$self->name($str); $str = $self->name;
The name of the host declaration. This name must be unique among all host declarations.
$self->statements("foo,bar"); $self->statements(\@statements); $str = $self->statements;
A list of statements in the format of the dhcpd.conf file that will be executed whenever a message from the client is being processed.
Actions: modify
Most of the documentation is taken from dhcpd(8).
dhcpd(8)
See Net::ISC::DHCPd.
To install Net::ISC::DHCPd, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::ISC::DHCPd
CPAN shell
perl -MCPAN -e shell install Net::ISC::DHCPd
For more information on module installation, please visit the detailed CPAN module installation guide.