omshell(1) General Commands Manual omshell(1) (NAME) omshell - OMAPI (SYNOPSIS) omshell (DESCRIPTION) OMAPI omshell ISC DHCP (OMAPI) . OMAPI omshell DHCP . omshell OMAPI . OMAPI . omshell . OMAPI -- dhcpd(8) dhclient(8). (CONTRIBUTIONS) . ISC Vixie Enterprises . 3.0 Nominum, Inc . ISC . . (LOCAL AND REMOTE OBJECTS) . omshell new . : (leases) (hosts) DHCP . . . (OPENING A CONNECTION) omshell . omshell : server address address IP DHCP . 127.0.0.1 (localhost) . port number number OMAPI . 7911 . key name secret TSIG OMAPI . name dhcpd.conf omapi-key . secret dnssec-keygen . HMAC-MD5 . dhcpd.conf key-algorithm . key-algorithm algorithm OMAPI . algorithm : HMAC-MD5 HMAC-SHA1 HMAC-SHA224 HMAC-SHA256 HMAC-SHA384 HMAC-SHA512 HMAC-MD5 ( ). connect OMAPI server . (CREATING LOCAL OBJECTS) OMAPI / . OMAPI dhcpd(8) dhclient(8) . omshell . . : new object-type object-type group host lease . . lease new lease : set attribute-name = value Attribute dhcpd(8) dhclient(8) . . IP : set ip-address = 192.168.4.50 (ASSOCIATING LOCAL AND REMOTE OBJECTS) : open lease IP lease DHCP . DHCP omshell . (VIEWING A REMOTE OBJECT) 192.168.4.50 : new lease lease . set ip-address = 192.168.4.50 IP local 192.168.4.50 . open IP DHCP . . : > new "lease" obj: lease > set ip-address = 192.168.4.50 obj: lease ip-address = c0:a8:04:32 > open obj: lease ip-address = c0:a8:04:32 state = 00:00:00:02 dhcp-client-identifier = 01:00:10:a4:b2:36:2c client-hostname = "wendelina" subnet = 00:00:00:06 pool = 00:00:00:07 hardware-address = 00:10:a4:b2:36:2c hardware-type = 00:00:00:01 ends = dc:d9:0d:3b starts = 5c:9f:04:3b tstp = 00:00:00:00 tsfp = 00:00:00:00 cltt = 00:00:00:00 IP . (MODIFYING A REMOTE OBJECT) set update . set update . set client-hostname = something-else update : > set client-hostname = "something-else" obj: lease ip-address = c0:a8:04:32 state = 00:00:00:02 dhcp-client-identifier = 01:00:10:a4:b2:36:2c client-hostname = "something-else" subnet = 00:00:00:06 pool = 00:00:00:07 hardware-address = 00:10:a4:b2:36:2c hardware-type = 00:00:00:01 ends = dc:d9:0d:3b starts = 5c:9f:04:3b tstp = 00:00:00:00 tsfp = 00:00:00:00 cltt = 00:00:00:00 > update obj: lease ip-address = c0:a8:04:32 state = 00:00:00:02 dhcp-client-identifier = 01:00:10:a4:b2:36:2c client-hostname = "something-else" subnet = 00:00:00:06 pool = 00:00:00:07 hardware-address = 00:10:a4:b2:36:2c hardware-type = 00:00:00:01 ends = dc:d9:0d:3b starts = 5c:9f:04:3b tstp = 00:00:00:00 tsfp = 00:00:00:00 cltt = 00:00:00:00 (NEW REMOTE OBJECTS) . new : create DHCP . OMAPI dhcpd.leases . IP 192.168.4.40 : > new host obj: host > set name = "some-host" obj: host name = "some-host" > set hardware-address = 00:80:c7:84:b1:94 obj: host name = "some-host" hardware-address = 00:80:c7:84:b1:94 > set hardware-type = 1 obj: host name = "some-host" hardware-address = 00:80:c7:84:b1:94 hardware-type = 1 > set ip-address = 192.168.4.40 obj: host name = "some-host" hardware-address = 00:80:c7:84:b1:94 hardware-type = 1 ip-address = c0:a8:04:28 > create obj: host name = "some-host" hardware-address = 00:80:c7:84:b1:94 hardware-type = 00:00:00:01 ip-address = c0:a8:04:28 > dhcpd.leases : host some-host { dynamic; hardware ethernet 00:80:c7:84:b1:94; fixed-address 192.168.4.40; } dynamic; dhcpd.conf OMAPI . (RESETTING ATTRIBUTES) unset . update . "some-host" IP omshell : obj: host name = "some-host" hardware-address = 00:80:c7:84:b1:94 hardware-type = 00:00:00:01 ip-address = c0:a8:04:28 > unset ip-address obj: host name = "some-host" hardware-address = 00:80:c7:84:b1:94 hardware-type = 00:00:00:01 ip-address = > (REFRESHING OBJECTS) refresh . (leases) . . (DELETING OBJECTS) . open remove . "some- host" : obj: host name = "some-host" hardware-address = 00:80:c7:84:b1:94 hardware-type = 00:00:00:01 ip-address = c0:a8:04:28 > remove obj: > (HELP) help omshell () . (SEE ALSO) dhcpctl(3), omapi(3), dhcpd(8), dhclient(8), dhcpd.conf(5), dhclient.conf(5). (AUTHOR) omshell ISC . Internet Systems Consortium https://www.isc.org . omshell(1)