Showing posts with label Useful commands. Show all posts
Showing posts with label Useful commands. Show all posts

Wednesday, June 5, 2019

Netbackup Cheat Sheet

Master Server Daemons/Processes

Request daemonbprd
Schedulerbpsched (started with bprd)
Netbackup database managerbpdbm (started with bpsched)
Job Monitorbpjobd (started with bpdbm)
Media Server Daemons/Processes

Communications daemonbpcd
Backup and restore managerbpbrm (started with bpcd)
Tape Managerbptm (started with bpbrm)
Disk Managerbpdm (started with bpbrm)
Media Managerltid
Bar code readeravrd (started with ltid)
Remote device management/ controls volume databasevmd (started with ltid)
Roboticdaemon (one on each media server) talks to tldcdtldd (started with ltid)
Robotic control daemon talks to the robot directl via scsitldcd (started with ltid)
Catalogs

Master Server
Information about backed-up filesimage - /opt/openv/netbackup/db
Storage Unit, Global Configuration, Catalog backup configuration.config - /opt/openv/netbackup/db
Backup Policy informationclass - /opt/openv/netbackup/db
Job status informationjobs - /opt/openv/netbackup/db
Netbackup logs with error and status informationerror - /opt/openv/netbackup/db
Information on volumes, volume pools, scratch pool and volume groupsvolume - /opt/openv/volmgr/database
Media Server
Tracks assigned volumes (media that has data them)media - /opt/openv/netbackup/db
Information about devices managed by the media serverdevice - /opt/openv/volmgr/database
Log and Information Files

Netbackup and Patch versions/opt/openv/netbackup/bin/version
Media Version/opt/openv/volmgr/version
Patch Level history/opt/openv/netbackup/patch/patch.history
Buffer size/opt/openv/netbackup/db/config/SIZE_DATA_BUFFERS
Number of buffers/opt/openv/netbackup/db/config/NUMBER_DATA_BUFFERS
Network Buffer Size/opt/openv/netbackup/NET_BUFFER_SZ (default = 32)
Java GUI authorisation/opt/openv/java/auth.conf
Catalog type (binary or ASCII)/opt/openv/netbackup/db/config/cat_format.cfg
Netbackup and media manager parameter files/opt/openv/netbackup/bp.conf
/opt/openv/volmgr/vm.conf
Corrupt Database image files (5.0 and above)/opt/openv/netbackup/db.corrupt
Server Commands

Check license details/opt/openv/netbackup/bin/admincmd/get_license_key
Start Netbackup
netbackup start

/opt/openv/netbackup/bin/initbprd (master)
/opt/openv/volmgr/bin/vmd (media)
Stop Netbackup (does not disconnect GUI sessions)
netbackup stop
/opt/openv/netbackup/bin/admincmd/bprdreq -terminate (master)
/opt/openv/netbackup/bin/bpdbm -terminate (master)
Stop Netbackup and kill all GUI sessions/opt/openv/netbackup/bin/goodies/bp.kill_all
Start the GUI/opt/openv/netbackup/bin/jnbSA
Scan for tape devicessgscan (solaris)
ioscan (HPUX)
Display all Netbackup processesbpps -a
lists servers errors
bperror -U -problems -hoursago
bperror -U -backstat -by_statcode -hoursago
display information on a error codebperror -statuscode [-recommendation]
Reread bp.conf file without stopping Netbackupbprdreq -rereadconfig
Check database consistency
bpdbm -consistency 1
bpdbm -consistency 2
Check for the below lines:
Bad image header
Does not exist
Netbackup Recovery
Device catalog is intactbprecover -l -m -d dlt (listing)
bprecover -r -m -d dlt (recovering)
Device catalog is gone or corruptedbprecover -l -tpath (listing)
bprecover -r -tpath (recovering)
Disk backupsbprecover -l -dpath (listing)
bprecover -r -dpath (recovering)
Volume Commands

Tape Drive and Inventory Commands
List drive status, detail drive info and pending requestsvmoprcmd
List the tape drive statusvmoprcmd -d ds
List the pending requestsvmoprcmd -d pr
Control a tape devicevmoprcmd [-reset][-up][-down]
List all changes in the robot(but do not update)
vmupdate -recommend -rt tld -rn 0
vmcheckxxx -rt tld -rn 0 -recommend
Empty the robot and re-inventory (using barcodes)vmupdate -rt tld -rn -rh -vh -nostderr -use_barcode_rules -use_seed -empty_ie
Tape Media Commands
List all poolsvmpool -listall -bx
List tapes in poolvmquery -pn -bx
List all tapes in the robotvmquery -rn 0 -bx |grep 'TLD' | sort +4
List cleaning tapesvmquery -mt dlt_clean -bx
List tape volume detailsvmquery -m
Delete a volume from the catalogvmdelete -m
Change a tapes expiry datevmchange -exp 12/31/06 23:59:58 -m
Change a tape's media poolvmchange -p -m
 Media commands

List the storage unitsbpstulist -U
Freeze or unfreeze mediabpmedia [-freeze][-unfreeze] -ev
List media detailsbpmedialist -ev
List media contentsbpmedialist -U mcontents -m
List backup Image Informationbpimagelist -backupid
Expire client imagesbpimage -cleanup -allclients
Expire a tapebpexpdate -d 0 -ev -force
List all netbackups jobsbpdbjobs -report [-hoursago]
Move media from one media server to anotherbpmedia -movedb -newserver -oldserver
Tape/Robot commands

List tape drivestpconfig -d
List cleaning times on drivestpclean -L
clean a drivetpclean -C
change a drives cleaning frequencytpclean -F
set a drives cleaning time to zerotpclean -M
Move tapes within robot using robtest
robtest
commands that can be used are as follows:

s s (show slots)
s d (show drives)
s i (show load port)
m s250 d5 (move tape from slot 250 into drive 5)
uload d5 (unload tape from drive 5)
m d5 s250 (move tape from drive 5 to slot 250)
m s250 i1 (mov tape from slot 250 to load port 1)

List load port tapesecho "s i q" | tldtest -r /dev/sg/c0t4l0
List all slot contentsecho "s s q" | tldtest -r /dev/sg/c0t4l0
List tape drive contentsecho "s d q" | tldtest -r /dev/sg/c0t4l0
Move a tape in s100 to drive 1echo "m s100 d1" | tldtest -r /dev/sg/c0t4l0
Move a tape to load port 1echo "m s100 i1" | tldtest -r /dev/sg/c0t4l0
Archiving Commands

list archive info
bpcatlist -client all -before Jul 01 2006
bpcatlist -client all -before Aug 01 2006
archive and remove imagesbpcatlist -before Jul 01 2006 | bpcatarc | bpcatrm
restore archive files
bpcatlist -before Jul 01 2006 | bpcatres
Client commands

test client connectivity
bpclntcmd [-ip ]
bpclntcmd [-hn ]
bpclntcmd [-pn]
bpclntcmd [-sv]

Thursday, February 7, 2019

NetBackup Tutorial: Steps to verify device configuration using "robtest"

NetBackup Tutorial: Steps to verify device configuration using "robtest"


The process to absolutely verify that the drive path mapping is correct on all of the media servers is a bit time consuming, but will ensure that everything is correct. 

Step 1 
Please note that this test cannot be run while VERITAS NetBackup (tm) is attempting backups, restores, duplicates, or any other actions that involve the robot and drives. 

Step 2 
Acquire the output of " /usr/openv/volmgr/bin/tpconfig -d " from each of the media servers. This is the drive configuration within NetBackup for each server. 

Tuesday, December 11, 2018

Netbackup (CLI) Important Commands (Useful Commands) and Explanations


NetBackup: Create Backup Policy in Veritas NetBackup (Symantec) – Verify Windows or Unix Policy

Being a NetBackup backup administrator we should know minimum commands to manage our regular tasks with a simple CLI commands, here I listed few which should know by every NetBackup administrator.

Master Server
1) Check the license details
/usr/openv/netbackup/bin/admincmd/get_license_key

2) Stop and Start the netabackup services

WINDOWS:
Stop the NetBackup Services. 
\Veritas\NetBackup\bin\bpdown /f /v
start the NetBackup Services.
\Veritas\NetBackup\bin\bpup /f /v

UNIX:
i) /etc/init.d/netbackup stop (start)       —>  graceful stop and start
ii) /usr/openv/netbackup/bin/bp.kill_all    —> Stop backup including GUI sessions, ungraceful
iii) /usr/openv/netbackup/bin/bp.start_all —> Start the backup                   
iv) /usr/openv/netbackup/bin/initbprd      —> starts the master server
v) /usr/openv/netbackup/bin/vmd           —> starts the media server
vi) /usr/openv/netbackup/bin/jnbSA        —> Starts the GUI sessions

Thursday, August 6, 2015

15 Must Know Windows Run Commands - Updated

On the Microsoft Windows operating system, the Run command is used to directly open an application or document whose path is known.

15 Must Know Windows Run Commands - Updated


We will show up you 15 awesome Run commands that’d helps you to bypass a series of clicks, thereby making things faster in your daily usage of Windows.

Wednesday, February 8, 2012

Upgrade from Windows Server 2003 Domain Controller to Windows Server 2008



Introduction

I have been using Windows Server 2003 for years and I believe its time to shift and try using Windows Server 2008, I have downloaded RC0 and decided to Upgrade my Domain Controller, which is also a DNS & DHCP Server to Windows Server 2008 Standard Edition RC0. In this article, I will show you step by step how to perform an in-place upgrade for a Domain Controller from Windows Server 2003 To Windows Server 2008 RC0

Note: This article was written when Windows Server 2008 was still RC0. Changes might occur later once the product is RTM'd Upgrade Steps
  1. On you Windows Server 2003 DC, insert the Windows Server 2008 DVD, and then open command prompt and run the following commands, make sure first to browse to the adprep directory inside the Windows 008 DVD , in my case case, the F drive is the DVD Drive letter, so to browse to the adprep directory I would write the following inside cmd:cd f:\sources\adprerp

    adprep/ forestprep

Tuesday, August 2, 2011

Useful VMware Commands


Useful VMware Commands


Restart management services:
Service mgmt-vmware restart
Find DNS servers:
Cat /etc/resolv.conf
Check ESX version:
esxupdate query
Restart vmware management:
service vmware-vpxa restart
service mgmt- vmware restart
vdf –h
view partion info (disk space etc)
ls –larth
list files in a directory in by GB, MB (easy to see file sizes)
ls –larth *delta*
as above but only show files with “delta” in the name
List registered VMs:
vmware-cmd –l (gives machine id)
Check if VM powered on (e.g.):
vmware-cmd /vmfs/volumes/4a006885-0aed81dd-0cdc-002219b72e1d/Exchange01/Exchange01.vmx getstate
Check if VM powered on (e.g.):
Type ifconfig to check the current IP address.
esxcfg-vswif -i x.x.x.x vswif0
Example esxcfg-vswif -i 10.0.1.3 vswif0
Check jumbo frames are working
Vmkping –s 9000
ifconfig
Display IP information

Please Click any of the following link