[Wapt] wakeonlan
Fonteneau Simon
sfonteneau at stemarie-aizenay.fr
Wed Feb 24 18:50:49 CET 2016
*Bonjour**
**
**J'ai commencée a regarder comment modifier mon problème**
**
**J'ai compris que cela se passe dans waptserver.py dans la fonction
**def****trigger_wakeonlan**():**
*
/
//def trigger_wakeonlan()://
// try://
// uuid = request.args['uuid']//
// host_data = hosts().find_one({ "uuid":
uuid},fields={'uuid':1,'host':1,'computer_fqdn':1})//
////
// macs = host_data['host']['mac']//
// msg = u''//
// if macs://
// logger.info(_("Sending magic wakeonlan packets to {} for
machine {}").format(macs,host_data['host']['computer_fqdn']))//
// wakeonlan.wol.send_magic_packet(*macs)/
*J'ai vu également que le fichier wol.py est déjà capable de prendre en
charge l'argument ip_address pour résoudre mon soucis.:**
*
/def send_magic_packet(*macs, **kwargs)://
// """//
// Wakes the computer with the given mac address if wake on lan is//
// enabled on that host.//
//
// Keyword arguments://
// :arguments macs: One or more macaddresses of machines to wake.//
// :key ip_address: the ip address of the host to send the magic packet//
// to (default "255.255.255.255")//
// :key port: the port of the host to send the magic packet to//
// (default 9)//
//
// """/
*
**Je voudrais maintenant récupérer le champ broadcast dans dispo dans la
base de wapt.**
**
**J'ai donc essayée avec host_data['host']['networking']['broadcast']
Mais j'ai du mal a comprendre
Un petit coup de main ?
Simon
*
Le 24/02/2016 15:59, Fonteneau Simon a écrit :
> Pour ceux qui tomberai sur ce poste plus tard
> Le broadcast wakeonlan est défini ici
> /opt/wapt/lib/site-packages/wakeonlan/wol.py
>
> Merci
>
> Simon
>
> Collège Privé Ste Marie <https://www.stemarie-aizenay.fr>
>
> Fonteneau Simon / Administrateur Réseaux
> sfonteneau at stemarie-aizenay.fr
> <mailto:sfonteneau at stemarie-aizenay.fr>/ 0648761484
>
> Collège Privé Ste Marie
> Tel: 0251946200 / Fax: 0251946856
> 24 route de Nantes 85190 Aizenay
> https://www.stemarie-aizenay.fr
>
> Facebook <https://www.facebook.com/saintemarieaizenay>Google +
> <https://plus.google.com/105273696200535069375>LinkedIn
> <https://fr.linkedin.com/in/simon-fonteneau-b13382b0>Maps
> <https://goo.gl/maps/Jbyn8JUpumq>
>
>
>
>
>
> Le 24/02/2016 15:29, Fonteneau Simon a écrit :
>> Bonjour
>>
>> Je viens de tester le wakeonlan de wapt.
>> Si je ne me trompe pas le wakeonlan est envoyée a 255.255.255.255
>>
>> Chez moi le wakeonlan est derrière une gateway, et le serveur wapt
>> n'est pas dans le même vlan que mes clients
>>
>> Il me faut donc envoyer sur wakeonlan -i 172.21.255.255 BC:EE:7B:9E:51:E2
>> Au lieu de wakeonlan -i 255.255.255.255 BC:EE:7B:9E:51:E2
>>
>> Il y a t'il possibilités d'adaptée cela en lisant l'adresse ip et le
>> netmask du client ??
>>
>> Envoie a 255.255.255.255 et le au broadcast du dernier réseaux de la
>> dernière ip connue pour gérer les poste nomade.
>>
>> Merci Qu'en pensez vous
>>
>> Simon
>> --
>>
>> Collège Privé Ste Marie <https://www.stemarie-aizenay.fr>
>>
>> Fonteneau Simon / Administrateur Réseaux
>> sfonteneau at stemarie-aizenay.fr
>> <mailto:sfonteneau at stemarie-aizenay.fr>/ 0648761484
>>
>> Collège Privé Ste Marie
>> Tel: 0251946200 / Fax: 0251946856
>> 24 route de Nantes 85190 Aizenay
>> https://www.stemarie-aizenay.fr
>>
>> Facebook <https://www.facebook.com/saintemarieaizenay>Google +
>> <https://plus.google.com/105273696200535069375>LinkedIn
>> <https://fr.linkedin.com/in/simon-fonteneau-b13382b0>Maps
>> <https://goo.gl/maps/Jbyn8JUpumq>
>>
>>
>>
>>
>>
>
--
Collège Privé Ste Marie <https://www.stemarie-aizenay.fr>
Fonteneau Simon / Administrateur Réseaux
sfonteneau at stemarie-aizenay.fr <mailto:sfonteneau at stemarie-aizenay.fr>/
0648761484
Collège Privé Ste Marie
Tel: 0251946200 / Fax: 0251946856
24 route de Nantes 85190 Aizenay
https://www.stemarie-aizenay.fr
Facebook <https://www.facebook.com/saintemarieaizenay>Google +
<https://plus.google.com/105273696200535069375>LinkedIn
<https://fr.linkedin.com/in/simon-fonteneau-b13382b0>Maps
<https://goo.gl/maps/Jbyn8JUpumq>
-------------- section suivante --------------
Une pi�ce jointe HTML a �t� nettoy�e...
URL: <http://lists.tranquil.it/pipermail/wapt/attachments/20160224/a493772e/attachment-0001.html>
-------------- section suivante --------------
Une pi�ce jointe autre que texte a �t� nettoy�e...
Nom: non disponible
Type: image/png
Taille: 8867 octets
Desc: non disponible
URL: <http://lists.tranquil.it/pipermail/wapt/attachments/20160224/a493772e/attachment-0015.png>
-------------- section suivante --------------
Une pi�ce jointe autre que texte a �t� nettoy�e...
Nom: non disponible
Type: image/png
Taille: 956 octets
Desc: non disponible
URL: <http://lists.tranquil.it/pipermail/wapt/attachments/20160224/a493772e/attachment-0016.png>
-------------- section suivante --------------
Une pi�ce jointe autre que texte a �t� nettoy�e...
Nom: non disponible
Type: image/gif
Taille: 1097 octets
Desc: non disponible
URL: <http://lists.tranquil.it/pipermail/wapt/attachments/20160224/a493772e/attachment-0005.gif>
-------------- section suivante --------------
Une pi�ce jointe autre que texte a �t� nettoy�e...
Nom: non disponible
Type: image/png
Taille: 1527 octets
Desc: non disponible
URL: <http://lists.tranquil.it/pipermail/wapt/attachments/20160224/a493772e/attachment-0017.png>
-------------- section suivante --------------
Une pi�ce jointe autre que texte a �t� nettoy�e...
Nom: non disponible
Type: image/gif
Taille: 1097 octets
Desc: non disponible
URL: <http://lists.tranquil.it/pipermail/wapt/attachments/20160224/a493772e/attachment-0006.gif>
-------------- section suivante --------------
Une pi�ce jointe autre que texte a �t� nettoy�e...
Nom: non disponible
Type: image/png
Taille: 1141 octets
Desc: non disponible
URL: <http://lists.tranquil.it/pipermail/wapt/attachments/20160224/a493772e/attachment-0018.png>
-------------- section suivante --------------
Une pi�ce jointe autre que texte a �t� nettoy�e...
Nom: non disponible
Type: image/png
Taille: 2548 octets
Desc: non disponible
URL: <http://lists.tranquil.it/pipermail/wapt/attachments/20160224/a493772e/attachment-0019.png>
-------------- section suivante --------------
Une pi�ce jointe autre que texte a �t� nettoy�e...
Nom: non disponible
Type: image/png
Taille: 8867 octets
Desc: non disponible
URL: <http://lists.tranquil.it/pipermail/wapt/attachments/20160224/a493772e/attachment-0020.png>
-------------- section suivante --------------
Une pi�ce jointe autre que texte a �t� nettoy�e...
Nom: non disponible
Type: image/png
Taille: 956 octets
Desc: non disponible
URL: <http://lists.tranquil.it/pipermail/wapt/attachments/20160224/a493772e/attachment-0021.png>
-------------- section suivante --------------
Une pi�ce jointe autre que texte a �t� nettoy�e...
Nom: non disponible
Type: image/gif
Taille: 1097 octets
Desc: non disponible
URL: <http://lists.tranquil.it/pipermail/wapt/attachments/20160224/a493772e/attachment-0007.gif>
-------------- section suivante --------------
Une pi�ce jointe autre que texte a �t� nettoy�e...
Nom: non disponible
Type: image/png
Taille: 1527 octets
Desc: non disponible
URL: <http://lists.tranquil.it/pipermail/wapt/attachments/20160224/a493772e/attachment-0022.png>
-------------- section suivante --------------
Une pi�ce jointe autre que texte a �t� nettoy�e...
Nom: non disponible
Type: image/gif
Taille: 1097 octets
Desc: non disponible
URL: <http://lists.tranquil.it/pipermail/wapt/attachments/20160224/a493772e/attachment-0008.gif>
-------------- section suivante --------------
Une pi�ce jointe autre que texte a �t� nettoy�e...
Nom: non disponible
Type: image/png
Taille: 1141 octets
Desc: non disponible
URL: <http://lists.tranquil.it/pipermail/wapt/attachments/20160224/a493772e/attachment-0023.png>
-------------- section suivante --------------
Une pi�ce jointe autre que texte a �t� nettoy�e...
Nom: non disponible
Type: image/png
Taille: 2548 octets
Desc: non disponible
URL: <http://lists.tranquil.it/pipermail/wapt/attachments/20160224/a493772e/attachment-0024.png>
-------------- section suivante --------------
Une pi�ce jointe autre que texte a �t� nettoy�e...
Nom: stemarieaizenaysf.png
Type: image/png
Taille: 8867 octets
Desc: non disponible
URL: <http://lists.tranquil.it/pipermail/wapt/attachments/20160224/a493772e/attachment-0025.png>
-------------- section suivante --------------
Une pi�ce jointe autre que texte a �t� nettoy�e...
Nom: facebook.png
Type: image/png
Taille: 956 octets
Desc: non disponible
URL: <http://lists.tranquil.it/pipermail/wapt/attachments/20160224/a493772e/attachment-0026.png>
-------------- section suivante --------------
Une pi�ce jointe autre que texte a �t� nettoy�e...
Nom: spacer.gif
Type: image/gif
Taille: 1097 octets
Desc: non disponible
URL: <http://lists.tranquil.it/pipermail/wapt/attachments/20160224/a493772e/attachment-0009.gif>
-------------- section suivante --------------
Une pi�ce jointe autre que texte a �t� nettoy�e...
Nom: googleplus.png
Type: image/png
Taille: 1527 octets
Desc: non disponible
URL: <http://lists.tranquil.it/pipermail/wapt/attachments/20160224/a493772e/attachment-0027.png>
-------------- section suivante --------------
Une pi�ce jointe autre que texte a �t� nettoy�e...
Nom: linkedin.png
Type: image/png
Taille: 1141 octets
Desc: non disponible
URL: <http://lists.tranquil.it/pipermail/wapt/attachments/20160224/a493772e/attachment-0028.png>
-------------- section suivante --------------
Une pi�ce jointe autre que texte a �t� nettoy�e...
Nom: maps.png
Type: image/png
Taille: 2548 octets
Desc: non disponible
URL: <http://lists.tranquil.it/pipermail/wapt/attachments/20160224/a493772e/attachment-0029.png>
More information about the WAPT
mailing list