omshell: querying host info via ip address

Will Green inbox at flux.org.uk
Sun Mar 4 14:45:18 UTC 2012


Hello,

I'm trying to manage DHCP entries with omshell, but have hit a
problem. I am using CentOS 6.2 with isc-dhcpd-4.1.1-P1.

My leases file contains one entry:

host foo {
  dynamic;
  hardware ethernet 08:00:27:2b:fc:e1;
  fixed-address 172.16.1.99;
}

When I try to query the server about host records I can only find the
host by name or hardware-address, attempts to look it up via IP
address fail. What am I missing? omshell output below shows what
happens:

$ omshell
> key (hidden in email)
> connect
obj: <null>
> new host
obj: host
> set name = "foo"
obj: host
name = "foo"
> open
obj: host
name = "foo"
ip-address = ac:10:01:63
hardware-address = 08:00:27:2b:fc:e1
hardware-type = 00:00:00:01
> close
obj: <null>
> new host
obj: host
> set hardware-address = 08:00:27:2b:fc:e1
obj: host
hardware-address = 08:00:27:2b:fc:e1
> open
obj: host
hardware-address = 08:00:27:2b:fc:e1
ip-address = ac:10:01:63
name = "foo"
hardware-type = 00:00:00:01
> close
obj: <null>
> new host
obj: host
> set ip-address = 172.16.1.99
obj: host
ip-address = ac:10:01:63
> open
can't open object: not found
obj: host
ip-address = ac:10:01:63

TIA,
Will


More information about the dhcp-users mailing list