About best practices

Article:HOWTO94414  |  Created: 2013-11-26  |  Updated: 2015-01-13  |  Article URL http://www.symantec.com/docs/HOWTO94414
Article Type
How To



About best practices

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.

See About running NetBackup commands

See About operating systems commands

See About best practices

See About known limitations

Legacy ID


Article URL http://www.symantec.com/docs/HOWTO94414

Terms of use for this information are found in Legal Notices