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
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@stemarie-aizenay.fr mailto:sfonteneau@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/saintemarieaizenayGoogle + https://plus.google.com/105273696200535069375LinkedIn https://fr.linkedin.com/in/simon-fonteneau-b13382b0Maps 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@stemarie-aizenay.fr mailto:sfonteneau@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/saintemarieaizenayGoogle + https://plus.google.com/105273696200535069375LinkedIn https://fr.linkedin.com/in/simon-fonteneau-b13382b0Maps https://goo.gl/maps/Jbyn8JUpumq
*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@stemarie-aizenay.fr mailto:sfonteneau@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/saintemarieaizenayGoogle + https://plus.google.com/105273696200535069375LinkedIn https://fr.linkedin.com/in/simon-fonteneau-b13382b0Maps 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@stemarie-aizenay.fr mailto:sfonteneau@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/saintemarieaizenayGoogle + https://plus.google.com/105273696200535069375LinkedIn https://fr.linkedin.com/in/simon-fonteneau-b13382b0Maps https://goo.gl/maps/Jbyn8JUpumq