Archive for category QuickTip
Find the path of a java classes and jar file for inclusion in the classpath.
Posted by Julio Sanchez in Java, QuickTip on September 17, 2010
Before beginning I must thank my colleague Miguel Angel Jimenez (Instructor JAVA) to create a simple but practical example of Java code that demonstrates the usefulness of this script. Some time ago I asked this script to speed up searches for java classes inside the jar files, including information on the path to the desired [...]
Encontrar la ruta de la clase java y su fichero jar par incluirlo en el classpath.
Posted by Julio Sanchez in Java, QuickTip on September 17, 2010
Lo primero debo dar las gracias a mi compañero Miguel Ángel Jiménez (Instructor de JAVA) por crear un ejemplo práctico pero sencillo de código JAVA que demuestra la utilidad de este script. Hace tiempo que me lo pidió para agilizar las búsquedas de clases java dentro de los ficheros jar, incluyendo la información de la [...]
Keyboard shortcuts in the terminal
Posted by Julio Sanchez in QuickTip on September 17, 2010
Enable emacs functionality in the shell, if not already selected. root@solaris # set -o emacs CTRL + a -> Move cursor to the beginning of the line. CTRL + e -> Move cursor to the end of the line. ESC + b -> Move cursor to the benning of the previous word. ESC + f [...]
how to perform operations with decimals in shell script
Posted by Julio Sanchez in QuickTip on September 14, 2010
As bourne shell (sh) does not know how to work with numbers, is required to invoke unix expr to work with integers. Both korn shell (ksh) and Bourne Again Shell (bash) include arithmetic operations but only to work with integers. To work with decimal numbers in arithmetic operations can be invoked from our script to [...]
avoid lock of the root account
Posted by Julio Sanchez in Networking/Security, QuickTip on September 13, 2010
In the last post we saw how to enable account lockout after multiple failed login attempts, but if the account is locked is the root can be a big problem. The idea is that blocking is not applied to the root account and it launched the following command: root@solaris # usermod -K “lock_after_retries=no” root easy, [...]
ShellScript: Interesting command this ‘tput’
Making shell scripts, sometimes, require some visual presentation. Maybe you need make letters bold, or use a white background. Maybe we want to write in a precise position of the screen. For this worthless activities, I found ‘tput’. tput is a quite simple command which comes with a basic Solaris installation. I reads termcap database [...]
QuickTip: Solved How to reinitialize several disks with an empty SMI partition table
Posted by Jorge Moratilla in Geek, QuickTip, Solaris on May 21, 2010
Hi folks!, first I want to thanks Arnaud Delanoue for commenting me about the script that implements the solution for the hardest part: labeling the disk automatically. I have come finally with the procedure to reset any disk from EFI to SMI. It’s commented in course ES-445 (Sun Cluster 3.2 Advanced Administration), so I recommend [...]
QuickTip: How to reinitialize several disks with an empty SMI partition table
Posted by Jorge Moratilla in QuickTip on May 3, 2010
Hi, today i was preparing a couple of arrays of disks that have been previously used in other courses. I’ve got this problem you’ll may be familiar with: several disks with different sizes, geometries, partition tables and labels (EFI, SMI). With more than 30 disks to reset manually, I know it’s gonna take me a [...]
Truco: WebConsole en DSEE 6.3.1
Posted by Jorge Moratilla in Identity Management, QuickTip, Solaris on November 2, 2009
Debido a un fallo de seguridad detectado en Marzo de 2008 (Sun Alert 231526), en Solaris 10 5/09 y/o Directory Server Enterprise Edition 6.3.1 han cambiado la filosofía de acceso del webconsole para que sólo se pueda acceder en local a través de la dirección 127.0.0.1 y el puerto 6789. Esto impide que por defecto [...]
QuickTip: Envío de mensajes de prueba con swaks
Posted by Jorge Moratilla in QuickTip on September 11, 2009
Para mi primer post hablaré de herramientas útiles para los administradores de correo electrónico. Muchas veces necesitamos realizar pruebas de envío de correo para comprobar si los servidores MTA están bien configurados. Utilizar un thunderbird, un outlook o un telnet no permite su iteración en scripts, así que mirando por la web, di con este [...]

Core Networks
Oracle University