Copy a template event to create an event rule
You can use the nzevent copy command to copy a predefined template for activation.
The following example copies a template event named NPSNoLongerOnline
to create a user-defined rule of the same name, adds a sample email
address for contact, and activates the rule:
nzevent copy -u admin -pw password -useTemplate -name
NPSNoLongerOnline -newName NPSNoLongerOnline -on yes -dst
jdoe@company.comWhen you copy a template event rule, which is disabled by default, your new rule is likewise disabled by default. You must enable it by using the -on yes argument. In addition, if the template rule sends email notifications, you must specify a destination email address.