diff options
Diffstat (limited to 'admin/Interface')
-rwxr-xr-x | admin/Interface/InventarioHardware | 5 | ||||
-rwxr-xr-x | admin/Interface/InventarioHardware3 | 5 | ||||
-rwxr-xr-x | admin/Interface/InventarioSoftware | 18 | ||||
-rwxr-xr-x | admin/Interface/InventarioSoftware3 | 5 |
4 files changed, 29 insertions, 4 deletions
diff --git a/admin/Interface/InventarioHardware b/admin/Interface/InventarioHardware index 7e889737..17614a5d 100755 --- a/admin/Interface/InventarioHardware +++ b/admin/Interface/InventarioHardware @@ -1,5 +1,6 @@ #!/bin/bash -# Script de interfaz para devolver el inventario de hardware de un cliente. +# Script de interfaz para guardar en un fichero el inventario de hardware de un cliente. -listHardwareInfo | tail -n+2 +file=$(listHardwareInfo) +tail -n+2 $file >$1 diff --git a/admin/Interface/InventarioHardware3 b/admin/Interface/InventarioHardware3 new file mode 100755 index 00000000..7e889737 --- /dev/null +++ b/admin/Interface/InventarioHardware3 @@ -0,0 +1,5 @@ +#!/bin/bash +# Script de interfaz para devolver el inventario de hardware de un cliente. + +listHardwareInfo | tail -n+2 + diff --git a/admin/Interface/InventarioSoftware b/admin/Interface/InventarioSoftware index fd481580..fa96565d 100755 --- a/admin/Interface/InventarioSoftware +++ b/admin/Interface/InventarioSoftware @@ -1,5 +1,19 @@ #!/bin/bash -# Script de interfaz para devolver el inventario de software de un sistema operativo instalado. -listSoftwareInfo $1 $2 +TIME1=$SECONDS + +#Carga el configurador del engine desde el fichero engine.cfg +[ -z $OGENGINECONFIGURATE ] && source /opt/opengnsys/etc/engine.cfg + +# Limpia los ficheros temporales usados como log de seguimiento para httpdlog +echo -n " " | tee $OGLOGSESSION $OGLOGCOMMAND ${OGLOGCOMMAND}.tmp + +# Registro de inicio de ejecuciĆ³n +ogEcho log session "$MSG_INTERFACE_START $0 $*" + +file=$(listSoftwareInfo $1 $2) +cp $file $3 + +TIME=$[SECONDS-TIME1] +ogEcho log session " [ ] $MSG_SCRIPTS_TIME_PARTIAL : $[TIME/60]m $[TIME%60]s" diff --git a/admin/Interface/InventarioSoftware3 b/admin/Interface/InventarioSoftware3 new file mode 100755 index 00000000..fd481580 --- /dev/null +++ b/admin/Interface/InventarioSoftware3 @@ -0,0 +1,5 @@ +#!/bin/bash +# Script de interfaz para devolver el inventario de software de un sistema operativo instalado. + +listSoftwareInfo $1 $2 + |