Useful Commands

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 9

To login to sudo

/usr/local/bin/sudo su ===========================================================================
To get the paths of the client
sudo bpcoverage -c client name
==========================================================================
Remote login---> In windows-->start-->Run-->>mstsc -v client_Name
==========================================================================
sudo /opt/soe/local/sudo/bin
To login as sudo Access
$ cd /opt/soe/local/sudo/bin
$ sudo su lmolluru's Password:
#/usr/local/bin/sudo
/usr/local/bin/sudo /usr/local/bin/sudosh
Solaris server
-bash-3.00$ /opt/soe/local/bin/sudo /usr/openv/netbackup/bin/admincmd/bpimageli
st -d 10/25/2013 -e 10/30/2013 -client jhmoclay001 -U
Password:
Backed Up
Expires
Files
KB C Sched Type Policy
---------------- ---------- -------- -------- - ------------ -----------10/27/2013 04:05 05/01/2014
7945 228129913 N Full Backup FSS-WINTEL
10/27/2013 03:14 05/01/2014 285961 233826798 N Full Backup FSS-WINTEL
10/27/2013 02:52 05/01/2014
69872 23742850 N Full Backup FSS-WINTEL
10/26/2013 23:43 04/30/2014
17 18793357 N Full Backup FSS-WINTEL
============================================================================
PATH=$PATH:/usr/bin:/usr/ucb:/etc:/usr/openv/netbackup/bin/admincmd:/usr/openv/
netbackup/bin:/usr/openv/volmgr/bin:/opt/soe/local/sudo/bin
================================================================================
=====
FYI - Symantec has published a technote regarding our Autobackup controlfile iss
ue.
http://seer.entsupport.symantec.com/docs/305796.htm
Note: Our NBU environment is running at 6.0 MP5.
===========================================================================
sudo bppllist AMP-VMGUESTS-I -U
sudo nbpemreq -predict_all -date 08/12/2009 12:00:00 | grep -i ampeofsqlp01
sudo nbpemreq -predict_all -date 08/12/2009 12:00:00 -client ampcorppp01
bperror -backstat -hoursago 24 -U
(cscampebesyd004)[/export/home/ebeuser]sudo bperror -jobid 282101
1249923600 1 68 4 cscampebesyd004 282101 282101 0 ampepsdccpv1 nbpem CLIENT ampe
psdccpv1 POLICY AMP-VMGUESTS-ampepsdccpv1 SCHED Differential-Mon-Sat EXIT STA
TUS 196 (client backup was not attempted because backup window closed)
1249923600 1 4 16 cscampebesyd004 282101 282101 0 ampepsdccpv1 nbpem backup of c

lient ampepsdccpv1 exited with status 196 (client backup was not attempted becau
se backup window closed)
(cscampebesyd004)[/export/home/ebeuser]sudo bpdbm -ctime 1249923600
1249923600 = Tue Aug 11 03:00:00 2009
(cscampebesyd004)[/export/home/ebeuser]sudo bperror -jobid 282101 -hoursago 48
1249923600 1 68 4 cscampebesyd004 282101 282101 0 ampepsdccpv1 nbpem CLIENT ampe
psdccpv1 POLICY AMP-VMGUESTS-ampepsdccpv1 SCHED Differential-Mon-Sat EXIT STA
TUS 196 (client backup was not attempted because backup window closed)
1249923600 1 4 16 cscampebesyd004 282101 282101 0 ampepsdccpv1 nbpem backup of c
lient ampepsdccpv1 exited with status 196 (client backup was not attempted becau
se backup window closed)
(cscampebesyd004)[/export/home/ebeuser]ls -ltr /usr/openv/netbackup/db/class/AMP
-VMGUESTS-ampepsdccpv1
total 8
-rw-r----- 1 staylo41 ebeops
17 Nov 20 2008 includes
-rw-r----- 1 staylo41 ebeops
103 Nov 20 2008 clients
drwxr-xr-x 5 root
other
512 Mar 11 16:29 schedule
-rw------- 1 root
other
930 Apr 5 00:21 info
(cscampebesyd004)[/export/home/ebeuser]sudo nbpemreq -predict -date 08/12/2009 1
2:00:00
Predicted work assuming no job run between now and Wed Aug 12 12:00:00 2009
rl client
policy
schedule
type
-- -------------------- -------------------- -------------------- ---------01 cscadmp2
CSCADMP2
Incr-Daily-SunFri
1
01 cscadmp3
CSCADMP3
Incr-Daily-SunFri
1
01 amppdosrvp02
PDOS-FSs
DailyIncr
1
01 amppdosrvp03
PDOS-FSs
DailyIncr
1
(cscampebesyd004)[/export/home/ebeuser]sudo nbpemreq -predict -date 08/12/2009 1
2:00:00 | grep -i AMP-VMGUESTS-ampepsdccpv1
01 ampepsdccpv1
AMP-VMGUESTS-ampepsdccpv1 Differential-Mon-Sat 1
(cscampebesyd004)[/export/home/ebeuser]sudo nbpemreq -predict -date 08/12/2009 1
2:00:00 -unixtime
Predicted work assuming no job run between now and Wed Aug 12 12:00:00 2009
rl client
policy
schedule
type
-- -------------------- -------------------- -------------------- ---------01 cscadmp2
CSCADMP2
Incr-Daily-SunFri
1
01 cscadmp3
CSCADMP3
Incr-Daily-SunFri
1
(cscampebesyd004)[/export/home/ebeuser]sudo nbpemreq -updatepolicies
(cscampebesyd004)[/export/home/ebeuser]sudo nbpemreq -predict_all -date 08/12/20
09 12:00:00 -client ampepsdccpv1
Predicted worklist including all jobs due to run between now and Wed Aug 12 12:0
0:00 2009
rl client
policy
schedule
type
due
time
-- -------------------- -------------------- -------------------- ---------- ----------------01 cscadmp2
CSCADMP2
Incr-Daily-SunFri
1
Tue
Aug 11 16:00:00 2009
01 cscadmp3
CSCADMP3
Incr-Daily-SunFri
1
Tue
Aug 11 16:00:00 2009
01 amppdosrvp02
PDOS-FSs
DailyIncr
1
Tue
Aug 11 17:00:00 2009

01 amppdosrvp03
Aug 11 17:00:00 2009

PDOS-FSs

DailyIncr

Tue

]sudo bpdbjobs | grep -i " 196 "


(cscampebesyd004)[/export/home/ebeuser]sudo bpdbjobs | grep -i " 196 " | awk '{p
rint $7}' | sort -u | uniq
(cscampebesyd004)[/export/home/ebeuser]sudo bpdbjobs | grep -i " 196 " | awk '{p
rint $5}' | sort -u | uniq
/usr/openv/logs
sudo vmdareq -D LTO4-004
sudo vmoprcmd -d -h cscadmp2
sudo bperror -backstat -hoursago 24 -U | grep "/"
(cscampebesyd004)[/usr/openv/logs]sudo bpdbm -ctime 1249930800
1249930800 = Tue Aug 11 05:00:00 2009
(cscampebesyd004)[/usr/openv/logs]sudo bpplsched AMP-VMGUESTS-I -label Different
ial-Mon-Fri -U
================================================================================
==
Single line Command
http://www.backupcentral.com/components/com_mambowiki/index.php/Category:NetBack
up_Command_Line_Interface_(CLI)
================================================================================
==
# id="AD0526
> AD0633
> AD0525
> AD0396
> AD0340
> AD0336
> AD0069
> AD0543
> AD0144
> AD0563
> "
# for i in $id ; do echo $i $(sudo vmquery -m $i | grep -i "robot slot" | awk '{
print $3}') ; done
AD0526 64
AD0633 207
AD0525 60
AD0396 26
AD0340 29
AD0336
AD0069 7
AD0543 36
AD0144 15

AD0563 31
====================================================================
for i in $(bpps -a | grep lmolluru | awk '{print $2}') ; do kill -9 $i ; done
================================================================================
==
To get the all drives which backedup in wintel servers
sudo /usr/openv/netbackup/bin/bplist -C bmagrm-srv01 -t 13 -s 09/12/2009 -e 09/1
3/2009 -l -R / | awk '{print $8}' | awk '{FS="/"}{print $2}' | sort -u | uniq
Unix server
sudo /usr/openv/netbackup/bin/bplist -C csmper-cls17 -t 0 -s 11/08/2014 12:30:0
1 -e 11/09/2014 11:59:59 -l -R /opt/oracle |
tocalculate size of the folder
bash-3.2$ sudo /usr/openv/netbackup/bin/bplist -C csmper-cls15 -t 0 -s 11/08/201
4 12:30:01 -e 11/09/2014 11:59:59 -l -R /var/oracle | awk '{ total += $4 }; END
{ print total }'
25387549483
================================================================================
=========================================
Update Inventry
vmupdate -rt tld -rn 0 -use_barcode_rules
sudo vmupdate -rt tld -rn 0 -use_barcode_rules -empty_map
sudo vmquery -b -pn SCRATCH | grep -i TLD | wc -l
==================================================================
To reduce logging: /usr/openv/netbackup/bin/vxlogcfg -a -p 51216 -o Default -s D
ebugLevel=0 -s DiagnosticLevel=0
To delete existent logs: /usr/openv/netbackup/bin/vxlogmgr --auto --del -q
================================================================================
===========================
AIX:
sum=0 ; for i in $(sudo bpimagelist -U -d <start date> -e <end date> | egrep -iv
"KB|----" | awk '{print $5}') ; do sum=$(($sum+$i)) ; done ; echo $sum
Solaris
sum=0 ; for i in $(sudo bpimagelist -U -d <start date> -e <end date> | egrep -iv
"KB|----" | awk '{print $5}') ; do sum=$[sum+i] ; done ; echo $sum
================================================================================
======================================
C:\Program Files\Veritas\Volmgr\bin>vmoprcmd -d ds
DRIVE STATUS
Drv Type Control User
0 hcart2 TLD
1 hcart2 TLD

Label RecMID ExtMID Ready


No
No

Wr.Enbl. ReqId
0
0

C:\Program Files\Veritas\Volmgr\bin>tpautoconf -a
TPAC60 - - - -1~-1~-1~-1 2 - - - 0 - - - - - - - 0 0 - - bmamky-srv01 4 - - 0 - - TPAC60 HP.ULTRIUM2-SCSI.000 HP~~~~~~Ultrium~2-SCSI~~F68W - 3~0~0~2 1 0 0 2 8 10
- - - HUL3L06067 - 3 0 1 - - bmamky-srv01 0 - - 0 - - - -

TPAC60 HP.ULTRIUM2-SCSI.001 HP~~~~~~Ultrium~2-SCSI~~F68W - 3~0~0~1 1 0 0 1 8 10


- - - HUL3L06049 - 3 0 1 - - bmamky-srv01 0 - - 0 - - - ================================================================================
===============================================
C:\Program Files\Veritas\NetBackup\bin>taskkill /f /pid 5244
C:\Program Files\Veritas\NetBackup\bin>bpdown -f -v
================================================================================
========================================
To add a tape to standlone tape drive to Identify the tape when ever required.
vmadd -m <media_id> -mt <media_type>
================================================================================
===========================================
identify max mounted tapes:
vmquery -l -mt hcart3| awk '{print $1, $16}' | grep "1$"
================================================================================
=============================================
show frozen tapes:
bpmedialist -summary| awk '/MEDIA SUMMARY FOR SERVER/ { host_media=$5 } /\(FROZE
N\)/ { printf "sudo bpmedia -unfreeze -h %s -m %s\n",host_media, $1 }'
bpmedialist -summary | grep "(FROZEN)"
================================================================================
============================================
Identify any tapes that were set with a expiration date:
for i in `vmquery -a -bx | awk '{print $1}'|sed '1,3d' `
do
echo "$i \c"
vmquery -m $i | grep "expiration date:"
done
================================================================================
================================
To reduce logging: /usr/openv/netbackup/bin/vxlogcfg -a -p 51216 -o Default -s D
ebugLevel=0 -s DiagnosticLevel=0
To delete existent logs: /usr/openv/netbackup/bin/vxlogmgr --auto --del -q
===================================================================
To check the messages in unix
#/varlog/grep -i tape messages
================================================================================
==================
http://seer.entsupport.symantec.com/docs/278938.htm
http://www.netbackupcommands.com/index.php?option=com_docman&amp;task=cat_view&a
mp;gid=12&amp;Itemid=
====================================================================
from Shaun Takagi to All Participants:http://www.apparentnetworks.com/sas/330/
from Shaun Takagi to All Participants:bpdbjobs -report -all_columns -jobid <jobi
d> > [textfile]
sudo /usr/openv/netbackup/bin/support/nbsu -c -t -debug
sudo /usr/openv/netbackup/bin/admincmd/bptestbpcd -client bmagrm-xact01v -verbos
e -debug

sudo nbrbutil -dump


================================================================================
==========================
When ever windows client fail with error 24
#Netsh int ip set chimney DISABLED
================================================================================
================
To check the VSS stable or not(When the systemstate backups are failling)
C:\Documents and Settings\Administrator.BCARPETS>vssadmin list writers
================================================================================
=============
Tocheck NDMP connectivity
sudo /opt/openv/volmgr/bin/set_ndmp_attr -verify entsyd-nas03
==============================================================================
C:\>vssadmin list writers
du -h
ls -lh
du -h *
After any changes we can run this command.
sudo bprdreq -rereadconfig
================================================================
To cleanup images when ever /usr/openv full
bash-3.00$ sudo /usr/openv/netbackup/bin/admincmd/nbpemreq -suspend_scheduling
bash-3.00$ sudo /usr/openv/netbackup/bin/admincmd/bpimage -allclients cleanup
================================================================================
===
sudo nbrbutil -================================================================================
==
To check drives from OS end
cfgadm -al -o show_FCP_dev
try running devfsadm
mt -f /dev/rmt/1cbn status
mt -f /dev/rmt/2cbn status
mt -f /dev/rmt/3cbn status
=====================================================================
mt -f /dev/rmt/4cbn status
=============================================================
To edit script tape script
[ebesupt@bmagrm-bak01 lmolluru2]$ sudo -l
[lmolluru2@bmagrm-bak01 ~]$ sudo /bin/su ebesupt
got /home/ebesupt
[ebesupt@bmagrm-bak01 ~]$ vi /home/ebesupt/tapescript20091124
================================================================================
======

bash-3.00$ /usr/bin/isainfo -v
64-bit sparcv9 applications
vis2 vis popc
32-bit sparc applications
vis2 vis popc v8plus div32 mul32
bash-3.00$ uname -a
SunOS graphite 5.10 Generic_137111-08 sun4u sparc SUNW,Sun-Fire-V890
bash-3.00$ /usr/bin/isainfo -kv
64-bit sparcv9 kernel modules
bash-3.00$
================================================================================
==========
How to add IP address in /etc/hosts file
cott Merrilees has just informed me,
that he has enabled your backup team's access to a utility called "/usr/local/bi
n/hostadm"
on bmabne-bak*, bmcbne-bak01, ironper-bak01, csmper-bak02 servers.
The "/usr/local/bin/hostadm" command will allow your team to modify hosts entrie
s yourselves without our team needing
sudo /usr/local/bin/hostadm -add 10.27.35.44 csmper-cit16
sudo /usr/local/bin/hostadm -delete 10.27.4.148 csmper-cit16
================================================================================
======================================
/usr/openv/netbackup/logs/user_ops/dbext/logs
$ du -sm
3.40
.
$
$ du -sm *
0.76
jobs
3.40
logs
$
du -h /usr/open/logs
=========================================================================
How to add vss through command promt
$ sudo ./bpclient -update -client csmper-dasd01 -WOFB_enabled 0
$ sudo ./bpclient -add -client csmper-dasd02 -WOFB_enabled 0
$ sudo ./bpclient -update -client csmper-dasd02 -WOFB_enabled 0
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++
$ sudo ./bpclient -add -client csmper-vbar01 -WOFB_enabled 0
============================================================================
How to reset password
root#passwd username
to unlock
#smit

================================================================================
From Solaris OS end to check the drive start
bash-2.05$ ls -al /dev/rmt/*cbn
lrwxrwxrwx 1 root
root
73 Aug 20 2008 /dev/rmt/0cbn
ices/pci@8,700000/SUNW,emlxs@3/fp@0,0/st@w500507630f574741,0:cbn
lrwxrwxrwx 1 root
root
73 Aug 13 2008 /dev/rmt/1cbn
ices/pci@8,700000/SUNW,emlxs@3/fp@0,0/st@w500507630f574742,0:cbn
lrwxrwxrwx 1 root
root
73 Aug 5 2011 /dev/rmt/2cbn
ices/pci@8,700000/SUNW,emlxs@3/fp@0,0/st@w500507630f574715,0:cbn
lrwxrwxrwx 1 root
root
73 Dec 18 2007 /dev/rmt/3cbn
ices/pci@8,700000/SUNW,emlxs@3/fp@0,0/st@w500507630f574711,0:cbn
lrwxrwxrwx 1 root
root
73 Dec 18 2007 /dev/rmt/4cbn
ices/pci@8,700000/SUNW,emlxs@3/fp@0,0/st@w500507630f574712,0:cbn
lrwxrwxrwx 1 root
root
73 Dec 18 2007 /dev/rmt/5cbn
ices/pci@8,700000/SUNW,emlxs@3/fp@0,0/st@w500507630f574713,0:cbn
lrwxrwxrwx 1 root
root
73 Mar 6 2008 /dev/rmt/6cbn
ices/pci@8,700000/SUNW,emlxs@3/fp@0,0/st@w500507630f574734,0:cbn
bash-2.05$

-> ../../dev
-> ../../dev
-> ../../dev
-> ../../dev
-> ../../dev
-> ../../dev
-> ../../dev

================================================================================
===============================================
To delete all drives
nbemmcmd -deletealldevices -allrecords

================================================================================
====================================================
[root@cscrhnmel102 ~]# service iptables stop
iptables: Flushing firewall rules:
iptables: Setting chains to policy ACCEPT: filter
iptables: Unloading modules:

[ OK ]
[ OK ]
[ OK ]

================================================================================
====================================
bpjobd daemons failed to connect
When ever /usr/openv 100%
delete logs
/usr/openv/db/bin/nbdb_admin start
/usr/openv/db/bin/nbdb_ping
after this u need to start netbackup services
================================================================================
================
To check the CPU Utilization
#topas
================================================================================
==========
When ever the java console not able to login.
We need to recycle netbackup services with ----- bp.start_all
================================================================================
========
Systemstate failures script

/opt/soe/local/bin/sudo /usr/openv/netbackup/bin/admincmd/bperror -d 05/02/2014


| egrep 'System State|System Service' | awk '{print $9}'| uniq
================================================================================
=================================
To get the client list.
/opt/soe/local/bin/sudo /usr/openv/netbackup/bin/admincmd/bppllist -allpolicies
| awk '$1=="CLASS" {pl=$2;set=0} $1=="INFO" && $12==0 {set=1} $1=="CLIENT" && se
t==1 {print $2}' | sort | uniq
================================================================================
=======================================
Deduplication
how to configuring tape library through command
vtl
Is there any pisible to do restore SAP backups from netbackup end.
PRO,RTO
================================================================================
===========
/usr/openv/netbackup/bin/admincmd/bppllist -allpolicies | awk '$1=="CLASS" {pl=
$2;set=0} $1=="INFO" && $12==0 {set=1} $1=="CLIENT" && set==1 {print $2}' | sort

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy