Bennie,
Here is an example. You will need to change the variables for your own use, etc.. The following would be in the display area:
\4\ Shown Variable:\0\ $shownVar ${eval: strlen("$optionalVar") ? "
\4\ Optional Variable:\0\" : " "} ${eval: strlen("$frequency") ? $frequency : " "}
This example assumes that you may want to hide a variable after another variable that is always shown. I am including the line above because part of the work done here is before the line break. (A line break is included in something that may be hidden.)
Stepping through, this probe displays "Shown Variable" followed by the variable shownVar. Then there is an evaluation statement. If the length of the variable is one or greater, then InterMapper will display a line break followed by "Optional Variable". If the length of the variable is zero, it will insert a space. Then there is a second similar evaluation that will display the variable itself if it has a length greater than zero, and will otherwise insert a second space.
The net result is that if optionalVar has no content, then two invisible spaces are inserted at the end of the line above. If optionalVar has content, then a new line is inserted in the display, showing the description of the variable followed by the value of the variable.
I hope you find this helpful. Please let us know if you have any more questions.
Thank you, Ian Struckhoff Tech Support Dartware, LLC
On Mar 8, 2005, at 7:53 PM, Bennie Warren wrote:
Could you give a sample of not showing something in the display based on a wrong value? I haven't found the eval statement in the online manual. I am still looking though.
Thanks Bennie
On Mar 8, 2005, at 7:27 AM, Ian Struckhoff wrote:
Bennie,
The custom SNMP probes aren't scriptable, and don't have a method to display an entire table of unknown or dynamic length. We are looking into what additional support we may be able to add in the future.
However, there are a wide array of functions available in a custom probe, so almost anything is possible if you are willing to create a very complex probe.
For instance, combining an eval and the strlen() function, you can effectively decide whether or not to display part of the display for a probe depending on whether a variable has a value.
I hope this is helpful. Please let us know if you have any further questions.
Thanks, Ian Struckhoff Tech Support Dartware, LLC
On Mar 5, 2005, at 6:12 PM, Bennie Warren wrote:
Is it possible to use scripts with SNMP Probes? I want to check all rows of a mib and only show the full ones. I am using this with Alvarion radios. I will get all rows of associated radio's hard coded into the probe and only show the rows that are populated based on the mib that shows the number of associations.
Thanks Bennie
-- ************************************** Bennie Warren LemooreNet 320 West D Street Lemoore, CA 93245 Phone: 559.924.5909 Fax 559.924.9578 [EMAIL PROTECTED] http://www.lemoorenet.com **************************************
____________________________________________________________________
List archives: http://www.mail-archive.com/intermapper-talk%40list.dartware.com/
To unsubscribe: send email to: [EMAIL PROTECTED]
____________________________________________________________________
List archives: http://www.mail-archive.com/intermapper-talk%40list.dartware.com/
To unsubscribe: send email to: [EMAIL PROTECTED]
-- ************************************** Bennie Warren LemooreNet 320 West D Street Lemoore, CA 93245 Phone: 559.924.5909 Fax 559.924.9578 [EMAIL PROTECTED] http://www.lemoorenet.com **************************************
____________________________________________________________________
List archives: http://www.mail-archive.com/intermapper-talk%40list.dartware.com/
To unsubscribe: send email to: [EMAIL PROTECTED]
____________________________________________________________________
List archives: http://www.mail-archive.com/intermapper-talk%40list.dartware.com/
To unsubscribe: send email to: [EMAIL PROTECTED]
