Trigger action on link state change
Hi all, i was wondering if there is any ready-made method to trigger an action as soon as a link changes state. Along the lines of onifdown_em0=/run/this/script in rc.conf Background: Discussing physical data security with a client yesterday: The machine has to run 24/7. The filesystem is encrypted on boot, but this doesn't help a lot if anybody brings an AC generator to steal the machine *AND* the UPS. Best point in time to lock the machine I could think of was when somebody pulls the NIC cable. Regards, Michael ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Trigger action on link state change
El día Friday, June 15, 2012 a las 12:32:15PM +0200, Michael Ross escribió: Hi all, i was wondering if there is any ready-made method to trigger an action as soon as a link changes state. Along the lines of onifdown_em0=/run/this/script in rc.conf Hi, check the man pages of devd(8) and devd.conf(5) HIH matthias -- Matthias Apitz e g...@unixarea.de - w http://www.unixarea.de/ UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Trigger action on link state change
On 6/15/12 12:32 PM, Michael Ross wrote: Hi all, i was wondering if there is any ready-made method to trigger an action as soon as a link changes state. Along the lines of onifdown_em0=/run/this/script in rc.conf Background: Discussing physical data security with a client yesterday: The machine has to run 24/7. The filesystem is encrypted on boot, but this doesn't help a lot if anybody brings an AC generator to steal the machine *AND* the UPS. Best point in time to lock the machine I could think of was when somebody pulls the NIC cable. Regards, Michael Aside from Matthias' suggestion of devd, you may want to also look up ifstated. We actually use it in production to send nagios passive alerts on CARP status change and LAGG interface loss of fault tolerance. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org