Archive for August, 2009

conntrack DTrace script: connections by process, user and port on Solaris/Opensolaris

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 [...]

FacebookTwitterGoogle BookmarksLinkedInShare

, , ,

9 Comments

How To dynamically increase ZFS swap space on Solaris and Opensolaris

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 [...]

FacebookTwitterGoogle BookmarksLinkedInShare

,

No Comments

quicktips: Solaris rápido

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 [...]

FacebookTwitterGoogle BookmarksLinkedInShare

,

2 Comments

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 [...]

FacebookTwitterGoogle BookmarksLinkedInShare

No Comments

Howto migrate from UFS to ZFS in a Sun Cluster 3.2 environment

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 [...]

FacebookTwitterGoogle BookmarksLinkedInShare

, , , ,

No Comments

Korona 0.0.2 available: KDE4.3/OpenSolaris 2009/06

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 [...]

FacebookTwitterGoogle BookmarksLinkedInShare

,

1 Comment

Identity Manager y el gateway, limitaciones con Active Directory

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 [...]

FacebookTwitterGoogle BookmarksLinkedInShare

, , ,

No Comments

Get TCP statistics and KPIs in Opensolaris and Solaris 10: tcpKPI.d

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 [...]

FacebookTwitterGoogle BookmarksLinkedInShare

, ,

No Comments

Sun Cluster Disaster Recovery two-node cluster with Root on ZFS. Node cloning.

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 [...]

FacebookTwitterGoogle BookmarksLinkedInShare

, ,

No Comments

Identity y sus peculiaridades (etiquetas multi idioma)

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: [...]

FacebookTwitterGoogle BookmarksLinkedInShare

,

No Comments