Create a new global catalog.
cat create <name>
Name of the catalog to create. It may be in the following format:
/catalog - Create a global catalog
cat create /system2
Create new global catalog named '/system2'
Destroy an application or global catalog.
catalog destroy catalog [ --force ]
Name of the catalog to destroy. It may be in one of the following formats:
Destroy a local catalog of an application
Destroy a global catalog
skip asking verification to destroy the catalog
catalog destroy /system
Destroy global catalog
catalog destroy sugarcrm/local
Destroy local application catalog
Export an entire catalog.
cat export <catalog> <dir> [--force] [--nocompress] [ --preserve_acl | --preserve_local_acl | --preserve_global_acl ]
Name of catalog to be exported. May specify one of the following:
a) <application>/<catalog>
b) /<catalog>
Name of exchange directory relative to /vol/_impex where catalog is to be exported to
Option to allow exporting of catalog class even if it is already present (i.e., each class is removed and then exported)
Option to disable compression of volume images.
Preserve the global catalog ACL if it is present.
Preserve local principals in the global catalog ACL.
Preserve global principals in the global catalog ACL.
cat export my-app/local catalog
Export all classes from local catalog of application 'my-app'.
cat export /system catalog
Export all classes from global catalog.
By default global catalog ACL's are not preserved during export.
Display the global catalog ACL, or display that portion of the global catalog ACL which relates to a particular principal.
catalog get_acl <name> [ <principal> ] [ --batch ]
Name of the global catalog.
Name of a principal. <principal> is in the following form:
Local user or group.
Global user or group.
A fully qualified principal name where where <scope> is 'global' or 'local', <type> is 'group' or 'user', and <name> is the group or user name.
Display output in UDL format.
catalog get_acl /mycat
Display the catalog ACL.
catalog get_acl /mycat local:user:admin
Display the catalog ACL entry for local user 'admin'.
catalog get_acl /mycat admin
Display the catalog ACL entry for local user 'admin'.
The output of this command is as follows:
Non-batch output
--- Owner Information --- ID Scope Type Name ------------------------------------------------------------------------- val val val val --- Entry Information --- ID Scope Type Name Access -------------------------------------------------------------------------------- val val val val val ... The value of Scope is local or global. The value of Type is user or group. The value of Access is a comma separated list of access levels or permissions. If the principal is a local user or group which has been deleted, the value for Scope, Type and Name is *.
Batch output
acl
{
owner : id="val" # scope type name
entries
[
id="val", access_level1, ... access_levelN, permission1, ... permissionN # scope type name
...
]
}
Display application or global catalog package descriptor.
catalog get_desc catalog
Name of the catalog for which to display package descriptor. It may be in one of the following formats:
application/catalog - Display application local catalog package descriptor
/catalog - Display global catalog package descriptor
catalog get_desc /system
Display global catalog package descriptor
catalog get_desc sugarcrm/local
Display local application catalog package descriptor
Import an entire catalog.
cat import <catalog> <dir> [ store=<store>][--force][ user=<user>[ pwd=- ] ] [ --preserve_acl | --preserve_local_acl | --preserve_global_acl ]
Name of catalog to be imported. May specify one of the following:
a) <application>/<catalog>
b) /<catalog>
Name of exchange directory from which the catalog is to be imported. The directory may be one of the following:
Directory relative to /vol/_impex
URL with the following format 'http://<path>'
Specifies the volume store where volumes are created. May be set to one of the following values:
local - store volumes on local server storage
san - store volumes on a SAN
Option to allow importing of catalog even if it is already present (that is, each class is removed and then imported)
Name of user to use for authentication purposes when importing the catalog from a URL
(Optional) Prompt for password to use for authentication purposes when importing the catalog from a URL. If the standard input is not a terminal device, it will not print a prompt and expect only one copy of the password on 'stdin' (this can be used for batch operations, to set the password from a file).
Preserve the global catalog ACL if it is present.
Preserve local principals in the global catalog ACL.
Preserve global principals in the global catalog ACL.
cat import my-app/local catalog
Import all classes to local catalog of application 'my-app'
cat import /system catalog
Import all classes to global catalog
By default global catalog ACL's are not preserved during import.
Display information for a local application or global catalog.
Information displayed includes: name, description, number of classes, total disk space and list of protocols.
catalog info package [ --batch ] [ --verbose ]
Name of the package for which to display information.
application/catalog - Display information for a local catalog of an application
/catalog - Display information for a global catalog
Display output in UDL format
Include list of protocols
catalog info /system
Display information for global catalog
catalog info sugarcrm/local
Display information for local application catalog
Note: A specification of the output of this command can be found here.
Name : system Description : Total Classes : 26 Total Diskspace : 14.90 GB
The output of this command is the following (protocols are displayed if -verbose option is provided.
Name : val Description : val Total classes : val Total diskspace : val GB Protocols : (table containing the following columns: Name, Filter)
If --batch option is specified, the output is the following:
catalog <name>
{
description = "val"
total_classes = val
total_diskspace = val
protocol <name> : filter="<val>"
}
List global catalogs.
catalog list [ --batch ]
Display output in UDL format
catalog list
List global catalogs
Note: A specification of the output of this command can be found here.
Global Catalogs Name Description --------------------- proto system user dynamic filer
This topic contains command output specification.
The output of this command when listing global catalogs if a table with the following columns:
If --batch option is specified, the output is the following:
catalog <name> : description="<val>" ...
Migrate a catalog from or to a remote grid.
cat migrate <remote_grid> <cat> [.name=<new name>][.store=<store>] [<option>]*
Name of catalog to migrate. It may a global or application local catalog.
New name for the migrated catalog. It may be a global or application local catalog.
Specifies the volume store where volumes are created. May be set to one of the following values:
local - store volumes on local server storage
san - store volumes on a SAN
Migrate the catalog to the remote grid. This requires bi-directional trust between the two grids.
Migrate the catalog from the remote grid.
Do not compress volumes when migrating the catalog.
Skip cleanup upon failure or completion (troubleshooting).
Show debug information during migration (troubleshooting)
Preserve the global catalog ACL if it is present.
Preserve local principals in the global catalog ACL.
Preserve global principals in the global catalog ACL.
cat migrate myoldgrid.3tera.net /mycat
Migrate a global catalog from a remote grid to the local grid.
cat migrate myoldgrid.3tera.net /mycat .name=/mynewcat
Migrate a global catalog from a remote grid and rename it in the process.
cat migrate mynewgrid.3tera.net myapp/local .name=/newlocal
Migrate an application local catalog from a remote grid as a global catalog on the local grid.
Replace that portion of the global catalog ACL which relates to the owner or a principal.
catalog modify_acl <name> [ <principal>=owner ] [ <principal1>=<val1> ... <principalN>=<valN> ] [ template=<name> ][ --test_only ]
Set the owner attribute of the catalog ACL to the specified principal.
Add or replace the specified principal in the catalog ACL with access level <val>. <principal> is in the following form:
Local user or group.
Global user or group.
A fully qualified principal name where where <scope> is 'global' or 'local', <type> is 'group' or 'user', and <name> is the group or user name. Valid access levels are: read, control, configure and full. If the access level is specified as 'none' the principal is removed from the catalog ACL if it is present.
Replace the principal entries of the catalog ACL with those of the specified template catalog.
Do not replace any portion of the catalog ACL but rather test if the operation can succeed.
catalog modify_acl /mycat local:user:admin=full
Replace that portion of the global catalog 'mycat' ACL which relates to the local user 'admin', providing full access level permissions to this user.
catalog modify_acl /mycat admin=full
Replace that portion of the global catalog 'mycat' ACL which relates to the local user 'admin', providing full access level permissions to this user.
Replace the entire global catalog ACL.
catalog put_acl <name> <principal>=owner [ <principal1>=<val> ... <principalN>=<val> ] [ --test_only | --force ]
Name of the global catalog.
Set the owner attribute of the catalog ACL to the specified principal.
Add the specified principal to the catalog ACL with access level <val>. <principal> is in the following form:
Local user or group.
Global user or group.
A fully qualified principal name where where <scope> is 'global' or 'local', <type> is 'group' or 'user', and <name> is the group or user name. Valid access levels are: read, control, configure and full.
Do not replace the catalog ACL but rather test if the operation can succeed.
Skip prompting the user for verification.
catalog put_acl /mycat local:user:admin=owner local:user:admin=full
Replace the 'mycat' global catalog ACL such that the owner is the local user 'admin' and local user 'admin' has full access level permissions.
catalog put_acl /mycat admin=owner admin=full
Replace the 'mycat' global catalog ACL such that the owner is the local user 'admin' and local user 'admin' has full access level permissions.
Replace catalog package descriptor with descriptor obtained from standard input.
catalog put_desc catalog
Name of the catalog for which to modify package descriptor. It may be in one of the following formats:
application/catalog - Modify application local catalog package descriptor
/catalog - Modify global catalog package descriptor
catalog put_desc /system
Modify global catalog package descriptor
catalog put_desc sugarcrm/local
Modify local application catalog package descriptor
Notes:
'ssh root@<controllerhost> catalog put_desc /system < <newdesc>'
where <newdesc> is a file containing the modified descriptor.
Rename a global catalog.
catalog rename catalog new-catalog
Name of the catalog to rename. It may be in one of the following formats:
/catalog - Rename a global catalog
New name for the catalog. It must be in the form of /catalog.
catalog rename /system /system-old
Rename system catalog to system-old
Notes:
|
Copyright © 2012 CA.
All rights reserved.
|
|