The transition to NetApp MS Azure AD B2C is complete. If you missed the pre-registration, you will be invited to register at next log in.
Please note that access to your NetApp data may take up to 1 hour.
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 Script

aselvan

Hi ,

 

I trying to retrive/get the DFM environment variables via script when an alarm is been trigerred , for some reason it isn't working . Any thoughts ?

 

dfm alarm list 142


Alarm                142
Group                Global
Event Severity       All
Event Name           aggregate-almost-full
Time From            00:00
Time To              23:59
Email Addresses      XXX
Script Name          /bin/sh /tmp/testing_alarm_script

 

 

cat /tmp/testing_alarm_script
echo "Hello world" > /tmp/alarm_script
$DFM_ALARM_ID >> /tmp/alarm_script
$DFM_SOURCE_TYPE >> /tmp/alarm_script
echo "$(date) $*" >> /tmp/alarm_script

 

I can confirm both script and event are being triggered when test alarm is triggered.

1 ACCEPTED SOLUTION

Thanks Adai, I had the page for reference , I was able to sort it out with Perl using KB.

KB link if someone is interested "https://kb.netapp.com/support/index?page=content&id=3012180" 

 

 

foreach $key (sort(keys %ENV)) {
 if ($key =~ /^DFM_/) {
  print "$key: $ENV{$key}\n";
 }
}

View solution in original post

2 REPLIES 2

AdaikkappanArumugam

Thanks Adai, I had the page for reference , I was able to sort it out with Perl using KB.

KB link if someone is interested "https://kb.netapp.com/support/index?page=content&id=3012180" 

 

 

foreach $key (sort(keys %ENV)) {
 if ($key =~ /^DFM_/) {
  print "$key: $ENV{$key}\n";
 }
}

View solution in original post

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