Unix Technical Forum

can anyone suggest a more elegant solution to this?

This is a discussion on can anyone suggest a more elegant solution to this? within the DB2 forums, part of the Database Server Software category; --> Phew!!! many thanks toall of you that replied. I'll have a closer look when i get back to work ...


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 02-27-2008, 09:39 AM
alexs
 
Posts: n/a
Default Re: can anyone suggest a more elegant solution to this?

Phew!!!
many thanks toall of you that replied. I'll have a closer look when i
get back to work
What I've actually got is one table called IP_subnet that has all my
subnet details, e.g. def gateway, dns servers, subnet mask ip pool
address range, whether to generate dynamic dns entries in my dhcpd
config file etc and another one called ip_client where a subnet column
is a foreign key pointing to the IP_subnet table and another column is
the host component of the address.

The ip_client table holds things such client machine operating system,
use dhcp , generate a dns entry,owning user, registering user, date
created, date modified hostname , a foreign ptr to a table of dhcp
options associated with that host.and a few other things.

I did think of having 1 ip_client record for every ip address and a
boolean that indicated whether it was in use, but we've got a class b
network, and that's a lot of addresses :-))
BTW I'm using db2 V9.1 on a RH advanced server 4

--CELKO-- wrote:
> >> Perhaps you could store all 254 IP addess in the TABLE, and use a second COLUMN to denote if it is taken. <<

>
> Go one step further and have a DATE column that tells you when the IP
> addess was assigned and perhaps a column for the assginee.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 02-27-2008, 09:39 AM
Brian Tkatch
 
Posts: n/a
Default Re: can anyone suggest a more elegant solution to this?

alexs wrote:
> Phew!!!
> many thanks toall of you that replied. I'll have a closer look when i
> get back to work
> What I've actually got is one table called IP_subnet that has all my
> subnet details, e.g. def gateway, dns servers, subnet mask ip pool
> address range, whether to generate dynamic dns entries in my dhcpd
> config file etc and another one called ip_client where a subnet column
> is a foreign key pointing to the IP_subnet table and another column is
> the host component of the address.
>
> The ip_client table holds things such client machine operating system,
> use dhcp , generate a dns entry,owning user, registering user, date
> created, date modified hostname , a foreign ptr to a table of dhcp
> options associated with that host.and a few other things.
>
> I did think of having 1 ip_client record for every ip address and a
> boolean that indicated whether it was in use, but we've got a class b
> network, and that's a lot of addresses :-))


Not that much. A class B has 65k records. Truthfully, that's nothing
for a DB. If you had a Class A, then maybe you'd look at performance
issues.

B.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:30 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com