typ_create [-d destsys] -a appname -r restyp
typ_list [-d destsys] -a appname -r restyp
typ_remove [-d destsys] [-fC] [-a appname]
Resources are used by LifeKeeper to represent volumes, applications or other objects known by the system. Resource types are classifications of resources and are distinguished by a common set of recovery procedures that can be applied to all instances. Resource type examples would include:
- File system volumes, for example K:
- File shares, for example UTIL_SHARE
- IP addresses, for example 22.214.171.124.
The typ_create and typ_remove commands provide an interface for generating new types in the configuration database. The command typ_list provides an interface to the configuration database for listing all resource types existing on a specific system.
All commands exit to 0 if they are successful. On failure, they return a nonzero code (see EXIT CODES section) and print to standard error. The following exit codes could be returned by these commands:
|The operation has succeeded.
|A system call or library call has internally returned failure.
|A user-specified syntax error occurred.
|LifeKeeper internal error.
|A request to perform an operation on an object that already exists.
|An argument specified is illegal.
|A request has been made on an object that does not exist.
|A request was made to delete a resource instance on which another non-deleted resource instance depends.
|An attempt to communicate with another system failed.