PreviousNext

Disabling and Enabling Services

You can prevent clients from using a service offered by a server - even when the server is running - by setting its services to disabled. When set to disabled, server endpoint information is not returned to requesting clients, thereby preventing clients from finding servers. Instead, clients receive a server status of: endpoint not registered. Clients that previously acquired the server endpoint can still communicate with the server, however.

When a server provides multiple interfaces, you can disable any one or more of its interfaces by specifying their interface identifiers. The following example disables one service of the video_clip server.

dcecp> server disable /.:/hosts/silver/config/srvrexec/video_clip \

> -interface {d860322b-d499-11cd-9dfb-0000c08adf56 1.0}

dcecp>

The next example enables the vidsrv service of the video_clip server after it has been disabled. This operation allows clients to acquire a server's endpoint.

dcecp> server enable /.:/hosts/silver/config/srvrexec/video_clip \

> -interface {d860322b-d499-11cd-9dfb-0000c08adf56 1.0}

dcecp>