The cmap command does not have the ability to rename a NIMS map, but this procedure shows how to achieve the same result.
The cmap command, which is used to create and manage NIMS maps, does not have a "rename" capability. To achieve the same result, create a new NIMS map with the desired name, which will replace the NIMS map to be renamed (the "old" NIMS map), and then delete the old NIMS map.
- Create a new NIMS map with the desired name.
If no data has changed in the old NIMS map (no cnode commands have been performed), then simply create a new NIMS map with the desired name.
smw# cmap create <new_NIMS_map_name>
If data may have been changed in the old NIMS map, then clone the old NIMS map, naming the clone the desired name.
smw# cmap create --clone <old_NIMS_map_name> <new_NIMS_map_name>
Trouble? The
cmap command will first verify that the CLE config set associated with the NIMS map exists. If it does not exist, the command will fail with an error message to that effect.
- If the config set is expected to be missing (for example, during an installation when the CLE config set has not yet been created), then repeat the cmap create command with the
--no-verify flag. - If the config set is NOT expected to be missing, then create/locate the missing config set, set it as the default config set for the NIMS map, and repeat the cmap create command.
- Delete the old NIMS map that is being replaced by the new one just created.
smw# cmap delete <old_NIMS_map_name>