Follow

Controls the way events are sent from the InfiniBox to the user.


event.rule.create  

ROLE: Admin,

Description

Create a new event notification rule. 

Syntaxevent.rule.create name=NAME [level=LEVEL[,LEVEL,...]] [include=CODE[,CODE,...]] [exclude=CODE[,CODE,...]] [email=LOCALEMAIL[,LOCALEMAIL,...]] [snmp=SNMPTARGET] [syslog=SYSLOGTARGET]fs.set_compression fs=FS compression=YESNO
ArgumentsnameA maximum of 65 Latin characters, numbers, spaces, and the following symbols: "^&'@()[]$=!-#{}%.+~_" (excluding quotation marks). Leading and trailing whitespace characters are stripped.
includeEvent code (multiple values, separated by commas) 
levelEvent severity level (multiple values, separated by commas)
syslogName of an existing syslog notification target
snmpName of an existing snmp notification target
emaila valid email address (multiple values, separated by commas)
excludeEvent code (multiple values, separated by commas)
Exampleevent.rule.create name=rule1include=VOLUME_CREATE,VOLUME_DELETE email=infinibox@infinidat.com
Event rule rule1 created 



event.rule.delete  

ROLE: Admin 

Description

Delete event notification rule.  

Syntaxevent.rule.delete rule=EVENTRULE 
Argumentsrule Name of an existing event rule 
Exampleevent.rule.delete name=rule1 
Event rule rule1 deleted 



event.rule.modify  

ROLE: Admin,

Description

Modify existing event notification rule.

Syntaxevent.rule.modify rule=EVENTRULE [level=LEVEL[,LEVEL,...]] [include=CODE[,CODE,...]] [exclude=CODE[,CODE,...]] [email=LOCALEMAIL[,LOCALEMAIL,...]] [snmp=SNMPTARGET] [syslog=SYSLOGTARGET] 
Argumentsrule Name of an existing event rule
snmp Name of an existing snmp notification target
email a valid email address (multiple values, separated by commas)
exclude NONE, or event code (multiple values, separated by commas)
include NONE, or event code (multiple values, separated by commas)
level NONE, or event severity level (multiple values, separated by commas)
syslog Name of an existing syslog notification target
Exampleevent.rule.modify name=rule1 include=VOLUME_RESIZE 
Event rule rule1 updated 



event.rule.query 

ROLE: All Roles  

Description

List existing event rules. 

Syntaxevent.rule.query [rule=EVENTRULE] 
Argumentsrule Name of an existing event rule 
Exampleevent.rule.query name=rule1
Name       rule1 
Target     SMTP 
Server     customer-smtp
Recipients recipient@infinidat.com 
Level      INFO 
Include    VOLUME_CREATE
Exclude    -
Name       rule2 
Target     SNMP 
Server     snmpv3 
Recipients - 
Level      WARNING 
Include    VOLUME_DELETE
Exclude    -



event.rule.rename  

ROLE: Admin 

Description

Rename existing event notification rule. 

Syntaxevent.rule.rename rule=EVENTRULE new_name=NAME 
Argumentsnew_nameA maximum of 65 Latin characters, numbers, spaces, and the following symbols: "^&'@()[]$=!-#{}%.+~_" (excluding quotation marks). Leading and trailing whitespace characters are stripped.
rule Name of an existing event rule 
Exampleevent.rule.rename name=rule1 new_name=rule2 
Event rule rule1 renamed rule2 



Was this article helpful?
0 out of 0 found this helpful

0 out of 0 found this helpful

Last edited: 2022-08-06 08:32:47 UTC

Comments