Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

Script to scan for VSP files

Updated: 26 May 2010 | 2 comments
Christopher Kollmar's picture
0 0 Votes
Login to vote

Hello,

I am the UNIX admin who also manages the backups.   I've been requested by the Windows team to come up with a script that can scan all Windows servers for leftover VSP files.  

Is there a script out there that can query AD for all servers or perhaps a text file with them listed and then complete a search against the servers for any leftover VSP files.

Anything would be great.

Thanks!

Comments

Stuart Green's picture
25
Nov
2009
0 Votes 0
Login to vote

Get your list of Windows servers and WOFB method with this

My understanding is that with NetBackup 6.x setting the Windows Open File Backup method is done via the Client Attributes under Host Properties of the Master Server and preferred over previous NetBackup versions where the registry held this setting.

I have a script I ran from my master to at least get me all the Windows clients and for each what Client Attributes were set in respect to the Open File method set. The first line will get you the text file of Windows clients/servers to further query.

for i in `bpplclients -allunique -noheader | grep Wind |  awk '{print $3}'`
do
        echo "=============== $i ================="
        bpclient -client $i -L
done

Heres an example of the output for one client

Client Name: subo
 Current Host:
        Hostname: subo
        IP Address: 0.0.0.0
 Dynamic Address:       no
 Free Browse:   Allow
 List Restore:  Not Specified
 Max Jobs This Client:  Not Specified
 WOFB Enabled:  no
 WOFB FIM:      VSP
 WOFB Usage:    Individual Drive Snapshot
 WOFB Error Control:    Abort on Error
 Connect options:       2 2 3

This should get you started.

There is also the following command but I'm not confident of the results it gives or its relevance under NetBackup 6.x
bpgetconfig -M $i VSP_USE OTM_USE VERSIONINFO

Tip: Get overview/document your NBU environment. Run 'nbsu' and review the output.

• If this provides help, please vote or mark appropriate solution.

sdw303's picture
25
Nov
2009
0 Votes 0
Login to vote

Chris, which version of

Chris, which version of NetBackup?

I have a DOS script that worked in v5.x which used the old "bpdir" command, but unfortunately the "bpdir" command has definitely been deprecated/removed in v6.5 (and possibly also deprecated in v6.0 but I can't confirm).  I haven't re-written it in VBS using A/D yet.