System Controller Environment Variables
Para monitorear cualquier dominio: cd $SMSLOGGER/LETRA-DOMINIO sc0 # su - sms-svc cintra2sc0:sms-svc:1> env HOME=/export/home/sms-svc PATH=/opt/SUNWSMS/bin:/usr/dt/bin:/usr/ccs/bin:/usr/sbin:/usr/bin:/usr/ucb:. LOGNAME=sms-svc HZ=100 TERM=vt100 SHELL=/bin/csh MAIL=/var/mail/sms-svc TZ=Mexico/General PWD=/export/home/sms-svc USER=sms-svc SMSOPT=/opt/SUNWSMS SMSETC=/etc/opt/SUNWSMS SMSVAR=/var/opt/SUNWSMS SMSLOGGER=/var/opt/SUNWSMS/adm LD_LIBRARY_PATH=/opt/SUNWSMS/lib:/usr/lib MANPATH=/opt/SUNWSMS/man:/usr/man EDITOR=/usr/bin/vi sc0:sms-svc:2> ******HACER UN BACKUP DEL SW SMS****** 1. Detener Failover scmain20:sms-svc:1> setfailover off 2. Detener el SW de SMS # /etc/init.d/sms stop 3. Hacer el respaldo de los archivos de configuracion de SMS # smsbackup /var/tmp 4. Levantar el SW de SMS # /etc/init.d/sms start 5. Levantar Failover scmain20:sms-svc:2> setfailover on *****HACER UN RESTORE DEL SW SMS****** 1. Detener Failover scmain20:sms-svc:1> setfailover off 2. Detener el SW de SMS # /etc/init.d/sms stop 3. Hacer la restauracion de los archivos de configuracion de SMS # smsrestore /var/tmp/sms_backup.1.5.cpio 4. Levantar el SW de SMS # /etc/init.d/sms start 5. Levantar Failover scmain20:sms-svc:2> setfailover on ******** VALIDAR STATUS DEL FAILOVER ************ sc0:sms-svc:11> showfailover SC Failover Status: ACTIVE C1: UP ******** Displaying the SC Role ****************** sc0:sms-svc:12> showfailover -r MAIN sc0:sms-svc:13> |
BASH HOTKEYS
Bash provides many hot keys to ease use. Like
ctrl-l -- clear screen
ctrl-r -- does a search in the previously given commands so that you don't
have to repeat long command.
ctrl-u -- clears the typing before the hotkey.
ctrl-a -- takes you to the begining of the command you are currently typing.
ctrl-e -- takes you to the end of the command you are currently typing in.
esc-b -- takes you back by one word while typing a command.
ctrl-c -- kills the current command or process.
ctrl-d -- kills the shell.
ctrl-h -- deletes one letter at a time from the command you are typing in.
ctrl-z -- puts the currently running process in background, the process
can be brought back to run state by using fg command.
esc-p -- like ctrl-r lets you search through the previously given commands.
esc-. -- gives the last command you typed.