From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f9ba4,925dd9ef5b137971 X-Google-Attributes: gidf9ba4,public X-Google-Thread: f678f,925dd9ef5b137971 X-Google-Attributes: gidf678f,public From: ruddock@cc.bellcore.com (David Ruddock) Subject: Re: IP changes on a DCE client machine Date: 1997/01/27 Message-ID: <5cium1$iql@athos.cc.bellcore.com>#1/1 X-Deja-AN: 212571895 sender: ruddock@defiant (David Ruddock) references: <32E8F368.685F@uswest.com> to: "Jeffrey L. DeMent" organization: Bell Communications Research newsgroups: comp.soft-sys.dce,comp.unix.osf.misc In article <32E8F368.685F@uswest.com>, "Jeffrey L. DeMent" writes: |> In my DCE cell, one of my application servers and a DCE client got |> a new IP yesterday. All the server application CDS entries not have |> two binding entries (one for the old IP, one for the new). |> |> Will someone please validate these assumptions: |> |> - CDS will return either the old or new IP first randomly. |> (let say the application does a straightforward request to CDS |> for all binding handles for the interface) |> |> - The stale bindings in CDS (with the old IP) will just stay there |> forever and I as cell_admin will have to do out there manually |> and remove them one by one. HP's cdsbrowser makes this a little |> easier but it's still a manual, 1-by-1 effort. |> |> Thanks. |> Jeff - To the best of my knowledge, these two facts are true. There are at least, IMHO, two major issues with CDS: 1) You can't always count on the cache being up to date. This is especially true during initial application deployment when the servers are constantly coming up and down. (Believe me I've lived through this for 2 applications) 2) Eventually, as you point out, CDS becomes a mix of valid and bogus information. To solve this problem I have created my own library routine that: 1) creates an import context 2) "enhances" the context with a call to rpc_ns_mgmt_handle_set_exp_age to bypass the cache (second parameter set to 0). 3) imports all (within reason) binding handles for a given CDS entry. 4) create a thread for each binding handle that issues a rpc_mgmt_is_server_listening call to see if the server is active. 5) returns the binding handle of the first server that says it is up back to the caller. This procedure avoids the above problems with CDS and is usually faster than serial testing each binding handle returned by CDS. Dave Ruddock