From: Jeff Allen <jra@corp.webtv.net>
Ethan Torretta wrote:
> Is it possible to set a variable based on the return of an snmp query?
> Specifically, I would like to add the netapp OS version to the long
> description. Something like
>
> target bleah
> version = snmp://%snmp%/productVersion
> long-desc = "%target% (%version%)"
That feature does not exist, yet, but it will in an upcoming
version. I think I will implement it more like this:
long-desc = "%snmpget(productVersion)%"
Look for that in Cricket 0.65... unless it turns out to be hard, then
I'll punt it a little farther into the future.
Another function-based expansion I'll be implementing is a lookup into
an external table. Thus, you could do lookups in a mapping table like
this:
switch-1:1 server-101.company.com
This tells you that port 1 of switch-1 has server-101 plugged into
it. Cricket could incorporate that into the webpage for that port,
making it easier to understand the graphs. (Of course, maintaining the
mapping files is some other script's job...)
PS: After thinking about this a bit more, it would be easier to
implement if function-based lookups were surrounded by something else,
maybe '@'. Would that make anyone too upset?
-- Jeff R. Allen | jra@corp.webtv.net (work) WebTV Networks, Inc. | jeff.allen@acm.org (personal) Service Operations Toolsmith | http://www.munitions.com/~jra------------------------------------------------------------------------ How many communities do you think join ONElist each day? http://www.onelist.com More than 1,000!
This archive was generated by hypermail 2b29 : Mon Mar 06 2000 - 19:00:48 PST