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]

Reply via email to