Archivo de la categoría: solaris

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 »

Solaris PRTDIAG

prtdiag $prtdiag System Configuration: Sun Microsystems sun4v Sun Blade T6300 Server Module Memory size: 8064 Megabytes ================================ Virtual CPUs ================================ CPU ID Frequency Implementation Status —— ——— ———————- ——- 0 1000 MHz SUNW,UltraSPARC-T1 on-line 1 1000 MHz SUNW,UltraSPARC-T1 on-line 2 1000 MHz SUNW,UltraSPARC-T1 on-line 3 1000 MHz SUNW,UltraSPARC-T1 on-line 4 1000 MHz SUNW,UltraSPARC-T1 on-line 5… Leer más »

Configuring NTP in Solaris 10

cp /etc/inet/ntp.server /etc/inet/ntp.conf edit the ntp.conf file. For an undisciplined local clock: change `server 127.127.XType.0` to `server 127.127.1.0′ comment out `fudge 127.127.XType.0 stratum 0` Syncing to an external NTP server: (see NTP.Servers Web for a list of public time servers) change `server 127.127.XType.0` to `server externel time server` (where externel time server is the IP… Leer más »

crontab -e Editor enviroment

~]#cat .bash_profile export TERM=xterm export PATH=$PATH:/opt/csw/sbin/:/opt/SUNWhpc/HPC8.1/sun/bin source ~/.bashrc EDITOR=vim export EDITOR

/dev/rmt0 Device busy

/dev/rmt0 Device busy If you are an Administrator and especially a backup administrator there is a very high chance that you get stuck with this error message with your backup. If you do a # mt -f /dev/rmt0n status (infact any option with the mt or related command) and end up with the error /dev/rmt0n:… Leer más »