CONFIG OBJECT GROUP ADDTO

Level

object,modify

History

Appears in Netasq 6.0.0
added position arg in Netasq 9.0.0
added update arg in 2.4.0

Description

Add object to group

Usage

group=<groupname> node=<node to add name> [pos=<position>] [update=<0|1|2>]

Remark

node might be an object or a group
this command returns an error if:
"group" or "node" don't exist
"node" is an object already included in "group" (no error if update>0)
"node" is an object included in a subgroup of "group"
"node" is a group and contains common element(s) with "group"
"node" is a group and contains an other group which contains "group"(it creates a loop)
"node" is a group and contains an other group which has common element(s) with "group" or another node

Example

CONFIG OBJECT GROUP ADDTO group=group1 node=host1

Cache category

objects