Subscribe

Adjusting event thresholds or creating new events

Is it possible to create a new event or adjust an existing event threshold?

We want to page on inodes 95% full.  The inodes-full event looks to have a threshold of 90%. 

Can we change that?  If not, can we create a new event with a 95% threshold?  Or is there any other way to accomplish what we want to do?

We are running OnCommand core 5.0 currently, planning to upgrade to 5.0.1 soon.

Re: Adjusting event thresholds or creating new events

Jacson,

This issue has already been addressed in communities ( script that can generate inode full and nearly full events independent of volume full thresholds), please find the link below :

The inode events  use the custom thresholds of volume full and volume nearly full.There are no separate thresholds for the inodes, so as the script has been developed to use custom events.

https://communities.netapp.com/message/75909#75909

Regarding creating events :

You can use "dfm event generate" CLI or NMSDK API "event-generate" to generate custom/built in events:

[root@oncommand ~]# dfm event generate help

NAME

    generate -- generate a particular user-defined event

SYNOPSIS

    dfm event generate [ -t <timestamp> ] <event-name> <source> [ <event-message> ]

DESCRIPTION

    This command is used to generate custom events. Script plugins can

    use the command to generate built-in script status events such as

    script:warning-event. This command cannot be used to generate other

    built-in events.

    timestamp: specifies the event generation time in

    YYYY-MM-DD,HH:MM:SS format.

    If not specified, the time when the command is invoked is used.

    event-name: specifies the name of the event.

    source: specifies ID/name of source object of the event.

    event-message: A message specific to this event.

    This message will be displayed as part of event details.

Regards,

-Seshu

Re: Adjusting event thresholds or creating new events

Thanks that is great.  But it appears the script is for Linux instances of OnCommand, is that correct?  Is there a script for the Windows version?

Re: Adjusting event thresholds or creating new events

No. The script is independent of OS version. It should run on Windows OnCommand too.

-KJag