Hi,
On one Dell server with OMSA installed I can get using snmp a "Virtual Disk State".
This is a number between 0 to 60. I have set the alert to trigger on anything besides the result 1 and that works fine.
But I would like to convert the result to a textstring since I know what all those 60 numbers really stand for.
1=Ready
2=Failed
4=Offline
26=Formatting
..and so on..
Is there a way I can create a Tune up Result table/list or similar to convert a number to the corresponding Textstring?
//Andreas..
Creating a Tune Up Reply conversion table?
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
Your "Tune up Reply value" expression may look like the following:
if ('%SuggestedReply%'=='1') Ready; if ('%SuggestedReply%'=='2') Failed; if ('%SuggestedReply%'=='3') Offline; if ('%SuggestedReply%'=='26') Formatting; else %SuggestedReply%
or like this:
if ('%SuggestedReply%'=='1') Ready (%SuggestedReply%); if ('%SuggestedReply%'=='2') Failed (%SuggestedReply%); if ('%SuggestedReply%'=='3') Offline (%SuggestedReply%); if ('%SuggestedReply%'=='26') Formatting (%SuggestedReply%); else Unknown (%SuggestedReply%)
if ('%SuggestedReply%'=='1') Ready; if ('%SuggestedReply%'=='2') Failed; if ('%SuggestedReply%'=='3') Offline; if ('%SuggestedReply%'=='26') Formatting; else %SuggestedReply%
or like this:
if ('%SuggestedReply%'=='1') Ready (%SuggestedReply%); if ('%SuggestedReply%'=='2') Failed (%SuggestedReply%); if ('%SuggestedReply%'=='3') Offline (%SuggestedReply%); if ('%SuggestedReply%'=='26') Formatting (%SuggestedReply%); else Unknown (%SuggestedReply%)
Thanks!
That worked perfectly!
One little suggestion though:
In the windows where I enter the code for the Tune up Reply, I´d like to be able to hit Enter after each ; so I can have one translation per line. Just to have the code a little cleaner and neater.
Now it´s all on just one line with window edge wrap.
Would that be possible to fix in a later version perhaps?
//Andreas..
That worked perfectly!
One little suggestion though:
In the windows where I enter the code for the Tune up Reply, I´d like to be able to hit Enter after each ; so I can have one translation per line. Just to have the code a little cleaner and neater.
Now it´s all on just one line with window edge wrap.
Would that be possible to fix in a later version perhaps?
//Andreas..
I´m talking visually only. If it was possible to insert line breaks to make it visually easier(atleast for me).
I guess that single line work for most cases, but in this case the whole expression takes up lots of space in the text window.
When I typed in the above expression I automatically hit enter after each ; so it´looked good. And obviously the expression worked fine. But when I opened up that window again the linefeeds were not saved and everything was back on single line.
Do understand what I am talking about? If that´s not possible to fix then I´m fine with that.
//Andreas..
I guess that single line work for most cases, but in this case the whole expression takes up lots of space in the text window.
When I typed in the above expression I automatically hit enter after each ; so it´looked good. And obviously the expression worked fine. But when I opened up that window again the linefeeds were not saved and everything was back on single line.
Do understand what I am talking about? If that´s not possible to fix then I´m fine with that.
//Andreas..