Интерактивная система просмотра системных руководств (man-ов)
dscfg (1)
>> dscfg (1) ( Solaris man: Команды и прикладные программы пользовательского уровня )
NAME
dscfg - configuration tool for Sun StorageTek Availability Suite software
SYNOPSIS
dscfg
dscfg-L
dscfg-h
dscfg [-Cgroup]
dscfg [-Cgroup] -i [-pparser_config_file]
dscfg [-Cgroup] -aconfig_file
dscfg [-Cgroup] [-l]
dscfg [-Cgroup] [-l] -sconfig_location
dscfg-Ddgname
DESCRIPTION
The dscfg command controls the Availability Suite configuration by providing facilities to initialize, list, format, restore the configuration database.
OPTIONS
If no options are specified, dscfg displays the current local configuration location. The dscfg command supports the following options:
-L
Displays the status of the lock controlling access to the configuration database. If the configuration database is locked, the type of lock (read or write) is displayed along with the process id of the process that holds the lock.
-h
Displays the usage message for the dscfg command.
-i
Initializes the configuration database. As it deletes previous or current configuration information, this option prompts you to confirm the deletion before proceeding.
-pparser_config_file
When used with the -i option, dscfg loads the parser configuration file into the persistent configuration, it reformats the configuration database.
-aconfig_file
Restore the specified config_file into the configuration. This option does not do any error checking of the file. Use of this option invalidates the configuration file.
-l
Lists the contents of current configuration database in a format that is suitable for the -a option. When used in combination with the -s option, it displays the contents stored in the location passed to the -s option, but does not
set the configuration location.
The options below are for Sun Cluster-configured systems only. group can be either Sun Cluster device group or as '-' as local devices.
-Cgroup
Display the location of cluster configuration database.
-Cgroup-i
Initializes the configuration database entries that only associated with group specified. As it deletes previous or current configuration information, this options prompts you to confirm the deletion before proceeding.
-Cgroup-pparser_config_file
When used with the -i option, dscfg loads the parser configuration file into the persistent configuration, it reformats the configuration database entries that only associated with group specified.
-Cgroup-aconfig_file
Restore the specified config_file into the configuration database entries that only associated with group specified. This option does not do any error checking of the file. Use of this option invalidates the configuration file.
-Cgroup-l
Lists the contents of current configuration database that is associated with resource group specified.
-Cgroup-sconfig_file_location
Specifies where the Sun Cluster configuration database resides, the location has to be DID device.
-Ddevice_group
Checks whether the specified device_group is known by Sun Cluster and whether it is available on this node. It displays a information that indicates the device group's status and return values are as follows,
(use echo $? to retrieve the return value):
1
Device group is in Sun Cluster and is active on this node;
0
Device group is in Sun Cluster but active on another node;
-1
Device group is not in Sun Cluster.
USAGE
The dscfg command is typically run from other scripts, such as package installation scripts, and from dscfgadm(1M). It is not intended for general use.
For uses of dscfg not covered by dscfgadm, please refer to the Availability Suite Troubleshooting Guide.
FILES
/etc/dscfg_format
parser configuration file
/etc/dscfg_local
configuration location for all entries with no cluster tags
/etc/dscfg_cluster
reference file specifying the location of the Sun Cluster configuration database.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes: