Information

This site will undergo a brief period of maintenance on Friday, 18 December at 12:30 AM Central/12:00 PM IST. During a 30 minute window, site availability may be intermittent.

StaticServerGroup - createServerGroup


StaticServerGroup - createServerGroup

Description :

This command creates a server group within a parent server group. The parent server group is identified by ID.

This command returns the ID of the newly created group.

Return type : Integer

Command Input :

Variable Name

Variable Type

Description

groupName

String

Name of the server group to be created.

parentId

Integer

ID of the server group that will be the parent group.

Example

The following example shows how to create a server group inside another group:

Script


# Get the ID of the parent server group by server group name

PARENT_SERVER_GROUP="/parent"

PARENT_SERVER_GROUP_ID=`blcli ServerGroup  [groupNameToId|ServerGroup - groupNameToId] $PARENT_SERVER_GROUP`

SERVER_GROUP1="group1"

# Now create new group

SERVER_GROUP1_ID=`blcli StaticServerGroup createServerGroup $SERVER_GROUP1 $PARENT_SERVER_GROUP_ID`



 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

TrueSight Server Automation Command Line Interface 22.2