surgiu uma necessidade aqui no trabalho de montar uma imagem do fedora 18 para uma instalação que deveria ter pacotes configurados automaticamente durante a instalação do sistema — e tais pacotes já deveriam constar na ISO para evitar uso de banda desnecessário [para o download dos pacotes dos repositórios]. depois de quebrar a cabeça com…
Um backup atualizado não é questão de `se` — antes é uma necessidade primária em qualquer ambiente de produção [missão crítica nem se fala]. Montei este pequeno script que uso regularmente e vem me servindo bem. Explicação da rotina: backupDB.sh — backup de tabelas específicas [críticas] Uso uma tabela que armazena um ID para cada…
Here’s a simple ruby script that will be ran on background and silently — to log in to a proxy server. It uses Selenium Ruby — pretty easy to use for such a simple use case.
ITIL v3 Foundation certified — yup it’s me.
LPIC Level 1 — yeah it’s me.
While training for LPI 102 I have come across an exercise — to assemble a little shell script that allows sysadmin to create an user [the script must prompt for user name, user login, create user’s home directory, check if useradd ran successfully and then change user’s password]. This is how I did mine. Sure…
Simple. $# gives you the quantity of parameters you passed on to script. $@ gives you all the parameters you passed on to script. Remarks: If you pass parameters enclosed by quotes [e.g: “1 2 3 4”] it will return 1 as total of parameters. Example: Run it passing 1 2 3 4 5 as…
This script below is an example of what I used to monitor via Nagios in the company I used to work for. I wrote it in order to get a graphic output of our servers’ memory usage. Used to help a lot. Still does I think. In this script I used SNMP protocol [snmpwalk] —…
I used to run this via Nagios in order to check connectivity between hosts on our datacenter. A simple but effective little script to run a quick but important test [common scenario — multiple hosts running multiple components].
If you happen to run your linux system on a virtualized env and you happen to have a DHCP netwotk config you can use a script like the one below to update your hosts file in order for it to use its assigned IP everytime it boots [or whenever you want]. I call this one…