summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xadmin/Sources/Services/ogAdmRepoAux25
-rw-r--r--admin/WebConsole/comandos/jscripts/asistentes.js2
-rwxr-xr-xrepoman/bin/sendFileMcast2
3 files changed, 13 insertions, 16 deletions
diff --git a/admin/Sources/Services/ogAdmRepoAux b/admin/Sources/Services/ogAdmRepoAux
index a0c26baa..4ab3b634 100755
--- a/admin/Sources/Services/ogAdmRepoAux
+++ b/admin/Sources/Services/ogAdmRepoAux
@@ -1,26 +1,25 @@
#!/bin/bash
PARM=`cat`
+BASEDIR=/opt/opengnsys
+REPONAME=ogAdmRepo
+REPOLOG=$BASEDIR/log/$REPONAME.log
+
PARM1=$(echo $PARM | cut -f1 -d" ")
PARM2=$(echo $PARM | cut -f2 -d" ")
PARM3=$(echo $PARM | cut -f3 -d" ")
PARM4=$(echo $PARM | cut -f4 -d" ")
-echo $PARM
-echo $PARM1
-echo $PARM2
-echo $PARM3
-echo $PARM4
case $PARM1 in
START_MULTICAST)
- #1 START_MULTICAST
- #2 fichero a enviar
- FILE=/opt/opengnsys/images$PARM2
- MCASTOPT=$PARM3
- #3 opciones protocolo multicast
- echo "/opt/opengnsys/bin/sendFileMcast $FILE $MCASTOPT"
- /opt/opengnsys/bin/sendFileMcast $FILE $MCASTOPT
+ #1 START_MULTICAST
+ #2 fichero a enviar
+ #3 opciones de multicast
+ FILE=/opt/opengnsys/images$PARM2
+ MCASTOPT=$PARM3
+ echo "/opt/opengnsys/bin/sendFileMcast $FILE $MCASTOPT" >> $REPOLOG
+ /opt/opengnsys/bin/sendFileMcast $FILE $MCASTOPT >> $REPOLOG
;;
-esac \ No newline at end of file
+esac \ No newline at end of file
diff --git a/admin/WebConsole/comandos/jscripts/asistentes.js b/admin/WebConsole/comandos/jscripts/asistentes.js
index 58eeb716..a15e7396 100644
--- a/admin/WebConsole/comandos/jscripts/asistentes.js
+++ b/admin/WebConsole/comandos/jscripts/asistentes.js
@@ -9,12 +9,10 @@
// ***********************************************************************************************************
function codeCloneRemotePartition(form){
-//alert("codeCloneRemotePartition(form)");
form.codigo.value="cloneRemoteFromMaster " + form.ipMaster.value + " 1 " + form.PartOrigen.value + " " + form.mcastpuerto.value + ":" + form.mcastmodo.value + ":" + form.mcastdireccion.value + ":" + form.mcastvelocidad.value + "M:" + form.mcastnclien.value + ":" + form.mcastseg.value + " 1 " + form.PartOrigen.value + " " + form.tool.value + " " + form.compresor.value;
}
function codeDeployImage(form){
-alert("codeDeployImage(form)");
switch (form.idmetodo.value)
{
case "MULTICAST":
diff --git a/repoman/bin/sendFileMcast b/repoman/bin/sendFileMcast
index 4829d8db..cbe3271f 100755
--- a/repoman/bin/sendFileMcast
+++ b/repoman/bin/sendFileMcast
@@ -61,5 +61,5 @@ CERROR="8x8/128"
which mbuffer &> /dev/null && MBUFFER="--pipe 'mbuffer -m 20M'"
##### ADV v. 1.0 23/02/2011
#version 0.10 # udp-sender $MBUFFER --portbase $PORTBASE --$METHOD --mcast-data-address $ADDRESS --fec $CERROR --max-bitrate $BITRATE --ttl 1 --min-clients $NCLIENTS --max-wait $MAXTIME --file "$FICHIMG"
-/opt/opengnsys/bin/udp-sender $MBUFFER --nokbd --retries-until-drop 65 --portbase $PORTBASE --$METHOD --mcast-data-address $ADDRESS --fec $CERROR --max-bitrate $BITRATE --ttl 1 --min-clients $NCLIENTS --max-wait $MAXTIME --file "$FICHIMG"
+/opt/opengnsys/bin/udp-sender $MBUFFER --nokbd --retries-until-drop 65 --portbase $PORTBASE --$METHOD --mcast-data-address $ADDRESS --fec $CERROR --max-bitrate $BITRATE --ttl 1 --min-clients $NCLIENTS --max-wait $MAXTIME --file "$FICHIMG" --log /opt/opengnsys/log/ogAdmRepoMcast.log
##### ADV v. 1.0 23/02/2011