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: perl admin »

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: crontab solaris »

add afterimage

Remove before image proutil sports2000 -C disableSiteReplication source prostrct remove sports2000 bi [bl1:/db1/sports2000]$prostrct add sports2000 sports2000.st Formatting extents: size area name path name 16 Primary Recovery Area /db1/sports2000/sports2000.b1 00:00:00 16 Schema Area /db1/sports2000/sports2000.d2 00:00:00 16 After Image Area 1 /db1/sports2000/sports2000.a1 00:00:00 48 Employee /db1/sports2000/sports2000_7.d3 00:00:00 16 Employee /db1/sports2000/sports2000_7.d4 00:00:00 80 Inventory /db1/sports2000/sports2000_8.d3 00:00:01 16 Inventory… Leer más: add afterimage »

/etc/profile Variables Progress

cat /etc/profile #ident «@(#)profile 1.19 01/03/13 SMI» /* SVr4.0 1.3 */ # The profile that all logins get before using their own .profile. trap «» 2 3 export LOGNAME PATH if [ «$TERM» = «» ] then if /bin/i386 then TERM=sun-color else TERM=sun fi export TERM fi # Login and -su shells get /etc/profile services.… Leer más: /etc/profile Variables Progress »

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: Solaris Zones »