PreviousNext

Changing Server Configurations

Sometimes you might want to change a server's configuration information. For instance, you want to change the -starton attribute from boot to explicit so that you can control the server manually.

To change the normal server configuration attributes you must first delete all of the existing attributes and then create new ones. Avoid losing the current information by first using a server show operation to display it on your screen.

The steps are illustrated in the following example with uses a server show operation to capture the current server configuration information. The server delete operation removes the configuration information and a server create operation inserts the new -starton attribute along with the remaining server configuration information.

dcecp> server show /.:/hosts/silver/config/srvrconf/video_clip

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

{program {/usr/local/bin/vclip}}

{arguments {-catalog}}

{prerequisites {}}

{keytabs {683cf29a-e456-11cd-8f04-0000c08adf56}}

{services {{annotation "Video Clip Catalog and Server"}}

{principals {Vclip_Srv_1}}

{starton {boot}}

{uid 1441}

{gid 1000}

{dir {/tmp}}

dcecp> server delete /.:/hosts/silver/config/srvrconf/video_clip

dcecp> server create /.:/hosts/silver/config/srvrconf/video_clip \

> -program /usr/local/bin/vclip \

> -directory /tmp -arguments {-catalog} \

> -principal Vclip_Srv_1 \

> -entryname /.:/subsys/applications/video_clip_1 \

> -starton {explicit} \

Ø -services {{annotation "Video Clip Catalog and Server"}}

dcecp>

You can directly change ERA information by using a server modify operation. The following example changes a server's ERA called srvconf/objfamily to contain new values. This operation assumes the extended registry attribute has already been created using an xattrschema create operation described in the previous topic titled Extending Server Configurations.

dcecp> server modify /.:/hosts/silver/config/srvrconf/video_clip \

Ø -change {srvconf/objfamily {c09dcc40-e4f4-11cd-bd59-0000c08adf56}}

dcecp>