Importing groups and rules

You must use the following columns when importing new groups:

  • npath
  • type
  • rule if type=generated
And the following columns when importing new rules:
  • npath
  • cond
  • type = rule

When updating existing groups and rules, you must use the dbIndex or npath columns, and the columns to be modified.

The following table lists the commands

Import Command
Insert or update group
resmgr -import segp -colNames "npath name type 
state origin" -line "~NOC Reporting~
CustomerA|_|CustomerA|_|static|_|on|_|
resgmr"
Insert group if it does not exist and link subelement to it
resmgr -import segp -colNames "npath se.name"
Link subelement to group only if the group exists
resmgr -import linkGroupSE -colNames "npath se.name" 
Insert group if it does not already exist and link report to it
resmgr -import segp -colNames "npath app.name"
Link report to group only if the group exists
resmgr -import linkGroupSE_APP -colNames 
"npath app.name" 
Insert group if it does not exist and link report user to it
resmgr -import segp -colNames "npath rusr.name"
Link report user to group only if group exists
resmgr -import linkGroupSE_RU -colNames 
"npath rusr.name"
Insert group if it does not exist and link timezone to it
resmgr -import segp -colNames 
"npath cal.name tz.name"
Link timezone to group only if group exists
resmgr -import linkGroupSE_TZC -colNames 
"npath cal.name tz.name"