(C)SEP AG
Copyright 1999-2011 by SEP AG. All Rights reserved.
Any form of reproduction of the contents or parts of this manual is allowed only with the express written permission from SEP AG. When compiling and designing user documentation SEP AG uses great diligence and attempts to deliver accurate and correct information. However, SEP AG cannot issue a guarantee for the contents of this manual.
Contents |
The SEP sesam command line interface (SEP sesam CLI) is used to install and configure a SEP sesam environment automatically with any GUI. This CLI is integrated in the SEP sesam server from version 3.6 and higher. Every CLI command (except a native SQL statement) checks and follows the internal structure and dependencies of the SEP sesam database.
Features:
| Attention: Recommendations for using the SEP sesam Command Line Interface (CLI) |
|
When using the optional Command Line features of SEP sesam commands are written directly to the SEP sesam database. The commands are immediately acted upon by SEP sesam once the <Enter> key is pressed. Therefore, there is no chance to correct or change an entry, which is possible when using the SEP sesam GUI. For this reason it is extremely important to follow a specific and defined plan when using the command line to prevent a user caused system failure in the backup environment. Such a mistake is not to be underestimated – a wrong or mistaken entry can lead to complete data loss or other damage to the database. Unchecked or unverified command line entries should be avoided! Such mistakes can void the warranty offered by your SEP sesam licensing agreement. Before you start with scripting with the SEP sesam CLI you should acquire basic knowledge about the SEP sesam environment. First study the User Guide and the Administrator guide and work with a SEP sesam installation to get experience how the SEP sesam objects work together. Alternatively, use the seminar offers from SEP AG to learn the main structure of the functions and configuration of the SEP sesam. After that you're ready to start working with the SEP sesam CLI and write your first scripts. |
| CLI example |
|
Before you start reading the syntax description it could be helpful to have a look at a small SEP sesam CLI example for creation of a new SEP sesam environment by SEP sesam CLI. |
The following chapter describes the use of the object items of the SEP sesam CLI. There are mandatory and optional options. Mandatory options are designated by an asterisk (*). At the end of each object section there are one or more examples on how to use the command.
When building a new SEP sesam environment using the CLI, work in the same order as you would when using the SEP sesam GUI. Start with the Topology objects, then create tasks, schedules and finally connect the according events (e.g. backup, migration or command) to the schedules.
| Attention: Global Deletion |
|
With "Global Deletion" it's possible to delete a client or task with all dependent or related objects. That means if you want to delete a client you can delete all of its appropriate tasks at the same time. For example, if you delete a task during this process it will be removed from its task groups and task events. "Global Deletion" is available for client and task. You can enforce that by using the parameter -F YES. The string YES is for security. It verifies that the user actually wants to perform this task. If a backup client is connected to a loader or drive it cannot be deleted by the parameter Force. First remove the loader or drive and then re-start the client/task deletion. |
| Syntaxes | ||||||||||||||||||||||||||||
CLI main callUsage: Parameters: Commands: Commands for drive only: Commands for loader only: Objects: Example: Output: All INFO messages are written to standard error. They can suppressed by redirecting stderr to /dev/null.
Displaying SEP sesam DB dataThe content of the SEP sesam DB concerning several actions can be displayed with the parameter list or sql. Options:
Examples: The delimiter parameter is only valid with specific formats. Some usage examples follow:
Command: Output: Command: Output: Command: Output: Here are some examples for the different format (-F) values:
Command: Output:
Command: Output:
Command: Output:
Command: Output: You can use this output to create datasets manually, e.g. TopologyLocationAfter the installation of a new SEP sesam server a standard location - named Local - is created. You can use this default location to add your clients or create your own locations as desired. Usage: If 'ID' is set to 'auto' SEP sesam will generate it automatically. Options: Example: ClientRight after the installation of a new SEP sesam Server the SEP sesam server client object already exists. You have to register your backup clients in the SEP sesam environment before you can use them. If you add clients with the SEP sesam GUI during the registration process the SEP sesam Server checks if the client is visible/reachable to him. This is different with the SEP sesam CLI and therefore it's recommended to check the client availability by starting a small backup task after adding it (client). Usage: Options:
Options for 'NetWare': Example: InterfaceThe configuration of the interface is only necessary if you want to use LAN-free backup or a SAN environment. Your backup server has to have at least two network interface modules. They have to be configured with different IP addresses and DNS names. You can then create an interface for every network interface you'd like to use. For more information see the SEP sesam Admin Guide. Usage: Options: Example: Tape Library (Loader)This section will instruct you on how to configure your loader hardware.
Options (add|modify|remove) Options (load,unload,import|export):
Options (import|export): Options (load|unload): Example: Loader DeviceHere you configure your loader devices.
Options (add|modify|remove) Example: Drive groupEvery drive must be a member of a drive group. Therefore, drive group has to be created before adding a drive. Usage: Options: Example: DriveAfter creating drive groups you can add your drive to the desired drive group. After adding or modifying a drive SEP sesam immediately creates the internal drive structures. This will cause an interruption of all running backups. To avoid this, you can use the parameter -o noconfig. The drive configuration will only be written into the SEP sesam database. To use the drive for SEP sesam operation you must first execute the sm_config_drives command manually. Usage: Options: Options for Action REMOVE: Example: MediapoolThe number of necessary mediapools depends on your planned backup and media strategy. Usage: Options: Example: MediaUsage: Options (add): Options (modify): Example: InventoryUsage: Options: Example: TasksTaskUsage: Options (add|modify): Example: Options (start): Example: TaskgroupUsage: Options: Example: Taskgroup relationYou can combine several tasks to task groups. Usage: Options: Example: Migration taskUsage: Options: Filter options: Just one of the following 4 filter options can be set. Example: Restore taskUsage: Options: Example: Command taskUsage: Options: Example: Restart TaskUsage: Options: Parameter '-s' (saveset) can contain several savesets divided by comma Example: Schedules & EventsScheduleIf you want to execute your backups on a specific time table you have to create tasks first. Then you must create a schedule and add the task and the schedule to a backup event. There are different event types to connect to a schedule (see below). Usage: Options: Example:
Task eventUsage: Options: If ID is set to 'auto' SEP sesam creates a unique ID. Example: Migration eventUsage: Options: Example: Restore eventOptions Examples: Command eventUsage: Options: If ID is set to 'auto' SEP sesam creates an unique ID. Example: Media eventUsage: Options: If ID is set to 'auto' SEP sesam creates a unique ID. Example: ShortcutsCLI commands often used are also accessible through CLI shortcuts. The advantage is that the CLI command is shorter and the required parameter dependent on shortcut type will be set automatically. Example to show the difference between default cli usage and cli with shortcut usage: default : shortcut:
Init Media Pool: Init Media: Start Backup Start Backup Group Start Restore Task Start Migration Task Additional featuresSend emailCreate an accountUsage: Options: Example: Send an emailUsage: Options: If the account name is 'NONE' the parameters <-t, -f, -h> are mandatory. Example: Update GUIUsage: Options: Direct access to the SEP sesam database
Example: Format outputs of 'SELECT' SQL queries ErrorcodesIn case of an error the CLI returns a specific error code which describes the error type. See the following list of error codes:
Syntax examples
|
Our sales team would be happy to assist you!
Browse and discover videos by SEP.