omshell and dhclient?

cisco at
Sat Jul 8 04:40:19 UTC 2006

I want to add following subnet defination in dhcpd.conf - Can we add using
OMAPI ? or any other utility . Final things - want to add/delete object (
subnet declaration host declaration ) from dhcpd.conf.

*subnet netmask {


  default-lease-time 86400;
  max-lease-time 86400;
  option routers;
  option ip-forwarding off;
  option broadcast-address;
  option subnet-mask;
   option domain-name-servers;
   option nntp-server;
   option netbios-name-servers;
 name is "laser-printer":
  host laser-printer {
      hardware ethernet 08:00:2b:4c:59:23;

 Above task is manual task and  if we want to automated this manual task
using some scripts. Please guide me . Like Cisco CNR has <nrcmd> utility is
import data from file for bulkcreation of subnets for dhcp server..Can do
somethig like Cisco CNR ?


 On 7/8/06, David W. Hankins <David_Hankins at> wrote:

> On Fri, Jul 07, 2006 at 09:59:32AM +0530, cisco wrote:
> > Can we Add/delete dhcp scope in dhcpd.conf using omshell or any other
> API or
> > utility if yes please guide.
> I don't understand the question.  What are you trying to acheive?
> --
> David W. Hankins        "If you don't do it right the first time,
> Software Engineer               you'll just have to do it again."
> Internet Systems Consortium, Inc.       -- Jack T. Hankins

More information about the dhcp-users mailing list