Código: Seleccionar todo
echo Indica el Nuevo Nombre del equipo
read NOMBRE
echo "Cambiando Hostname a $NOMBRE"
echo $NOMBRE > /etc/hostname
hostname $NOMBRE
aptitude install libcompress-zlib-perl libwww-perl libxml-simple-perl po-debconf libnet-ip-perl libnet-ssleay-perl libxml-libxml-simple-perl
aptitude install ocsinventory-agent
echo Ahora indica el Nombre del TAG Ej Presupuesto
read TAG
echo "Cambiando Hostname a $TAG"
echo server=10.10.10.10 > /etc/ocsinventory/ocsinventory-agent.cfg
echo tag=$TAG >> /etc/ocsinventory/ocsinventory-agent.cfg
ocsinventory-agent -s=10.10.10.10 -f
Ejemplo:
Código: Seleccionar todo
sh ocs.sh
Si gustan pueden descargarlo haciendo Click Aquí