[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
FREESCO Support • View topic - Dchp Solicidado -> Ejecutar Comando ¿como?

Dchp Solicidado -> Ejecutar Comando ¿como?

Postby jbmbhs » Thu Mar 19, 2009 7:15 am

Buenas

Ando buscando la forma de ejecutar un comando ( wol ) para iniciar un servidor NAS de tal forma que cuando un ordenador pida IP al dhcpd, este envíe un magicpacket al NAS y este arranque.

Mi objetivo es que el ordenador que corre freesco sea el único 24/7 y el NAS ya le he puesto un script via cron para que cada media hora haga ping al rango de ip's permitidas y si no contesta nadie, que se apague. Ahora falta que arranque.

He leído que puedo hacerlo mediante cron y grep pero también he leído que al leer el log del disco, puede que no llegue a 'ver' el DHCP OFFER hasta pasados unos minutos.

¿No hay forma de detectar ese evento antes? ¿O que dhcpd lance un comando?

Gracias y un saludo
Juan Belmonte
Regards<br>Juan Belmonte<br>______________________________________________________<br>Freesco 0.4.2 running an iP2 350MHz 128Mb RAM booting from 2Gb CF card as /dev/hda<br>WAN => DEC DC21142 - LAN1 & LAN2 => 2x 3Com 3C905B
User avatar
jbmbhs
Newbie
 
Posts: 17
Joined: Mon Aug 16, 2004 11:54 am

Postby Lightning » Thu Mar 19, 2009 10:16 pm

If you are afraid that you might make a mistake. The chances are high that you will never learn anything.
User avatar
Lightning
FREESCO GOD !!
 
Posts: 12081
Joined: Wed Nov 14, 2001 6:50 am
Location: Oregon, USA

Postby Hitio » Fri Mar 20, 2009 2:31 am

Freesco Box 0.4.3-14 (Beta), Pentium 1 HP Vectra, 64 Mb RAM, FD, HD 4 Gb (Freesco HD Install Ext2) Eth Realtek 8139 (3), Packages: apache_1.3.27_dingetje, mysql-4.1.7-lightning, mc-4.6.0-lightning, PhpMyadmin, Webmin, etc. - My web site:
User avatar
Hitio
Junior Advanced Member
 
Posts: 105
Joined: Tue May 13, 2008 4:50 pm
Location: España

Postby jbmbhs » Fri Mar 20, 2009 5:09 am

Gracias por las respuestas.

Mi propuesta; El servidor dhcp genera un pitido cuando presta una ip.

¿lo genera el propio dhcpd o es mediante un script?

Si fuera mediante script ¿no lo podría usar para lanzar el wol?
(instalando previamente el paquete wakeonlan, obviamente)

No quiero generar más trabajo al equipo. Prefiero que encuentren el fallo que me obliga a entrar por ssh y ejecutar rc_control restart

Gracias

Thank you for the answers.

My proposal. Freesco beeps when dhcp server sends an DHCP OFFER.
What method uses, dhcpd option itself or by an external script?
If it's using script, Can I tweak to run wol command in the same script?

I don't want to add more work to be done by the dev. team. I prefer they catch the bug that force me to log in via ssh and run rc_control restart

Thanks
Regards<br>Juan Belmonte<br>______________________________________________________<br>Freesco 0.4.2 running an iP2 350MHz 128Mb RAM booting from 2Gb CF card as /dev/hda<br>WAN => DEC DC21142 - LAN1 & LAN2 => 2x 3Com 3C905B
User avatar
jbmbhs
Newbie
 
Posts: 17
Joined: Mon Aug 16, 2004 11:54 am

Postby Lightning » Fri Mar 20, 2009 9:35 pm

If you are afraid that you might make a mistake. The chances are high that you will never learn anything.
User avatar
Lightning
FREESCO GOD !!
 
Posts: 12081
Joined: Wed Nov 14, 2001 6:50 am
Location: Oregon, USA

Postby jbmbhs » Sat Mar 21, 2009 4:26 pm

Regards<br>Juan Belmonte<br>______________________________________________________<br>Freesco 0.4.2 running an iP2 350MHz 128Mb RAM booting from 2Gb CF card as /dev/hda<br>WAN => DEC DC21142 - LAN1 & LAN2 => 2x 3Com 3C905B
User avatar
jbmbhs
Newbie
 
Posts: 17
Joined: Mon Aug 16, 2004 11:54 am


Return to Español - Castellano - Spanish

Who is online

Users browsing this forum: No registered users and 1 guest