Ciencia da Computação
Por: Endrik • 27/4/2015 • Trabalho acadêmico • 10.704 Palavras (43 Páginas) • 318 Visualizações
crontab -e
00 07 * * * /scripts/relatbkp.sh > /dev/null
kill -9 $(ps -ef|grep cron|grep -v grep|awk '{print $2}')
chuser expires=0 hfbiondi
chuser maxage=0 hfbiondi
sudo pwdadm -c hfbiondi
chuser account_locked=false regneves
chsec -f /etc/security/lastlog -a "unsuccessful_login_count=0" -s regneves
startsrc -s sendmail -a "-bd -q15m"
halt
ps -ef | grep dsm
nohup /usr/tivoli/tsm/client/ba/bin/dsmc sched 2> /dev/null &
nohup /usr/tivoli/tsm/client/ba/bin/dsmcad 2> /dev/null &
# Acesso Controle Data Center - Script de movimentacao de arquivos
%skynohs ALL=NOPASSWD:/u01/oracle/odi/scb/output_files/archive
define schedule PD_UNIX LIMPA_LOG_BRCSCO_RST desc="rst para limpa_log" action=command priority=5 startd=today startt=now duration=15 durunits=minutes period=1 perunits=days dayofweek=any expiration=never
update sched PD_UNIX LIMPA_LOG_BRCSCO_RST startd=today startt=now peru=onetime
DRIVES DO TSM TS3310 INTERFACE WEB:
0,2 é o drive 1
-1, 1 é o drive 2
0, 1 é o drive 3
-1,2 é o drive 4
smitty mkuser
smitty jfs2
sudo scp backup 10056@brcscs99:/backup/controlm
sudo scp -r <diretorio> 10056@brcscs99:/backup/controlm
scp -r Setup_files 10056@brcscs99:/backup/controlm
scp -r Setup_files 10056@brcscs69:/ControlM/install
scp setup.sh 10056@brcscs69:/ControlM/install
scp PAKAI.8.0.00.200_AIX_INSTALL.BIN 10056@brcscs69:/ControlM/install
COMANDO PARA ENTRAR NO TSM:
No client: dsmc
No server: dsmadmc
COMANDO DE CHECKOUT DE FITAS DOS ROBOS:
checkout libv MSL6060 JT4343L3 checkl=no remove=bulk
checkout libv MSL4048 SKY278L4 checkl=no remove=bulk
checkout libv TS3310 JT4343L3 checkl=no remove=bulk
checkout libv TS3200 SKY252L5 checkl=no remove=bulk
checkout libv TS3200_NOHS SKY289L5 checkl=no remove=bulk
checkout libv TS3500 SKY002L5 checkl=no remove=bulk
VERIFICAR FITAS DO DB DO TSM:
q volh t=dbb
q volh t=dbs
COMANDO DE CHECKIN SCRATCH DE FITAS NA LIBRARY:
checkin libv MSL6060 search=bulk checkl=barcode status=scratch
checkin libv MSL4048 search=yes checkl=barcode status=scratch
checkin libv TS3310 search=bulk checkl=barcode status=scratch
checkin libv TS3200 search=bulk checkl=barcode status=scratch
checkin libv TS3200_NOHS search=bulk checkl=barcode status=scratch
checkin libv TS3500 search=yes checkl=barcode status=scratch
COMANDO DE CHECKIN PRIVATE DE FITAS NA LIBRARY:
checkin libv MSL6060 search=bulk checkl=barcode status=private
checkin libv MSL4048 search=yes checkl=barcode status=private
checkin libv TS3310 search=bulk checkl=barcode status=private
checkin libv TS3200 search=bulk checkl=barcode status=private
checkin libv TS3200_NOHS search=bulk checkl=barcode status=private
checkin libv TS3500 search=yes checkl=barcode status=private
VERIFICAR E RESPONDER REQUISIÇÕES DO TSM:
q req
reply 096
REGISTRAR LABEL DE NOVA FITA:
LABEL LIBVOLUME TS3200_NOHS search=bulk labels=barcode checkin=scratch overwrite=yes
LABEL LIBVOLUME TS3200 search=bulk labels=barcode checkin=scratch overwrite=yes
LABEL LIBVOLUME TS3310 search=bulk labels=barcode checkin=scratch overwrite=yes
LABEL LIBVOLUME TS3500 search=bulk labels=barcode checkin=scratch overwrite=yes
LABEL LIBVOLUME MSL6060 search=bulk labels=barcode checkin=scratch overwrite=yes
VER SCHEDULE DE BACKUP:
q sched node=ORA_CSTHML f=d
REINICIAR BACKUPS VIA SCHEDULE RST:
update sched intel srvdb03_incr_rst startd=today startt=now peru=onetime subdir=yes
update sched UNIX BACKUP_BRCSCS65_RST startd=today startt=now peru=onetime
update sched oracle ORA_CSTPRD_RST startd=today startt=now peru=onetime
UPDATE DE FITAS EMPTY PARA SCRATCH (READW):
update vol SAP062L5 acc=readwrite
Audit:
audit library TS3200 checkl=barcode
UPDATE DE PATHS:
UPD PATH TSM_SAP DRIVE01 SRCTYPE=SERVER DESTTYPE=DRIVE LIBRARY=MSL6060 DEVICE=/dev/mt0 ONLINE=YES
UPD PATH TSM_SAP DRIVE02 SRCTYPE=SERVER DESTTYPE=DRIVE LIBRARY=MSL6060 DEVICE=/dev/mt1 ONLINE=YES
UPD
...