Effective December 3, NetApp adopts Microsoft’s Business-to-Customer (B2C) identity management to simplify and provide secure access to NetApp resources.
For accounts that did not pre-register (prior to Dec 3), access to your NetApp data may take up to 1 hour as your legacy NSS ID is synchronized to the new B2C identity.
To learn more, read the FAQ and watch the video.
Need assistance? Complete this form and select “Registration Issue” as the Feedback Category.

Active IQ Unified Manager Discussions

dfm perf threshold cli

modugu

I am trying to use cli to create perf thresholds,

can someone give the correct way to use this ?


C:\>dfm perf threshold create -o nycps-filer1a  -d 60 -e "cifs:cifs_latency" -C
cifs:cifs_latency 20  upper
Error: Invalid threshold specification: "cifs:cifs_latency".
Syntax is obj-type:counter-name threshold-value threshold-unit [ threshold-type
].

C:\>dfm perf threshold create -o nycps-filer1a  -d 60 -e "cifs:cifs_latency" -C
cifs:cifs_latency 20 sec  upper
Error: Invalid threshold specification: "cifs:cifs_latency".
Syntax is obj-type:counter-name threshold-value threshold-unit [ threshold-type
].

3 REPLIES 3

adaikkap

Hi srikanth,

     Its just your syntax is incorrect.

[root@lnx ~]# dfm perf threshold create help

NAME
    create -- to create a performance threshold

SYNOPSIS
    dfm perf threshold create
                -o <object-name-or-id>
                -d <threshold-interval>
                -e <event-name>
                -C "<object-type>:<counter-name> <threshold-value>
                        <threshold-unit> [ <threshold-type> ]
                        [, <object-type>:<counter-name> <threshold-value>
                        <threshold-unit> [ <threshold-type> ] ...]"
                [ <property>=<value> ... ]


DESCRIPTION
    create a threshold on a given object. Combination thresholds can be created by specifying multiple counters using the -C option, separated by a ",".

[root@lnx~]# dfm perf threshold create -o 101 -d 300 -e evt_latency -C "cifs:cifs_latency  200 microsec upper"
Created new threshold (1).

[root@lnx ~]# dfm perf threshold create -o 101 -d 300 -e evt_latency -C "cifs:cifs_latency  200 microsec lower"
Created new threshold (2).
[root@lnx ~]# dfm perf threshold list
Id    Status     Event Name                                    Template
----- ---------- --------------------------------------------- --------------------
1     enabled    evt_latency
2     enabled    evt_latency
[root@lnx186-144 ~]#

Regards

adai

DHIMAN_TR

Hi,

I am having a similar issue. I have created an alarm for a group of objects called as "Tax_Storage_Units". The following are the details:

dfm server #dfm perf threshold list -x 95

Threshold Id: 95
Event Name: volume:total_ops
Interval: 900
Enabled: Yes

Template Info:

        Id: 20
        Name: TAX_IOPS_exceeding_3000

Object Info:

        Id: 101723
        Name: Tax_Storage_Units
        Type: resource_group

Counter Info:

        Counter: volume:total_ops
        Threshold Type: lower
        Threshold Value: 3000
        Threshold Unit: per_sec

#####################

Now I am trying to create an alert from this. I use the following command:

dfm server #dfm alarm create -E <email_id> -g Tax_Storage_Units -h volume:total_ops

Please note here that when I created the threshold, I had the event name as "volume:total_ops"; however the "dfm alarm create" command fails with the following error:

Error: Event 'volume:total_ops' does not exist.

nicholaj

Hello

 

Working config:

 

dfm perf theshold create -o filer1 -d 120 -e system:load_total_mbps -C "system:load_total_mbps 300 mb_per_sec upper"

 

dfm alarm create -T 10.10.10.10:3821 -h perf:system:load_total_mbps:breached -l 00:00 -m 23:59

 

Thanks
Nick

 

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public