Once you have created a bundle template, you can edit its name, description and search criteria. Use the bdb.b.mod command to modify the bundle template. Use the following arguments with the bdb.b.mod command:
The ID of the bundle template.
The new description of the bundle template.
Search criteria for entities to be included in the bundle template. Criteria are declared as indicated in Declaring Search Criteria for a Bundle Template.
The bdb.b.mod command does not change the ID of the bundle template.
Once you are satisfied with the bundle template, save it and export it in the form of a bundle jar.
The bdb.b.mod command overwrites existing search criteria.
To delete a single search criteria, all existing criteria except the one to be deleted, need to be provided to the bdb.b.mod command.
When you use the bdb.b.mod command with the -criteria option, all existing are overwritten, even if you do not declare them with the bdb.b.mod command. Criteria that you do not declare are removed.
For full usage of this command, see Appendix A, Appendix — New Commands.
This example shows how to use the bdb.b.mod command to modify a bundle template, overwriting all existing search criteria.
bdb.b.mod -ID 129158239041-00830 -criteria "CT:name=myCompType;HS:name=myHostSet;HR:name=myHostSearch;HT:name=myHostType;" |
The output of the command is the bundle template ID.
129158239041-00830 |
The ID remains that same as it was before the bundle template search criteria were modified.
This example shows how to use the bdb.b.mod command to modify a bundle template, removing all existing search criteria.
bdb.b.mod -ID NM:b1 -desc "modified" -criteria "empty" |
The following command also works.
bdb.b.mod -ID NM:b1 -desc "modified" -criteria "" |
The output of the command is the bundle template ID.
129158239041-1163688372443-00830-2096382958 |
The ID remains that same as it was before the bundle template's search criteria were removed.
Delete a bundle template using the bdb.b.del command.
The bdb.b.del command takes the ID of the bundle template as an argument. You can delete a bundle template without deleting the entities that it references. This is because the entity search criteria, and not the entities themselves, are saved in the bundle template.
This example shows how to use the bdb.b.del command to delete a bundle template.
bdb.b.del -ID NM:myBundle |
For full usage of this command, see Appendix A, Appendix — New Commands.