I have a working parser now, having implemented the this_host() function.
It should be adapted to support ifconfig once a version of ifconfig is
generally available which is capable of reporting multiple IPs per
interface.
For now it is using the linux kernel networking program 'ip' to acquire
configured IP address, as well as the glibc program 'getent' to do
hostname resolution. These _should_ be availble on all linuxen. They
quite likely won't be avail on other Unices, but I don't think DRBD is
targeting them any time soon either.
The main point of this email was:
Thomas: Should I feed this work to you, or should I be playing with
CVS directly?
Alan: where do things stand with your script rewrites? Should I
start coding the ideas you presented previously, or are you busy with
that? Is such in CVS currently?
-josh
It should be adapted to support ifconfig once a version of ifconfig is
generally available which is capable of reporting multiple IPs per
interface.
For now it is using the linux kernel networking program 'ip' to acquire
configured IP address, as well as the glibc program 'getent' to do
hostname resolution. These _should_ be availble on all linuxen. They
quite likely won't be avail on other Unices, but I don't think DRBD is
targeting them any time soon either.
The main point of this email was:
Thomas: Should I feed this work to you, or should I be playing with
CVS directly?
Alan: where do things stand with your script rewrites? Should I
start coding the ideas you presented previously, or are you busy with
that? Is such in CVS currently?
-josh