On Tue, 2 Sep 2003, Daniel Waldman wrote:

>                Bom Dia!
>
>     Estou utilizando o dhcpd na minha maquina. Porem, preciso que quando
> alguem fa�a uma solicita��o de renova��o de ip, ou para obter um ip o
> sistemas execute uma a��o. Por exemplo, quando alguem solicitar um IP o
> sistemas me envie um e-mail.
>     Estou conseguindo fazer esse processo com o script que fica comparando
> de tempo em tempo o dhcpd.leases. Porem, esta solu��o n�o � muito eficiente
> pois alem de ficar lendo um arquivo fica utilizando processamento
> desnecessario da maquina.
>     Alguem conhece alguma outra solu��o?

De uma olhada no man do dhcpd.conf, no topico
REFERENCE: EVENTS
       There are three kinds of events that can happen  regarding
       a  lease,  and  it  is possible to declare statements that
       occur when any of these events happen.   These events  are
       the commit event, when the server has made a commitment of
       a certain lease to a client, the release event,  when  the
       client  has  released  the server from its commitment, and
       the expiry event, when the commitment expires.

N�o tenho certeza se e isso funciona para executar programas externos ao
dhcpd.

                                                                  Paulino
_________________________________ ________________________________________
Paulino Kenji Sato               |    Sistema de Ensino Nobel
http://www.nobel.com.br          |    Maringa Pr                Brasil
---------------------------------------------------------------------------
Esta lista � patrocinada pela Conectiva S.A. Visite http://www.conectiva.com.br

Arquivo: http://bazar2.conectiva.com.br/mailman/listinfo/linux-br
Regras de utiliza��o da lista: http://linux-br.conectiva.com.br
FAQ: http://www.zago.eti.br/menu.html

Responder a