Net::ISC::DHCPd::OMAPI::Host - OMAPI host class
the Net::ISC::DHCPd::OMAPI::Actions manpage. the Net::ISC::DHCPd::OMAPI::Meta::Attribute manpage.
use Net::ISC::DHCPd::OMAPI;
$omapi = Net::ISC::DHCPd::OMAPI->new(...); $omapi->connect $host = $omapi->new_object("host", { $attr => $value }); $host->$attr($value); # same as in constructor $host->read; # retrieve server information $host->set($attr => $value); # alter an update attr $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.
Actions: examine, lookup, modify.
$self->hardware_type($str); $str = $self->hardware_type;
The type of the network interface that the client reported when it acquired its host.
Actions: examine, lookup, modify.
$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.
Actions: examine, modify.
$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.
Actions: examine, lookup, modify.
$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)
.