Tuesday, July 10, 2012

Symantec NetBackup Windows Commands Tutorial


NetBackup for Windows:

NetBackup Operations

Commands in this section are located in the install_path\NetBackup\bin\admincmd directory.  Use -h or -? to display command options.

If You Want To…
Use the … Command

Or Use the NetBackup Administration Console …

Configure or view Global Attributes
bpconfig
NetBackup ManagementàHost PropertiesàMaster ServersàRight-click on a serveràProperties
Verify backup images
bpverify
NetBackup ManagementàCatalogàSearch tab
Back up catalogs (hot)
bpbackup
NetBackup ManagementàPoliciesàRight-click the hot catalog backup policy
Recover catalogs (hot)
bprecover
NetBackup ManagementàRecover the Catalog Wizard
List volumes used for backups
bpimagelist
NetBackup ManagementàReportsàMedia Written
Freeze, unfreeze, suspend, or unsuspend media
bpmedia
Media and Device ManagementàMediaàRight-click on a Volume
Label volumes
bplabel
Media and Device ManagementàMediaàRight-click on a Volume
Create/view policy information
bppllist 
NetBackup ManagementàPolicies
Administer policy attributes
bpplinfo 
NetBackup ManagementàPolicies
Administer clients in a policy
bpplclients  
NetBackup ManagementàPolicies
Administer the policy file list
bpplinclude 
NetBackup ManagementàPolicies
Modify an existing schedule window in a policy
bpplschedwin   
NetBackup ManagementàPolicies
Create, copy, or rename a policy
bppolicynew   
NetBackup ManagementàPolicies
Add, delete, or list a schedule within a policy
bpplsched   
NetBackup ManagementàPolicies
Modify a schedule within a policy
bpplschedrep 
NetBackup ManagementàPolicies
Administer NetBackup licenses
bpminlicense
Help menu àLicense Keys
Add a new storage unit
bpstuadd 
NetBackup ManagementàRight-click Storage UnitsàNew
Display storage units
bpstulist 
NetBackup ManagementàStorage Units
Modify a storage unit
bpsturep 
NetBackup ManagementàStorage UnitsàRight-click on a storage unitàChange
Expire an image
bpexpdate
NetBackup ManagementàCatalogsàRight-click an imageàExpire
Initiate a user-directed backup
bpbackup  
Backup, Archive, and RestoreàBackup Files tab
Monitor processes
bpps
Activity MonitoràProcess tab
Restore files
bprestore
Backup, Archive, and RestoreàRestore Files tab

 

Media Manager Operations

Commands in this section are located in the install_path\Volmgr\bin directory.  Use -h or -? to display command options.

If You Want To…
Use the … Command

Or Use the NetBackup Administration Console …

Add volumes to the volume database
vmadd
Media and Device ManagementàRight-click MediaàNew Volumes
Change media information in the volume database
vmchange
Media and Device ManagementàMediaàRight-click on a volumeàChange
Report the contents of a robotic library or compare the contents of a robotic library against the volume configuration
vmcheckxxx
Media and Device ManagementàMediaàRobotsà
Right-click on a robotàInventory Robot

Media and Device ManagementàDevicesàRobotsà
Right-click on a robotàInventory Robot
Manage and monitor devices
vmoprcmd
Media and Device ManagementàDevice Monitor

Media and Device ManagementàActivity Monitor
Add, change, delete, or list volume pools
vmpool
Media and Device ManagementàMediaàVolume Pools
Query the volume database or assign/ deassign media
vmquery
Not applicable
Update volumes
vmupdate
Media and Device ManagementàRight-click MediaàChange

Veritas NetBackup Unix Commands Tutorial


NetBackup  for UNIX:

NetBackup Operations

Commands in this section are located in the /usr/openv/netbackup/bin directory.  Use -h or -? to display command options.

If You Want To…
Use the … Command

Or Use the NetBackup Administration Console …

Configure or view Global Attributes
bpconfig or bpadm
NetBackup ManagementàHost PropertiesàMaster ServersàRight-click on a serveràProperties
Verify backup images
bpverify
NetBackup ManagementàCatalogàSearch tab
Back up catalogs (hot)
bpbackup
NetBackup ManagementàPoliciesàRight-click the hot catalog backup policy
Recover catalogs (hot)
bprecover
NetBackup ManagementàRecover the Catalog Wizard
List volumes used for backups
bpimagelist
NetBackup ManagementàReportsàMedia Written
Freeze, unfreeze, suspend, or unsuspend media
bpmedia
Media and Device ManagementàMediaàRight-click on a Volume
Label volumes
bplabel
Media and Device ManagementàMediaàRight-click on a Volume
Create/view policy information
bppllist or bpadm
NetBackup ManagementàPolicies
Administer policy attributes
bpplinfo or bpadm
NetBackup ManagementàPolicies
Administer clients in a policy
bpplclients or bpadm
NetBackup ManagementàPolicies
Administer the policy file list
bpplinclude or bpadm
NetBackup ManagementàPolicies
Modify an existing schedule window in a policy
bpplschedwin or bpadm
NetBackup ManagementàPolicies
Create, copy, or rename a policy
bppolicynew or bpadm
NetBackup ManagementàPolicies
Add, delete, or list a schedule within a policy
bpplsched or bpadm
NetBackup ManagementàPolicies
Modify a schedule within a policy
bpplschedrep or bpadm
NetBackup ManagementàPolicies
Administer NetBackup licenses
get_license_key
Help menu àLicense Keys
Add a new storage unit
bpstuadd or bpadm
NetBackup ManagementàRight-click Storage UnitsàNew
Display storage units
bpstulist or bpadm
NetBackup ManagementàStorage Units
Modify a storage unit
bpsturep or bpadm
NetBackup ManagementàStorage UnitsàRight-click on a storage unitàChange
Expire an image
bpexpdate
NetBackup ManagementàCatalogsàRight-click an imageàExpire
Launch the Admin. Console
jnbSA
Not applicable
Launch the Backup, Archive, and Restore interface
jbpSA
Backup, Archive, and Restore
Initiate a user-directed backup
bpbackup or bpadm
Backup, Archive, and RestoreàBackup Files tab
Monitor processes
bpps
Activity MonitoràProcess tab
Restore files
bprestore
Backup, Archive, and RestoreàRestore Files tab

 

Media Manager Operations

Commands in this section are located in the /usr/openv/volmgr/bin directory.  Use -h or -? to display command options.

If You Want To…
Use the … Command

Or Use the NetBackup Administration Console …

Add volumes to the volume database
vmadd
Media and Device ManagementàRight-click MediaàNew Volumes
Change media information in the volume database
vmchange
Media and Device ManagementàMediaàRight-click on a volumeàChange
Report the contents of a robotic library or compare the contents of a robotic library against the volume configuration
vmcheckxxx
Media and Device ManagementàMediaàRobotsà
Right-click on a robotàInventory Robot

Media and Device ManagementàDevicesàRobotsà
Right-click on a robotàInventory Robot
Manage and monitor devices
vmoprcmd
Media and Device ManagementàDevice Monitor

Media and Device ManagementàActivity Monitor
Add, change, delete, or list volume pools
vmpool
Media and Device ManagementàMediaàVolume Pools
Query the volume database or assign/ deassign media
vmquery
Not applicable
Update volumes
vmupdate
Media and Device ManagementàRight-click MediaàChange

Tuesday, July 3, 2012

SUDO CONFIGURATION TUTORIAL




sudo  is a program for Unix-like computer operating systems that allows users to run programs with the security privileges of another user (normally the superuser, or root). Its name is a concatenation of the su command (which grants the user a shell of another user, normally the superuser) and "do", or take action.
sudo works under Linux / Mac OS X and all UNIX like operating systems. Sudo allows you to delegate authority to give certain users or groups of users the ability to run some commands as root or another user while providing an audit trail of the commands and their arguments via a log file. With sudo you don't have to share root password with anybody.
Unlike the su command, users typically supply their own password to sudo rather than the root password. After authentication, and if the/etc/sudoers configuration file permits the user access, then the system will invoke the requested command.

visudo is a command-line utility that allows editing of the /etc/sudoers file in a safe fashion. It opens /etc/sudoers using the vi editor's interface, prevents multiple simultaneous edits with locks, performs sanity checks and checks for parse errors.




Login as a normal user and create a new user account.

For creating a user account, we need a root privilege. 




Sudo's main configuration file is /etc/sudoers. Do not edit this using any editors.

Use " visudo " utility to edit the file.




Usage /etc/sudoers Syntax
Following is the general syntax used by /etc/sudoers file:
USER HOSTNAME=COMMAND
Where,
§  USER: Name of normal user
§  HOSTNAME: Where command is allowed to run. It is the hostname of the system where this rule applies. sudo is designed so you can use one sudoers file on all of your systems. This space allows you to set per-host rules.
§  COMMAND: A simple filename allows the user to run the command with any arguments he/she wishes. However, you may also specify command line arguments (including wildcards). Alternately, you can specify “” to indicate that the command may only be run without command line arguments.



root ALL=(ALL) ALL

senthil1 ALL=Commands  ALL

senthil1 ALL=/usr/sbin/useradd, /usr/sbin/userdel

Senthil1 user can execute these two admin commands without the root password.


Login as a normal user, create user using "useradd senthil4"

You need to execute the command with "sudo"

$ sudo /usr/sbin/useradd  senthil5




Check with the /etc/passwd file.

cat /etc/passwd



Any other user trying to delete the user accounts using the sudo ... it will be logged.



sudo logs are stored in "/var/log/secure" file



cat /var/log/secure


All the sudo executes  are logged in this file ie successful as well as unsuccessful.