Veritas NetBackup™ Virtual Appliance Documentation
- Getting started
- Deployment and initial configuration
- Post initial configuration procedures
- Configuring
- About configuring Host parameters for your appliance on the NetBackup Virtual Appliance
- Alerting
- About SNMP
- About Call Home
- Using
- About storage configuration
- About viewing storage space information using the Show command
- About NetBackup Virtual Appliance as a VMware backup host
- About running NetBackup commands from the appliance
- About mounting a remote NFS
- About Auto Image Replication from a NetBackup Virtual Appliance
- About storage configuration
- Logging
- Troubleshooting
- About NetBackup support utilities
- Security
- About Symantec Data Center Security on the NetBackup Virtual Appliance
- Setting the appliance login banner
- Managing users
- About authenticating LDAP users
- About authenticating Active Directory users
- About authenticating Kerberos-NIS users
- About user authorization on the NetBackup Virtual Appliance
- Creating NetBackup administrator user accounts
- Section I. Commands
- Commands overview
- Appendix A. Appliance commands
- Appendix B. Network commands
- Appendix C. Support commands
- Appendix D. Monitor commands
- Appendix E. Settings commands
- Appendix F. Reports commands
- Appendix G. Manage commands
Best practices for running NetBackup commands from the NetBackup Virtual Appliance
The following list provides examples of how you, a NetBackup administrator, can configure an appliance so you can run NetBackup commands from the restricted shell.
You can only create files and directories in user home directory and the subdirectories.
An auto-generated alias file is created in the user home directory that contains a sudo alias for all the NetBackup commands. Thus, when you use a base command name you do not need to specify sudo when you run the command.
The alias file is not honored when you run a command in a script. You must specify sudo before you can use the command.
You can create a file that contains variables for all NetBackup commands with sudo prefix. The variable can be used in the automation scripts to avoid use of sudo for every NetBackup command invocation. The variable file can be sourced in the scripts. For example:
The following command enables you to use the variable ${bpps}.
bpps="sudo /usr/openv/netbackup/bin/bpps"
The following command enables you to use the variable ${nbemmcmd}.
nbemmcmd="sudo /usr/openv/netbackup/bin/admincmd/nbemmcmd"
A cdnbu alias is available for you to use to change directory to a NetBackup install path. That alias takes you to the /usr/openv/ directory.