I would like some way to have the user input a string, and then be able
to look up a table index that matched it and use that for subsequent
lookups.  For example, in my Netware volume proble, I currently have the
user enter the volume index.  It's not obvious which index corresponds
to which volume, though.  The probe detail window displays the volume
name, so the user can use trial and error to figure out the index they
want.

The problem is that there are 255 different indexes, and they
occasionally change as volumes are added and removed.

Ideally, the user would enter the volume name as a probe paramater. 
Then the probe would loop through the volume table looking for a match. 
Once a match is found, the volume index is copied to a variable and used
to look up the volume parameters.



-- 
Doug Weathers, Network Administrator
St. Charles Medical Center

>>> [EMAIL PROTECTED] 12/12/2003 8:12:13 AM >>>
James:

Assuming that we had support for arithmetic expressions involving + - *

/ available to custom probes, can you give me an example of what you 
would use the additional if-then and while loops?  Would you use these

in the context of a custom-snmp probe or tcp-script, or both?

The TCP script/bytecode interpreter already supports some conditional 
commands that can be used to mimic if-then and while constructs. These

are:

CHCK - branch if string argument is empty.
SBNE - branch if string arguments are not equal
NBNE - branch if numeric arguments are not equal
NBGT - branch if numeric argument1 > argument 2

It's a little work to use these - not quite as convenient as the 
high-level equivalents.

For Custom SNMP probes, I'm not sure how you would use a while loop. 
Can you provide an example?

Thanks,

Bill Fisher
Dartware, LLC
http://www.dartware.com 



On Dec 9, 2003, at 4:06 PM, Ashe, James P. wrote:

> Has there been any discussion to adding the ability to add basic 
> programming logic to the custom probes, i.e. if-then or do-while 
> looping?  I'm eagerly awaiting the ability to do + - * / etc., but 
> wanted to know if any other logic like this would be added to custom

> probe programming in the future.  Thanks in advance.
>  

____________________________________________________________________
List archives:
http://www.mail-archive.com/intermapper-talk%40list.dartware.com/ 
To unsubscribe: send email to: [EMAIL PROTECTED]


IMPORTANT NOTICE: This communication, including any attachment, contains
information that may be confidential or privileged, and is intended solely
for the entity or individual to whom it is addressed.  If you are not the
intended recipient, you should delete this message and are hereby notified
that any disclosure, copying, or distribution of this message is strictly
prohibited.  Nothing in this email, including any attachment, is intended
to be a legally binding signature.


____________________________________________________________________
List archives: 
http://www.mail-archive.com/intermapper-talk%40list.dartware.com/
To unsubscribe: send email to: [EMAIL PROTECTED]

Reply via email to