CSS QueryGlobal Command
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Use this command to list the specified property that is defined for a Commerce Server Staging (CSS) server. If no property is specified, all properties are listed that are defined for the CSS server.
Note
You can define these properties through the CSS Microsoft Management Console (MMC) <CSS Server Name> Properties dialog box.
QueryGlobal [Property] [...] [GlobalFlags]
Parameters
Option |
Description |
---|---|
MailHost |
The name of the SMTP host. |
MailFrom |
The e-mail address of an account that represents the source of the e-mail. |
MailTo |
The e-mail address to receive notifications when a staging project succeeds or fails. |
MailToFail |
The e-mail address to receive notifications when a staging project fails. |
MailToSuccess |
The e-mail address to receive notifications when a staging project succeeds. |
Username |
The default authentication account user name. |
FullLogging |
Whether to enable full text logging. Only enable full text logging for debugging. |
RollbacksToKeep |
The number of rollbacks that can be saved on the server. A maximum of nine rollbacks is supported. |
TransactionMethod |
Specifies whether to perform transactional staging. Specifying this option is comparable to selecting Enable rollback and transactions on the server where content is staged. |
Global Flags
Flag |
Description |
---|---|
/Server <ServerName> |
Specifies the server for which the command should execute. Leave blank to execute the command on the server where you enter the command. |
/User <user> [pass | *] |
Specifies the credentials to use to run the command. You must specify a user name that has the required CSS administrator or operator rights on the server where the command will be executed. If you omit the user name, the user name of the person who enters the command is used. If you omit the password or enter an asterisk, CSS prompts you for the password. The password you enter is not displayed on the screen. |
Return Value
This command returns the property assignments that are defined for the CSS service on the specified server.
Remarks
To set global properties on a server, see SetGlobal command.
Example
The following command returns all property assignments that are defined for the local server. The credentials of the user who is logged into the local server are used to execute the command. This user must have CSS administrator rights on the server in order to execute the command.
C:%COMMERCE_SERVER_ROOT%\Staging\Bin>Css QueryGlobal
Staging Command Line Interface, BUILD 6.0.3724.0
TransactionMethod : Yes
DataDir : C:\Program Files\Microsoft Commerce Server 2007\Staging\Data\
PackageFolder : C:\Program Files\Microsoft Commerce Server 2007\Staging\Packages\
MailTo : CSSAdmin@adventure-works.com
CSSDir : C:\Program Files\Microsoft Commerce Server 2007\Staging\
MailFrom : MailService@adventure-works.com
MailToFail : CSSAdmin@adventure-works.com
Port : 507
UserName : CSSUser
MailHost : adventure-worksSMTP
RollbackIndex : 9
Version : 6.0.3724.0
FullLogging : No
ProductName : Microsoft Commerce Server 2007 Enterprise Edition
ProjectFolder : C:\Program Files\Microsoft Commerce Server 2007\Staging\Projects\
EventsFolder : C:\Program Files\Microsoft Commerce Server 2007\Staging\Events\
RollBacksToKeep : 3
MailToSuccess : CSSAdmin@adventure-works.com
CurrentIndex : 3385
Command QueryGlobal completed successfully.