Archive for August, 2009
conntrack DTrace script: connections by process, user and port on Solaris/Opensolaris
Posted by Sergio Rodriguez de Guzman in DTrace, Networking/Security, Solaris on August 27, 2009
I’ve created conntrack DTrace script for Solaris and Opensolaris to monitor all outgoing TCP and UDP connections by process, user and port. It has some filtering capabilities allowing to filter traffic by port, process or user. In a standard unix system it’s rather difficult to know what process are using the network and how. With [...]
How To dynamically increase ZFS swap space on Solaris and Opensolaris
Posted by Sergio Rodriguez de Guzman in Solaris on August 27, 2009
These are the steps to increase the swap space without rebooting the system on a ZFS root based Solaris and Opensolaris system: # swap -lswapfile dev swaplo bloques libre/dev/zvol/dsk/rpool/swap 256,2 16 2097136 2097136# zfs set volsize=2G rpool/swap# env NOINUSE_CHECK=1 swap -a /dev/zvol/dsk/rpool/swap $((8+2097136))# swap -lswapfile dev swaplo bloques libre/dev/zvol/dsk/rpool/swap 256,2 16 2097136 2097136/dev/zvol/dsk/rpool/swap 256,2 2097152 [...]
quicktips: Solaris rápido
Posted by Haizea Gomez in Linux, Solaris on August 20, 2009
Siguiendo con el recetario de comandos rápidos iniciado por Alex, aquí os adjunto algunas recetas rápidas. Historial con fechas: En el .basrc podemos incluir la variable: HISTTIMEFORMAT=’%F %T ‘ y luego claro exportarla. Diferentes formas de matar todos los procesos que cumplan un patrón: $ kill -9 `ps -ef | grep -i patron | awk [...]
quicktips: ver discos en Solaris
¿Alguien ha intentado sacar información de los discos de una máquina Solaris dentro de un script y el comando format no saca lo que esperamos? Existe un comando rápido y no interactivo que puede resolver esta situación: iostat -En Ejemplo: <pre id=”terminal”>iostat -Enc0t6d0 Soft Errors: 19 Hard Errors: 3 Transport Errors: 0Vendor: TOSHIBA Product: DVD-ROM [...]
Howto migrate from UFS to ZFS in a Sun Cluster 3.2 environment
Posted by Sergio Rodriguez de Guzman in Cluster on August 15, 2009
In this howto we’ll review the migration process for the root (/) file system from UFS to ZFS with the difficulty of working in a possibly production cluster environment. We will also use one of the new features of Sun Cluster 3.2u2: the lofi global devices for the /global directory (the globaldevices mount point). You’ll [...]
Korona 0.0.2 available: KDE4.3/OpenSolaris 2009/06
Posted by Sergio Rodriguez de Guzman in Solaris on August 12, 2009
The live DVD image of KDE4.3/OpenSolaris is available at http://www.genunix.org/ [2GB] Direct link: http://www.genunix.org/dist/korona/Korona-0.0.2.iso In addition to the standard OpenSolaris CD content*, Korona** comes with an almost complete KDE environment – 22 KDE packages plus localization to 57 languages and 38 supporting packages AND Konversation (no Amarok though, the recent versions don’t build correctly). The [...]
Identity Manager y el gateway, limitaciones con Active Directory
Posted by Haizea Gomez in Identity Management on August 12, 2009
Hasta hace bien poco existía poca información de como y cuando se usa el gateway en una infraestructura de identidad. Dentro del paquete del producto que descargamos nos encontramos con un gateway.zip, pero en muchas ocasiones desconocemos como usarlo. Mediante este post intentaremos exclarecer un poco su funcionalidad. Hay que tener en cuenta que el [...]
Get TCP statistics and KPIs in Opensolaris and Solaris 10: tcpKPI.d
Posted by Sergio Rodriguez de Guzman in DTrace on August 11, 2009
I’ve created this DTrace script to get network KPIs (Key Performance Indicators). It will print this information: * FIELDS: * DATE Time, string * OUT TCP Out Data Bytes * RET Number of Retransmited Bytes * IN TCP In Data Bytes * INDUP TCP In Duplicated Bytes * UNORD TCP In UnorderBytes * DROP TCP [...]
Sun Cluster Disaster Recovery two-node cluster with Root on ZFS. Node cloning.
Posted by Sergio Rodriguez de Guzman in Solaris on August 11, 2009
In this howto, we are going to recover a two node cluster using ZFS cloning techniques. The scenario is: Two-node cluster with Sun Cluster 3.2u2 Solaris 10 5/09 One node is death (completely broken). One node is alive, still running in the cluster. 1. Preparing the new node (the one replacing the death node). We [...]
Identity y sus peculiaridades (etiquetas multi idioma)
Posted by Haizea Gomez in Identity Management on August 10, 2009
En muchos casos nos hemos vuelto locos intentando colocar las etiquetas multi-idioma. Después de definir nuestro custom catalog (dentro de Generic Objects -> System Configuration.xml <Attribute name=’customMessageCatalog’ value=’CustomCatalog’/> , nos damos cuenta que derrepente en las ayudas aparecen informaciones incorrectas. <Msg id=’_EXTERNAL_COMPANY_INFO’>Company Information</Msg> <Msg id=’_EXTERNAL_COMPANY_INFO’>Información Empresa</Msg> ———– En el formulario hacemos referencias a las ayudas: [...]

Core Networks
Oracle University