Archivo de la categoría: Nix

Reverse tunneling

What is the usage for reverse tunneling? Let say I have my server open ssh port to public, which means remote host from the Internet can access to my server through ssh. Another side, my friend’s machine do not open ssh port to public or his machine is behind the firewall. With this condition, my… Leer más »

Categoría: Nix

nohup Execute Commands After You Exit From a Shell Prompt

Most of the time you login into remote server via ssh. If you start a shell script or command and you exit (abort remote connection), the process / command will get killed. Sometime job or command takes a long time. If you are not sure when the job will finish, then it is better to… Leer más »

Categoría: Nix

listar con ruta ls

Listar con ruta for i in `ls`; do echo $PWD/$i ; done Con parametros para logs for i in `ls *.log`; do echo $PWD/$i ; done Este es el bueno ls -dlR $PWD/*

perl admin

Hey there! Today I wanted to focus on something that’s helping me do my job in a more efficient fashion. At a former workplace, I was responsible for ~200 high capacity webhosting machines, and a host of supporting machines. Back then, I was a huge fan of a management system mostly comprised of SSH Keys… Leer más »

crontab solaris

La única diferencia con la que nos encontramos, es que en Solaris el editor por defecto para crontab es ed, que hace que la edición del crontab se haga infumable. Así que antes de editar el crontab hay que definir en la variable del sistema EDITOR, que editor queremos utilizar, en mi caso vi. export… Leer más »

Change IP Address Solaris without restart

Solaris 10 edit /etc/hosts file (a symlink to /etc/inet/hosts file) and /etc/inet/ipnodes add an entry for IP address and hostname. Restart Network SRV # svcadm restart network/physical

Comandos útiles

  TOP command prstat -a ( like top ) vmstat   Para saber el uso del cpu sar 1 sar -u 10 60 mpstat 10 60

Solaris Zones

poolcfg -c ‘create pset dbsrv-pset (uint pset.min=1; uint pset.max=12)’ poolcfg -c ‘create pool dbsrv-pool’ poolcfg -c ‘associate pool dbsrv-pool (pset dbsrv-pset)’ pooladm -c zonecfg -z dbsrv-zone create set zonepath=/nas/zones/dbsrv-zone set autoboot=true add net set address=172.16.2.203 set physical=e1000g0 set pool=dbsrv-pool verify commit exit zoneadm -z dbsrv-zone install zoneadm -z dbsrv-zone boot zlogin -C dbsrv-zone   How… Leer más »