Follow

Controls the way InfiniBox events are displayed.


event.codes  

ROLE: All Roles 

Description

List all event codes.

Filter the list by code, level or reporter. State the code to list only the event codes without their details. State the level and select among critical, error, warning and info. State the reporter and select among block, custom, file, management, platform and RMR. Run the command without parameters to get a full list of all events.

Syntaxevent.codes [code=CODE[,CODE,...]] [level=LEVEL[,LEVEL,...]] [reporter=REPORTER[,REPORTER,...]]
ArgumentsreporterEvent reporter (multiple values, separated by commas) 
levelEvent severity level (multiple values, separated by commas) 
code Event code (multiple values, separated by commas) 
ExampleListing event codes that contain a specific string. The string can be part of either the code or the description
event.codes level=WARNING
CODE                   LEVEL    REPORTER DESCRIPTION 
ACTIVATION_PAUSED      WARNING  MGMT     System activation paused due to configuration tunable
AUTHENTICATION_FAILURE WARNING  MGMT     Authentication attempt of user '{username}' from
                                         IP:'{client_ip}' failed, please verify the
                                         credentials
ExampleListing event codes using the grep operatoListing event codes using the grep operator 
event.codes --grep=snapshot 
CODE                        LEVEL REPORTER DESCRIPTION 
FILESYSTEM_SNAPSHOT_CREATED INFO  MGMT     Filesystem snapshot '{FS_Snapshot_Name}' was                                                   created for filesystem '{fs_name}'
ExampleListing event codes using the grep operator, for a string that includes a space
event.codes --grep='consistency group'
CODE                        LEVEL REPORTER DESCRIPTION 
CG_CREATED  INFO  MGMT  Created consistency group '{cg_name}'
CG_DELETED  INFO  MGMT  Deleted consistency group '{cg_name}'



event.create  

ROLE: Admin 

DescriptionCreate a new custom event. 
Set the level and text of the event you create. Then, run the event.query command to see the event ID. Then, use the event ID to run the event.details command.
Syntaxevent.create level=LEVEL description=STR 
Argumentsdescription Any sequence of characters  
level Event severity level  
Exampleevent.create level=INFO description='free text' 
Event created 



event.delete 

ROLE: Admin 

Description

Set the event retention timestamp. 

Syntaxevent.delete retention=TIMESTAMP 
Argumentsretention A timestamp, e.g: '2011-04-13', '2011-04-13 18:30:12' 



event.details  

ROLE: Admin, Pool Admin

Description

Display an individual event. 

Syntaxevent.details seq=INT 
ArgumentsseqAn integer number 
Exampleevent.details seq=553   
Affected Entity ID       0
CODE                     CUSTOM_INFO_EVENT
Description              General
Seq                      553
Level                    INFO
Reporter                 CUSTOM
Source Node ID           1
System Version           1.5.0.7
Timestamp                2014-01-01 10:00:00
Username                 ADMIN 



event.levels  

ROLE: All Roles 

Description

List all event levels. 

Syntaxevent.levels 
Exampleevent.levels 
CRITICAL
ERROR
INFO
WARNING



event.query  

ROLE: Admin, Pool Admin
READ ONLY

Description

Display hierarchy of filesystems along with their snapshots. 

Syntax

event.query [from=TIMESTAMP] [to=TIMESTAMP] [from_seq=INT] [to_seq=INT] [code=CODE[,CODE,...]] [exclude=CODE[,CODE,...]] [level=LEVEL[,LEVEL,...]] [reporter=REPORTER[,REPORTER,...]] [username={INTERNAL|USER}[,{INTERNAL|USER},...]]

Arguments

to

A timestamp, e.g: '2023-04-13', '2023-04-13 18:30:12'

from

A timestamp, e.g: '2023-04-13', '2023-04-13 18:30:12'

from_seq An integer number
to_seq An integer number
codeEvent code (multiple values, separated by commas)
exclude Event code (multiple values, separated by commas) 
level Event severity level (multiple values, separated by commas)
reporter Event reporter (multiple values, separated by commas)
username INTERNAL, or name of an existing user (multiple values, separated by commas) 
Exampleevent.query from_id=549 to_id=553

TIMESTAMP  ID  LEVEL REPORTER CODE                            USERNAME DESCRIPTION
2014-05-19 553 INFO  CUSTOM   CUSTOM_INFO_EVENT               admin    GENERAL

08:40:00
2014-05-19 552 INFO  MGMT     CONFIGURATION_PARAMETER_UPDATED admin    System configuration      08:30:00                                                               parameter with category                                                                           MGMT and key                                                                                       environment.dns_servers                                                                           changed to 192.168.8.20
2014-05-19 551 INFO  MGMT     NOTIFICATION_TARGET_UPDATED     admin    SYSLOG notification target
08:20:00                                                               target0 updated            2014-05-19 550 INFO  MGMT     NOTIFICATION_TARGET_CREATED     admin    SNMP notification target 08:10:00                                                               created 
2014-05-19 549 INFO  mgmt     USER_LOGIN_SUCCESS            admin      User admin successfully  08:00:00                                                               logged in from IP
                                                                       '172.16.4.30'
 



event.reporters 

ROLE: All Roles

Description

List all event reporters.

Syntaxevent.reporters 
Exampleevent.reporters  

REPORTER
BLOCK
CUSTOM
FILE
MGMT
PLATFORM
RMR



event.watch  

ROLE: All Roles

Description

Monitor system events in real time.

Displays the latest events. The display is refreshed at a rate determined by the Interval parameter. Use the Code and Exclude parameters to determine which events are displayed on the watch. Use Control+C to return to the prompt. 

Syntaxevent.watch [interval=TIMEDELTA] [code=CODE[,CODE,...]] [exclude=CODE[,CODE,...]] [level=LEVEL[,LEVEL,...]] [reporter=REPORTER[,REPORTER,...]] [username=USER[,USER,...]] [show_polling=YESNO] [tail_length=TAILLENGTH]  
Argumentscode Event code (multiple values, separated by commas) 
interval A time delta, e.g: '02:02', '05:11:06'
excludeEvent code (multiple values, separated by commas)
levelEvent severity level (multiple values, separated by commas)
reporterEvent reporter (multiple values, separated by commas)
usernameINTERNAL, or name of an existing user (multiple values, separated by commas)
show_pollingEither yes, or no
tail_lengthAn integer number between 1 and 50 (inclusive) 
Exampleevent.watch level=WARNING
See the documentation of the event.query command. 
ExampleSetting the event watch length 
event.watch tail_length=10 
See the documentation of the event.query command.
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:42 UTC

Comments