On Jan 17, 2007, at 7:06 PM, Cyrus Daboo wrote:
I still think using ifconfig is feasible. Just do it without the interface parameter. That will list all interfaces, their status, bound IP and MAC address. We can do a better job of parsing to pick the one bound to the IP we are interested in.
Sure.
However, it is possible for a server to be bound to more than one, so which MAC to use in that case? Probably have to try all of them in queries against the directory and see which records come back.
Yes.
The alternative of course is to hard code the OD record name for the server in the config and not rely on MAC at all.
I'm not sure what was up with that code - I do have C code that does exactly that in Mulberry.
I think we want to do the MAC address lookup, I just figured that there should be a way to do it in Python instead of with a separate process. It's not a big deal, just a clean up item. -wsv