EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB439903: List of statements supported in Command Manager Runtime for Metadata Lock Management.


Community Admin

• Strategy


This knowledge base article describes the command manager statements used for Metadata Lock Management.

Command Manager does not automatically lock a project or configuration when it executes statements. To avoid metadata corruption, you can use the following Metadata Lock Management statements in any Command Manager scripts that make changes to a project or server configuration.
 

Metadata lock management

1) Lock Project statement :  Locks a project in the metadata.
LOCK PROJECT "project_name" [FORCE] [PERMANENTLY];
where:     PROJECT "project_name" is the name of the project to be locked, of type string.  FORCE forces the project to lock.
2) Unlock Project statement. :  Unlocks a project in the metadata. UNLOCK PROJECT project_name [FORCE];
where:   PROJECT "project_name" is the name of the project to be unlocked, of type string.
3) Lock Configuration statement : 
Locks the project source configuration in the metadata.
LOCK CONFIGURATION [FORCE] [PERMANENTLY];
where: 

  • FORCE forces the configuration to lock.
  • PERMANENTLY locks the configuration permanently. Only the user who creates the lock can remove it.

4) Unlock Configuration statement :  
Unlocks the project source configuration in the metadata.
UNLOCK CONFIGURATION [FORCE];
where: FORCE forces the configuration to unlock.
5) List Lock Properties statement:
Lists all the lock properties for a given project or the project source configuration.
LIST [ALL] PROPERTIES FOR LOCK IN (CONFIGURATION | PROJECT "project_name");
where PROJECT "project_name" is the name of the project for which lock properties are to be listed, of type string. 
KB439903


Comment

0 comments

Details

Knowledge Article

Published:

March 12, 2018

Last Updated:

December 31, 2018