CONFIG OBJECT RENAME

Level

object+modify

History

Appears in 9 0 0

Description

Rename objects

Usage

type=<host|range|network|router|service|time|group|servicegroup|urlgroup|cngroup|urlcategorygroup|cncategorygroup|geogroup|iprepgroup> oldname=<old_objname> newname=<new_objname>

Remark

rename all the occurences of old_objname to new_objname in the configuration files
this command returns an error code if :
old objname is not found
new objname already exists

Example

config object rename type=host oldname=foo newname=bar CACHE_CATEGORY objects+filter CACHE_CATEGORY_CLONE objects+filter