Tag Archive: shell

Nov 05

HP Array Configuration Utility RAID Controller Checker Script

HP Array Configuration Utility RAID Controller Checker Script Install the HP Managment Component Pack for Proliant The bellow hpacucli-check.sh is a bash shell script that checks the status of controller, array, logical and physical driver on a HP Server with the command hpaculi (HP Array Configuration Utility Client) installed, also syslogging and sending an email …

Continue reading »

Nov 04

How to capitalize letters on bash shell script

It’s easy just use the tr command to lower, upper or capital case. Here is an example… ?View Code BASH1 2 3 4 5 6 7 8 9 function toCapital { for x in $* do echo -n ${x:0:1} | tr ‘[a-z]’ ‘[A-Z]’ | xargs echo -n echo -n ${x:1} | tr ‘[A-Z]’ ‘[a-z]’ | …

Continue reading »

Feb 21

Shell Script para cambiar de pasarela de Internet

Firewall Switch

Shell Script para cambiar de pasarela de Internet El Problema Cómo cambiar automáticamente de puerta de enlace (pasarela) sin tener que reconfigurar cada estación de trabajo en una red local (LAN) con dos accesos a Internet. Solución 1. Instalar y configurar el demonio cron, editar el /etc/crontab para que ejecute cada minuto un scripts de comprobación …

Continue reading »

Older posts «