About best practices

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

Product(s)

Subject


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.

  • You should not delete the alias file in the home directory. If for any reason the alias file is deleted, you must recreate it manually from the same shell from where the alias file was deleted. The following steps from within the same shell where the alias was deleted to create a new alias file:

    • # alias > ~/.alias

    • # chmod 664 ~/.alias

    • If you are not able to recover the alias file with this method, then you can create an alias file manually for all the NetBackup commands. Otherwise, you must specify sudo even if you choose to use a base command name to run NetBackup commands.

  • 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



v90452259_v76923962


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


Terms of use for this information are found in Legal Notices