|
| [ Envoyer un message ] | [ Forum novell ] | [ F.A.Q. ] | [ Chat ] |
| (2 visiteurs) |
| Forum Novell & Windows | Modification: 5/9/2005 Création: 10/7/2002 |
|
|---|---|---|
forum d aide a l utilisation de netware novell windows server,2000,xp Reseau |
||
| 547 messages déposés | ||
ai un pb d'exécution de script...après avoir créé un objet Imaging Zenworks Script, je colle mon script dedans et il ne s'exécute pas...enfin juste le début. Je débute dans le domaine et c'est un peu urgent. Je ne sais où chercher - sur novell c'est...WAW - donc je n'en remet à vous...merci par avance...voici le script...En fait ça bloque juste après le Menu (après avoir sur la touche 1 par exemple)...
#debut du script
#IP du serveur
IMGSRV=***.***.***.***
#chemin zen
CHEMIN260=/xp/gx260
CHEMIN280=/xp/gx280
CHEMIN520=/xp/gx520
#nom image
ordi260=gx260.zmg
ordi280=gx280.zmg
ordi520=gx520.zmg
#couleur fond ecran et texte
setterm -foreground red -background white -store
setterm -clear
#clavier en français
/lbin/loadkeys fr-latin1
#pave numerique
/bin/setleds -D +num
#Banniere d'accueil
echo " ATTENTION Clavier FR et Pav Num actif !!! "
echo "********************************************"
echo "* BIENVENUE POUR INSTALLER UNE IMAGE ZEN *"
echo "* Pour poursuivre... *"
echo "* Appuyez sur o ou n pour reboot... *"
echo "********************************************"
read ACCORD;
if ! ["$ACCORD"="o"]; then
reboot
fi
setterm -clear
echo " ATTENTION Clavier FR et Pav Num actif !!! "
echo "*************************************************************************"
echo "* MENU... *"
echo "*************************************************************************"
echo "* 1 - Image de base SANS clear Zise *"
echo "* 2 - Image machine - tout le DD AVEC clear Zise *"
echo "* 3 - Image machine - tout le DD SANS clear Zise *"
echo "* 4 - Image utilisateur - uniquement C:/ AVEC clear Zise + nom *"
echo "* 5 - Image utilisateur - uniquement c:/ SANS clear Zise + nom *"
echo "* 6 - Menu IMG *"
echo "* 7 - Menu batch *"
echo "* 8 - Reboot *"
echo "*************************************************************************"
echo "* Faites votre choix... *"
echo "*************************************************************************"
read MENU;
if [ "$MENU" = "1" ]; then
echo " ATTENTION Clavier FR et Pav Num actif !!! "
echo "*********************************************"
echo "* Choix de l'IMAGE de Base *"
echo "*********************************************"
echo "* A - GX 260 *"
echo "* B - GX 280 *"
echo "* C - GX 520 *"
echo "* D - Reboot *"
echo "*********************************************"
echo "* Faites votre choix... *"
echo "*********************************************"
read CHOIX;
If [ "$CHOIX"="A" ]; then
echo "***************************************************"
echo " ATTENTION...ATTENTION... "
echo " ------------------------ "
echo "Chargement de l'image de Base GX260 SANS clear zise"
echo " Appuyez sur une touche... "
echo "***************************************************"
pause
img rp $IMGSRV //$IMGSRV/$CHEMIN260/base_260.zmg;
fi
If [ "$CHOIX"="B" ]; then
echo "***************************************************"
echo " ATTENTION...ATTENTION... "
echo " ------------------------ "
echo "***************************************************"
echo "Chargement de l'image de Base GX280 SANS clear zise"
echo " Appuyez sur une touche... "
echo "***************************************************"
pause
img rp $IMGSRV //$IMGSRV/$CHEMIN280/base_280.zmg;
fi
If [ "$CHOIX"="C" ]; then
echo "***************************************************"
echo " ATTENTION...ATTENTION... "
echo " ------------------------ "
echo "***************************************************"
echo "Chargement de l'image de Base GX520 SANS clear zise"
echo " Appuyez sur une touche... "
echo "***************************************************"
pause
img rp $IMGSRV //$IMGSRV/$CHEMIN520/base_520.zmg;
fi
If [ "$CHOIX"="D" ]; then
echo "***************************"
echo " ATTENTION...ATTENTION... "
echo " ------------------------ "
echo "***************************"
echo "RRRRREEEEEBBBBBOOOOOOTTTTTT"
echo " Appuyez sur une touche... "
echo "***************************"
pause
reboot
fi
if [ "$MENU" = "2" ]; then
echo "******************************************************************"
echo " ATTENTION...ATTENTION... "
echo " ------------------------ "
echo "******************************************************************"
echo " Pret pour lancer l'Image machine - tout le DD AVEC clear Zise "
echo " Appuyez sur O ou N pour reboot... "
echo "******************************************************************"
read ACCORD;
if ! ["$ACCORD"="O"]; then
reboot
fi
if hwinfo --bios |grep -i "Optiplex GX260"; then
zisedit -c
img rp $IMGSRV //$IMGSRV/$CHEMIN/$ordi260
fi
if hwinfo --bios |grep -i "Optiplex GX280"; then
zisedit -c
img rp $IMGSRV //$IMGSRV/$CHEMIN/$ordi280
fi
if hwinfo --bios |grep -i "Optiplex GX520"; then
zisedit -c
img rp $IMGSRV //$IMGSRV/$CHEMIN/$ordi520
fi
if [ "$MENU" = "3" ]; then
echo "******************************************************************"
echo " ATTENTION...ATTENTION... "
echo " ------------------------ "
echo "******************************************************************"
echo " Pret pour lancer l'Image machine - tout le DD SANS clear Zise "
echo " Appuyez sur O ou N pour reboot... "
echo "******************************************************************"
read ACCORD;
if ! ["$ACCORD"="O"]; then
reboot
fi
if hwinfo --bios |grep -i "Optiplex GX260"; then
img rp $IMGSRV //$IMGSRV/$CHEMIN/$ordi260
fi
if hwinfo --bios |grep -i "Optiplex GX280"; then
img rp $IMGSRV //$IMGSRV/$CHEMIN/$ordi280
fi
if hwinfo --bios |grep -i "Optiplex GX520"; then
img rp $IMGSRV //$IMGSRV/$CHEMIN/$ordi520
fi
if [ "$MENU" = "4" ]; then
echo "**********************************************************"
echo " ATTENTION...ATTENTION... "
echo " ------------------------ "
echo "**********************************************************"
echo "*Image utilisateur - uniquement C:/ AVEC clear Zise + nom*"
echo "**********************************************************"
echo "* Entrez OBLIGATOIREMENT le nom de l'utilisateur... *"
echo "**********************************************************"
read WSNAME
if test $WSNAME; then
zisedit -c
zisedit Name=$WSNAME
img pd1
img pc1 ntfs 20000
img pa1;
fi
if hwinfo --bios |grep -i "Optiplex GX260"; then
img rp $IMGSRV //$IMGSRV/$CHEMIN/$ordi260 a1:p1
fi
if hwinfo --bios |grep -i "Optiplex GX280"; then
img rp $IMGSRV //$IMGSRV/$CHEMIN/$ordi280 a1:p1
fi
if hwinfo --bios |grep -i "Optiplex GX520"; then
img rp $IMGSRV //$IMGSRV/$CHEMIN/$ordi520 a1:p1
fi
if [ "$MENU" = "5" ]; then
echo "**********************************************************"
echo " ATTENTION...ATTENTION... "
echo " ------------------------ "
echo "**********************************************************"
echo "*Image utilisateur - uniquement C:/ SANS clear Zise + nom*"
echo "**********************************************************"
echo "* Entrez OBLIGATOIREMENT le nom de l'utilisateur... *"
echo "**********************************************************"
read WSNAME
if test $WSNAME; then
zisedit Name=$WSNAME
img pd1
img pc1 ntfs 20000
img pa1;
fi
if hwinfo --bios |grep -i "Optiplex GX260"; then
img rp $IMGSRV //$IMGSRV/$CHEMIN/$ordi260 a1:p1
fi
if hwinfo --bios |grep -i "Optiplex GX280"; then
img rp $IMGSRV //$IMGSRV/$CHEMIN/$ordi280 a1:p1
fi
if hwinfo --bios |grep -i "Optiplex GX520"; then
img rp $IMGSRV //$IMGSRV/$CHEMIN/$ordi520 a1:p1
fi
if [ "$MENU" = "6" ]; then
echo "***************************"
echo " Entrer dans le menu IMG "
echo " Appuyez sur une touche... "
echo "***************************"
pause
img
fi
if [ "$MENU" = "7" ]; then
echo "***************************"
echo " Entrer dans le menu Batch "
echo " Appuyez sur une touche... "
echo "***************************"
pause
exit
fi
if [ "$MENU" = "8" ]; then
echo "****************************"
echo " Entrer dans le menu Reboot "
echo " Appuyez sur une touche... "
echo "****************************"
pause
reboot
fi
pause