BOnjour
Je cherche a faire quelque chose comme ceci:
filecopyto(makepath('sys32','*'),os.path.join(system32()))
Mais il semblerai que je fasse une erreur dans la syntax?
Un petit coup de main ?
Simon
--
filecopyto ne gère la copie que d'un fichier à la fois, pas avec les wildcards.
def install(): import glob for fn in glob.glob('sys32/*'): filecopyto(fn,system32())
attention, par défaut, les redirections 32 bits sont activées. Sur une machine 64 bits, cette instruction copiera dans C:\Windows\SysWOW64
Sinon il faut écrire :
def install(): import glob with disable_file_system_redirection(): for fn in glob.glob('sys32/*'): filecopyto(fn,system32())
Le 06/07/2015 11:57, Simon Fonteneau a écrit :
BOnjour
Je cherche a faire quelque chose comme ceci:
filecopyto(makepath('sys32','*'),os.path.join(system32()))
Mais il semblerai que je fasse une erreur dans la syntax?
Un petit coup de main ?
Simon
--
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
Super merci cela fonctionne !
Simon
Le 06/07/2015 12:04, Hubert TOUVET a écrit :
filecopyto ne gère la copie que d'un fichier à la fois, pas avec les wildcards.
def install(): import glob for fn in glob.glob('sys32/*'): filecopyto(fn,system32())
attention, par défaut, les redirections 32 bits sont activées. Sur une machine 64 bits, cette instruction copiera dans C:\Windows\SysWOW64
Sinon il faut écrire :
def install(): import glob with disable_file_system_redirection(): for fn in glob.glob('sys32/*'): filecopyto(fn,system32())
Le 06/07/2015 11:57, Simon Fonteneau a écrit :
BOnjour
Je cherche a faire quelque chose comme ceci:
filecopyto(makepath('sys32','*'),os.path.join(system32()))
Mais il semblerai que je fasse une erreur dans la syntax?
Un petit coup de main ?
Simon
--
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
Bonjourà tous
Je cherche un exemple d'utilisation de la fonction
*get_domain_fromregistry()*
du genre si get_domain_fromregistry() = 'mondomaine.priv' blablabla
Cordialement, Olivier LE GRAND
C'est mieux avec un nouveau Sujet ;-) Olivier LE GRAND
Le 07/07/2015 09:26, Olivier Le GRAND a écrit :
Bonjourà tous
Je cherche un exemple d'utilisation de la fonction *get_domain_fromregistry()* du genre si get_domain_fromregistry() = 'mondomaine.priv' blablabla
Cordialement, Olivier LE GRAND -- *Olivier LE GRAND | Administrateur réseaux* *Groupe Sacré Cœur* 2 rue Millet BP 90129 49101 ANGERS Cedex 02 Tél : 0241814206 olegrand@gsc49.com mailto:olegrand@gsc49.com
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
Je viens de remarquer que quand on renomme un poste, celui çi perd l'affection au groupe de paquet. Il faut affilié à nouveau le groupe de paquet à la machine... pas très pratique et source d'oubli. Connaissez vous le problème et envisager vous une solution ?
Cordialement.
----- Mail original -----
De: "Hubert TOUVET" htouvet@tranquil.it À: wapt@lists.tranquil.it Envoyé: Lundi 6 Juillet 2015 12:04:57 Objet: Re: [Wapt] Syntax filescopyto
filecopyto ne gère la copie que d'un fichier à la fois, pas avec les wildcards.
def install(): import glob for fn in glob.glob('sys32/*'): filecopyto(fn,system32())
attention, par défaut, les redirections 32 bits sont activées. Sur une machine 64 bits, cette instruction copiera dans C:\Windows\SysWOW64
Sinon il faut écrire :
def install(): import glob with disable_file_system_redirection(): for fn in glob.glob('sys32/*'): filecopyto(fn,system32())
Le 06/07/2015 11:57, Simon Fonteneau a écrit :
BOnjour
Je cherche a faire quelque chose comme ceci:
filecopyto(makepath('sys32','*'),os.path.join(system32()))
Mais il semblerai que je fasse une erreur dans la syntax?
Un petit coup de main ?
Simon
C'est une conséquence logique du mode de fonctionnement de Wapt à base de paquets. Un poste connait les paquets logiciel et autres paquets "groupes" à installer en téléchargeant un paquet nommé exactement comme son nom FQDN (nom de machine avec domaine). Si son nom change, il tentera de charger un paquet avec son nouveau nom pour connaître sa "configuration".
Une solution (à développer) serait d'utiliser le UUID du poste (lu dans le BIOS) et non son FQDN comme nom de paquet machine.
Hubert
Le 07/07/2015 11:22, Didier Paulin a écrit :
Je viens de remarquer que quand on renomme un poste, celui çi perd l'affection au groupe de paquet. Il faut affilié à nouveau le groupe de paquet à la machine... pas très pratique et source d'oubli. Connaissez vous le problème et envisager vous une solution ?
Cordialement.
Merci pour l'explication. Utilisateurs Wapt réguliers, ce problème ne vous gène pas trop ? Sur une équipe de plusieurs techniciens, on peux vite se retrouver avec beaucoup de postes non à jour...
Cordialement.
----- Mail original -----
De: "Hubert TOUVET" htouvet@tranquil.it À: wapt@lists.tranquil.it Envoyé: Mardi 7 Juillet 2015 11:32:09 Objet: Re: [Wapt] Bug affiliation paquet suite renommage poste
C'est une conséquence logique du mode de fonctionnement de Wapt à base de paquets. Un poste connait les paquets logiciel et autres paquets "groupes" à installer en téléchargeant un paquet nommé exactement comme son nom FQDN (nom de machine avec domaine). Si son nom change, il tentera de charger un paquet avec son nouveau nom pour connaître sa "configuration".
Une solution (à développer) serait d'utiliser le UUID du poste (lu dans le BIOS) et non son FQDN comme nom de paquet machine.
Hubert
Le 07/07/2015 11:22, Didier Paulin a écrit :
Je viens de remarquer que quand on renomme un poste, celui çi perd l'affection au groupe de paquet. Il faut affilié à nouveau le groupe de paquet à la machine... pas très pratique et source d'oubli. Connaissez vous le problème et envisager vous une solution ?
Cordialement.
_______________________________________________ WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
Une idée : Serait-il possible de rajouter dans une future version la possibilité d'afficher les groupes sans paquet ? (actuellement on affiche les postes affiliés à un paquet ou "tous" mais pas "sans". On retrouverai facilement les postes orphelin.
Cordialement.
----- Mail original -----
De: "Didier Paulin" didier.paulin@lepuyenvelay.fr À: wapt@lists.tranquil.it Envoyé: Mardi 7 Juillet 2015 11:56:42 Objet: Re: [Wapt] Bug affiliation paquet suite renommage poste
Merci pour l'explication. Utilisateurs Wapt réguliers, ce problème ne vous gène pas trop ? Sur une équipe de plusieurs techniciens, on peux vite se retrouver avec beaucoup de postes non à jour...
Cordialement.
----- Mail original -----
De: "Hubert TOUVET" htouvet@tranquil.it À: wapt@lists.tranquil.it Envoyé: Mardi 7 Juillet 2015 11:32:09 Objet: Re: [Wapt] Bug affiliation paquet suite renommage poste
C'est une conséquence logique du mode de fonctionnement de Wapt à base de paquets. Un poste connait les paquets logiciel et autres paquets "groupes" à installer en téléchargeant un paquet nommé exactement comme son nom FQDN (nom de machine avec domaine). Si son nom change, il tentera de charger un paquet avec son nouveau nom pour connaître sa "configuration".
Une solution (à développer) serait d'utiliser le UUID du poste (lu dans le BIOS) et non son FQDN comme nom de paquet machine.
Hubert
Le 07/07/2015 11:22, Didier Paulin a écrit :
Je viens de remarquer que quand on renomme un poste, celui çi perd l'affection au groupe de paquet. Il faut affilié à nouveau le groupe de paquet à la machine... pas très pratique et source d'oubli. Connaissez vous le problème et envisager vous une solution ?
Cordialement.
_______________________________________________ WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
_______________________________________________ WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
Un contournement pour l'instant : trier la liste des machines sur la colonne "Groups" (peut-être faut-il faire apparaître la colonne par un clic droit sur les entêtes, et cocher l'entrée "Groups (depends)") en premier vont apparaître tous les postes sans groupe...
Le 07/07/2015 12:05, Didier Paulin a écrit :
Une idée : Serait-il possible de rajouter dans une future version la possibilité d'afficher les groupes sans paquet ? (actuellement on affiche les postes affiliés à un paquet ou "tous" mais pas "sans". On retrouverai facilement les postes orphelin.
Cordialement.
*De: *"Didier Paulin" didier.paulin@lepuyenvelay.fr *À: *wapt@lists.tranquil.it *Envoyé: *Mardi 7 Juillet 2015 11:56:42 *Objet: *Re: [Wapt] Bug affiliation paquet suite renommage poste
Merci pour l'explication. Utilisateurs Wapt réguliers, ce problème ne vous gène pas trop ? Sur une équipe de plusieurs techniciens, on peux vite se retrouver avec beaucoup de postes non à jour...
Cordialement.
*De: *"Hubert TOUVET" htouvet@tranquil.it *À: *wapt@lists.tranquil.it *Envoyé: *Mardi 7 Juillet 2015 11:32:09 *Objet: *Re: [Wapt] Bug affiliation paquet suite renommage poste
C'est une conséquence logique du mode de fonctionnement de Wapt à base de paquets. Un poste connait les paquets logiciel et autres paquets "groupes" à installer en téléchargeant un paquet nommé exactement comme son nom FQDN (nom de machine avec domaine). Si son nom change, il tentera de charger un paquet avec son nouveau nom pour connaître sa "configuration".
Une solution (à développer) serait d'utiliser le UUID du poste (lu dans le BIOS) et non son FQDN comme nom de paquet machine.
Hubert
Le 07/07/2015 11:22, Didier Paulin a écrit :
Je viens de remarquer que quand on renomme un poste, celui çi perd l'affection au groupe de paquet. Il faut affilié à nouveau le groupe de paquet à la machine... pas très pratique et source d'oubli. Connaissez vous le problème et envisager vous une solution ? Cordialement.
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
Bonjour, Cette option m’intéresserait aussi.
*Anicet GERMAIN* Technicien systèmes et réseaux
------------------------------------------------------------------------
*ConceptHygiene.com * Informatique / Communication / Support
------------------------------------------------------------------------
TEL : *02 43 49 56 36* MAIL : agermain@concepthygiene.com mailto:agermain@concepthygiene.com WWW :
Le 07/07/2015 12:05, Didier Paulin a écrit :
Une idée : Serait-il possible de rajouter dans une future version la possibilité d'afficher les groupes sans paquet ? (actuellement on affiche les postes affiliés à un paquet ou "tous" mais pas "sans". On retrouverai facilement les postes orphelin.
Cordialement.
*De: *"Didier Paulin" didier.paulin@lepuyenvelay.fr *À: *wapt@lists.tranquil.it *Envoyé: *Mardi 7 Juillet 2015 11:56:42 *Objet: *Re: [Wapt] Bug affiliation paquet suite renommage poste
Merci pour l'explication. Utilisateurs Wapt réguliers, ce problème ne vous gène pas trop ? Sur une équipe de plusieurs techniciens, on peux vite se retrouver avec beaucoup de postes non à jour...
Cordialement.
*De: *"Hubert TOUVET" htouvet@tranquil.it *À: *wapt@lists.tranquil.it *Envoyé: *Mardi 7 Juillet 2015 11:32:09 *Objet: *Re: [Wapt] Bug affiliation paquet suite renommage poste
C'est une conséquence logique du mode de fonctionnement de Wapt à base de paquets. Un poste connait les paquets logiciel et autres paquets "groupes" à installer en téléchargeant un paquet nommé exactement comme son nom FQDN (nom de machine avec domaine). Si son nom change, il tentera de charger un paquet avec son nouveau nom pour connaître sa "configuration".
Une solution (à développer) serait d'utiliser le UUID du poste (lu dans le BIOS) et non son FQDN comme nom de paquet machine.
Hubert
Le 07/07/2015 11:22, Didier Paulin a écrit :
Je viens de remarquer que quand on renomme un poste, celui çi perd l'affection au groupe de paquet. Il faut affilié à nouveau le groupe de paquet à la machine... pas très pratique et source d'oubli. Connaissez vous le problème et envisager vous une solution ? Cordialement.
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
Bonjour
en image (hubert a été plus rapide) :
Le 7 juillet 2015 12:09, Anicet GERMAIN agermain@concepthygiene.com a écrit :
Bonjour, Cette option m’intéresserait aussi.
*Anicet GERMAIN* Technicien systèmes et réseaux
*ConceptHygiene.com * Informatique / Communication / Support
TEL : *02 43 49 56 36* MAIL : agermain@concepthygiene.comagermain@concepthygiene.com WWW : Le 07/07/2015 12:05, Didier Paulin a écrit :
Une idée : Serait-il possible de rajouter dans une future version la possibilité d'afficher les groupes sans paquet ? (actuellement on affiche les postes affiliés à un paquet ou "tous" mais pas "sans". On retrouverai facilement les postes orphelin.
Cordialement.
*De: *"Didier Paulin" didier.paulin@lepuyenvelay.fr didier.paulin@lepuyenvelay.fr *À: *wapt@lists.tranquil.it *Envoyé: *Mardi 7 Juillet 2015 11:56:42 *Objet: *Re: [Wapt] Bug affiliation paquet suite renommage poste
Merci pour l'explication. Utilisateurs Wapt réguliers, ce problème ne vous gène pas trop ? Sur une équipe de plusieurs techniciens, on peux vite se retrouver avec beaucoup de postes non à jour...
Cordialement.
*De: *"Hubert TOUVET" htouvet@tranquil.it htouvet@tranquil.it *À: *wapt@lists.tranquil.it *Envoyé: *Mardi 7 Juillet 2015 11:32:09 *Objet: *Re: [Wapt] Bug affiliation paquet suite renommage poste
C'est une conséquence logique du mode de fonctionnement de Wapt à base de paquets. Un poste connait les paquets logiciel et autres paquets "groupes" à installer en téléchargeant un paquet nommé exactement comme son nom FQDN (nom de machine avec domaine). Si son nom change, il tentera de charger un paquet avec son nouveau nom pour connaître sa "configuration".
Une solution (à développer) serait d'utiliser le UUID du poste (lu dans le BIOS) et non son FQDN comme nom de paquet machine.
Hubert
Le 07/07/2015 11:22, Didier Paulin a écrit :
Je viens de remarquer que quand on renomme un poste, celui çi perd l'affection au groupe de paquet. Il faut affilié à nouveau le groupe de paquet à la machine... pas très pratique et source d'oubli. Connaissez vous le problème et envisager vous une solution ?
Cordialement.
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
WAPT mailing listWAPT@lists.tranquil.ithttp://lists.tranquil.it/listinfo/wapt
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt
--