From: Clark, Bobby (Bobby.Clark@eku.edu)
Date: Tue Aug 27 2002 - 09:28:16 CDT
You will want to create a host entry and set the macaddress. It is then
a "known" object.
The example below will create a host entry using omshell.
usage: createhost.pl hostname macaddress [ipaddress]
------------------------------------------------------------------------
-- #!/usr/bin/perl $name = @ARGV[0]; $mac = @ARGV[1]; $ipaddress = @ARGV[2];if($name && $mac) { open(OMSHELL, "|omshell") || die("Could not open omshell\n"); print OMSHELL "connect\n"; print OMSHELL "new host\n"; print OMSHELL "set name = \"$name\"\n"; print OMSHELL "set hardware-address = $mac\n"; print OMSHELL "set hardware-type = 1\n"; if ($ipaddress) { print OMSHELL "set ip-address = $ipaddress\n"; } print OMSHELL "create\n"; close(OMSHELL) || die("Could not close omshell\n"); } else { print "missing arguments\n"; exit(1); } ------------------------------------------------------------------------ --
-----Original Message----- From: King, Michael [mailto:MKing@bridgew.edu] Sent: Tuesday, August 27, 2002 9:49 AM To: 'netreg@southwestern.edu' Subject: RE: NetReg: is anyone using OMAPI ?
I'm just wondering if you create a dynamic lease entry, is it considered a known object at that point? I.E., the host entry in the dhcpd.conf file.
-----Original Message----- From: Bekim Shala [mailto:bshala@gmu.edu] Sent: Tuesday, August 27, 2002 9:31 AM To: netreg@southwestern.edu Subject: Re: NetReg: is anyone using OMAPI ?
Mike Clarify this point a bit.
Does your question differ from the 'core' idea behind netreg, that is
you have a short un-routable leases pool and will receive such as long as the MAC is not registered (i.e. there is a host 'jdoe' with hardware-address entry in the dhcp server) If it does not then Omapi does exactly the same just with avoidance of
restarting dhcp server and of course potential side-effects like performace, reliability,network delay if multi-tiered app, another point of failure etc etc. Regards, Bekim
Michael King wrote:
>I think an important question would be Can Dynamic Leases be placed >into a Pool? Since it's via pools that we are denying them addresses >to begin with. > >Mike > >---- >
********************************************************************** To unsubscribe from this list, send an e-mail message to majordomo@southwestern.edu containing a single line with the words: unsubscribe netreg Send requests for assistance to: owner-netreg@southwestern.edu ********************************************************************** ********************************************************************** To unsubscribe from this list, send an e-mail message to majordomo@southwestern.edu containing a single line with the words: unsubscribe netreg Send requests for assistance to: owner-netreg@southwestern.edu ********************************************************************** ********************************************************************** To unsubscribe from this list, send an e-mail message to majordomo@southwestern.edu containing a single line with the words: unsubscribe netreg Send requests for assistance to: owner-netreg@southwestern.edu **********************************************************************
This archive was generated by hypermail 2.1.4 : Thu Aug 12 2004 - 12:01:37 CDT