Command "caf setcomputername <newname>" takes a long time to execute.
search cancel

Command "caf setcomputername <newname>" takes a long time to execute.

book

Article ID: 52978

calendar_today

Updated On:

Products

CA Automation Suite for Data Centers - Configuration Automation CA Client Automation - Asset Management CA Client Automation - IT Client Manager CA Client Automation CA Client Automation - Remote Control CA Client Automation - Asset Intelligence CA Client Automation - Desktop Migration Manager CA Client Automation - Patch Manager CA IT Asset Manager CA Software Asset Manager (CA SAM) ASSET PORTFOLIO MGMT- SERVER CA Server Automation CA Service Management - Asset Portfolio Management CA Service Management - Service Desk Manager

Issue/Introduction

Description:

The following command takes a long time to execute:

caf setcomputername <newname>
The name has been changed from <oldname> to <newname>.
Asking caf to re-register...
Caf registered with scalability server iw1188adm.phys.pack.
Command completed successfully.

If the command takes more than 4 minutes the command returns the following output:

caf setcomputername <newname>
The name has been changed from <oldname> to <newname>.
Asking caf to re-register...
The specified operation has expired. The timeout is usually a client supplied value.

Solution:

From R12 onwards, "caf setcomputername <newname>" command does 2 things:

  • Change the name of the computer in comstore

  • Execute a caf register all

In pre R12 versions only the change of name in comstore was performed by the command.

caf setcomputername waits for the of these 2 steps before finishing.
On some machines caf register all could take several minutes due to the Basic Hardware Inventory registration which could take long time.

The above command can be replaced by the folllowing 2 commands which execute quickly:

  • ccnfcmda -cmd SetParameterValue -ps itrm/agent -pn agentname -v <newname>

  • caf register all

"caf register all" returns quickly because it does not wait for the termination of the register process, which is executed in the background.

Environment

Release:
Component: TNGAMO