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 188.8.131.52.
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:
|0||The operation has succeeded.|
|1||A system call or library call has internally returned failure.|
|2||A user-specified syntax error occurred.|
|3||LifeKeeper internal error.|
|4||A request to perform an operation on an object that already exists.|
|5||An argument specified is illegal.|
|7||A request has been made on an object that does not exist.|
|8||A request was made to delete a resource instance on which another non-deleted resource instance depends.|
|9||An attempt to communicate with another system failed.|
Post your comment on this topic.