Server - renameServerFindByName

Server - renameServerFindByName

Description :

This command will lookup the server based on the original server name and change the name of the server to the provided new name.

This function will fail if the original server does not exist, the new name is blank, the new name matches the existing name, or if the new name is a duplicate of a pre-existing device name. Returns the server key for the updated server

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

originalServerName

String

The original name for the server

newServerName

String

The new name for the server.

Example

The following example updates a pre-existing server name engwin2kvm17 to engwin2kvm19.

Script





Server renameServerFindByName engwin2kvm17 engwin2kvm19 



Was this page helpful? Yes No Submitting... Thank you

Comments