The nbsu command is a Symantec utility that gathers a wide range of diagnostic information. With no command line options, nbsu runs all diagnostic commands that are appropriate for the following: OS platform, OS version, NetBackup host roll, and NetBackup version.
By default, nbsu gathers the appropriate diagnostic information that is based on the operating system and NetBackup environment. Several command line options allow the diagnostic information that is gathered to be "tuned" as desired.
The following items are needed before you can use the nbsu command:
nbsu is designed for use with NetBackup version 3.4 and greater.
For nbsu to create a support package (if required), the path to the tar and gzip programs must be included in the %PATH% environment variable. If these programs are not available, nbsu creates a single XML formatted output file.
The appropriate services or daemons must be running in the master server and media server environments.
Consider the following items when you program using the nbsu command:
With no command line options, nbsu selects all appropriate diagnostics to run and to gather information for.
To view a list of the diagnostic commands that nbsu selects, run nbsu with the -l command line option.
Use the appropriate command line options for the following items:
To omit individual diagnostic commands or groups of related diagnostic commands, use the -s command line option.
Runs only NBU configuration-related commands or procedures. This option is the default condition.
Runs only the diagnostic command or procedure listed. For a list of diagnostic commands or procedures, run nbsu with the -l command line option. Multiple -d options may appear in the list. For example:
Windows systems: -d OS_general -d OS_set
Runs nbsu in debug mode. Debug mode places additional program information into the file.
Runs only the diagnostic commands or procedures that are related to the group name. Diagnostic groups are "OS", "DEV", "NET", "NBU", and "MM". Multiple -g options may be listed. For example:
-g OS -g DEV
Interactive mode. Used to log on as a NetBackup security administrator.
Lists the diagnostic commands to be selected to run. Use with other command line options to display the appropriate diagnostic commands or procedures.
Lists all of the nbsu 1.0 diagnostics and commands. Can be used to output a detailed report of each diagnostic to STDOUT. Includes the selection criteria and commands to be executed.
Runs only the diagnostic commands or procedures that are related to the Media Manager exit status. Multiple -mm_e options may be listed. For example:
-mm_e 12 -mm_e 20
Runs only the diagnostic commands or procedures that do not make use of NetBackup or Media Manager commands. This command line option selects DEV, NET, and OS diagnostics and a subset of NBU and MM diagnostics.
Runs only the diagnostic commands or procedures that are related to the NetBackup exit status. Multiple -nbu_e options may be listed. For example:
-nbu_e 25 -nbu_e 41
Runs only the diagnostic commands or procedures that are related to the NetBackup host role. The following are the accepted host role parameter abbreviations:
rah = Remote Administration Host
Multiple -r options may be listed. For example:
-r ma -r cl
Skips the diagnostic command, procedure, or group listed. For a list of diagnostic commands or procedures, run nbsu with the -l command line option. Diagnostic groups are OS, DEV, NET, NBU, and MM. Multiple -s options may be listed. For example:
-s OS_general -s DEV
Runs only the diagnostic commands or procedures that are related to the NetBackup troubleshooting.
EXAMPLE 1: List the diagnostics to be selected to run on a NetBackup node:
# ./nbsu -l
EXAMPLE 2: Select an individual diagnostic command to run; do not compress the resulting support bundle:
# ./nbsu -d NBU_version -nozip
EXAMPLE 3: Select the network group of diagnostics to run, but skip the NET_dd diagnostic:
# ./nbsu -g NET -s NET_dd
EXAMPLE 4: Select the diagnostics that are associated with the NetBackup exit status code 41:
# ./nbsu -nbu_e 41
EXAMPLE 5: List the diagnostics that would be selected to run for the network diagnostic groups and operating system diagnostic groups on a NetBackup node:
# ./nbsu -l -g NET -g OS
EXAMPLE 6: Select an individual diagnostic command to run and to not zip the resulting support bundle:
# ./nbsu -d NBU_version -nozip
EXAMPLE 7: Select the network and operating system groups of diagnostics to run, but skip the NET_dd diagnostic:
# ./nbsu -g NET -s NET_dd -g OS
EXAMPLE 8: Select the diagnostics that are associated with the NetBackup exit status codes 21, 25, and 41:
# ./nbsu -nbu_e 21 -nbu_e 25 -nbu_e 41