source: client/shared/scripts/listHardwareInfo @ e57b608

918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacion
Last change on this file since e57b608 was 5b825b50, checked in by ramon <ramongomez@…>, 8 years ago

#730: Sustitución del nombre del proyecto en los scripts del cliente.

git-svn-id: https://opengnsys.es/svn/branches/version1.1@5388 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100755
File size: 791 bytes
Line 
1#!/bin/bash
2# Scirpt de ejemplo para almacenear en fichero temporal el listado de hardware.
3# Nota: se usa como base para el programa de recogida de listado de hardware de OpenGnsys Admin.
4# Formato:  listHardwareInfo
5
6PROG=$(basename "$0")
7if [ $# -ne 0 ]; then
8    ogRaiseError $OG_ERR_FORMAT "$MSG_FORMAT: $PROG "
9    exit $?
10fi
11
12# Directorio del servidor donde se exportan los ficheros de registro.
13SERVERLOGDIR=$(mount | awk -v d=$OGLOG '
14                                BEGIN {FS="[: ]"}
15                                {if ($4==d) dir=$2}
16                                END {print dir}')
17
18# Fichero de listado:  hard-IP
19HARDFILE="hard-$(ogGetIpAddress)"
20# Redirigir salida al fichero de listado.
21ogListHardwareInfo>$OGLOG/$HARDFILE || exit $?
22# Salida: camino del fichero de listado en el servidor de repositorio.
23#echo $SERVERLOGDIR/$HARDFILE
24echo $OGLOG/$HARDFILE
Note: See TracBrowser for help on using the repository browser.