Projet

Général

Profil

Tâche #28168

Scénario #27605: Scribe AD : Gérer les machines connectées dans l'EAD2

Étude de l'existant

Ajouté par Joël Cuissinat il y a presque 5 ans. Mis à jour il y a presque 5 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Début:
03/05/2019
Echéance:
% réalisé:

0%

Restant à faire (heures):
0.0

Historique

#1 Mis à jour par Joël Cuissinat il y a presque 5 ans

  • Description mis à jour (diff)

#2 Mis à jour par Joël Cuissinat il y a presque 5 ans

L'action EAD2 est scribe_connexion_machine. Son point d'entrée est (avec d'autres) dans backend/actions/scribe/connexion.py.

Pour lister les clients, la commande appelée en bout de chaîne est la suivante :

# /usr/share/eole/controlevnc/manage_stations.py -l -v
192.168.0.247, pc-237640, 6a.01

Pour arrêter une station :

# /usr/share/eole/controlevnc/manage_stations.py -s 192.168.0.247 -t 0
Extinction de pc-237640

Pour redémarrer une station :

# /usr/share/eole/controlevnc/manage_stations.py -s 192.168.0.247 -t 1
Redémarrage de pc-237640

Pour fermer une session :

# /usr/share/eole/controlevnc/manage_stations.py -s 192.168.0.247 -t 2

Pour résumer :

root@scribe:~# grep get_client_scribe_script /usr/share/ead2/backend/actions/scribe/connexion.py | grep -v '#'
from ead2.backend.config.filenames import get_client_scribe_script
        a, b, err = system_out([get_client_scribe_script, '-l', '-v'],
            a, b, err = system_out([get_client_scribe_script, '-s', user, '-t', '0'], container='fichier')
            a, b, err = system_out([get_client_scribe_script, '-s', user, '-t', '1'], container='fichier')
            a, b, err = system_out([get_client_scribe_script, '-s', user, '-t', '2'], container='fichier')

#4 Mis à jour par Scrum Master il y a presque 5 ans

  • Statut changé de En cours à Fermé
  • Restant à faire (heures) mis à 0.0

Formats disponibles : Atom PDF