The Method RequestServerStateChangeallows a Clientto request a state change in the Server.

The Clientshall provide credentials with administrative rights when invoking this Methodon the Server.

Signature

RequestServerStateChange(

[in] ServerState state

[in] DateTime estimatedReturnTime

[in] UInt32 secondsTillShutdown

[in] LocalizedText reason

[in] Boolean restart

);

Argument

Description

state

The requested target state for the Server. If the new state is accepted by the Server, the State in the ServerStatusis updated with the new value.

estimatedReturnTime

Indicates the time at which the Server is expected to be available in the state RUNNING_0. If no estimate is known, a null DateTimeshall be provided. This time will be available in the EstimatedReturnTimeProperty.

This parameter shall be ignored by the Server and the Property EstimatedReturnTimeshall be set to null if the new state is RUNNING_0.

secondsTillShutdown

The number of seconds until a Server shutdown. This parameter is ignored unless the state is set to SHUTDOWN_4 or restart is set to True.

reason

A localized text string that describes the reason for the state change request.

restart

A flag indicating if the Server should be restarted before it attempts to change into the requested change. If the restart is True the server changes it state to SHUTDOWN_4 before the restart if secondsTillShutdown is not 0.

Method Result Codes (defined in Call Service)

Result Code

Description

Bad_UserAccessDenied

The current user is not authorized to invoke the method

Bad_InvalidState

The requested state was not accepted by the server

Table 115specifies the AddressSpacerepresentation for the RequestServerStateChange Method.

Table 115– RequestServerStateChange Method AddressSpace definition

Attribute

Value

BrowseName

RequestServerStateChange

References

NodeClass

BrowseName

DataType

TypeDefinition

ModellingRule

HasProperty

Variable

InputArguments

Argument[]

PropertyType

Mandatory

Conformance Units

Base Info ServerType