Translation Rule
-
Hi,
I´ve a Problem.
I request a FAN Status from a cisco Switch an get a value from 1-4 back.
The Datatype is an integer. I want to translate the value in a cleartext word like OK warning etc.
Can someone tell me how I can do this ? I´ve a solution, but it works for one poll, after the next one
I´ve get only 0.Many Thanks !!!
-
You can make use transformation script on DCI to do that. Sample script:
if ($1 == 0) { return "OK"; } if ($1 == 1) { return "STATUS_1"; } if ($1 == 2) { return "STATUS_2"; } return "UNKNOWN (" . $1 . ")";
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login