Am I missing something in the documentation,
Is there any way to having a status window of custom-snmp probe without Device Status information taking up the top 12 lines.

I am writing a Netscreen firewall policy probe, and I just want the my output in the status window.

Each instance of the probe on the map points to the same device, but with a different policy number to interrogate.

Basically I am looking for a vanilla snmp probe that does not collect & display any of the following:
<x-tad-smaller>Device Status</x-tad-smaller>
<x-tad-smaller> </x-tad-smaller><x-tad-smaller>Name:</x-tad-smaller><x-tad-smaller>

</x-tad-smaller><x-tad-smaller>DNS Name:</x-tad-smaller><x-tad-smaller>

</x-tad-smaller><x-tad-smaller>SysName:</x-tad-smaller><x-tad-smaller>

</x-tad-smaller><x-tad-smaller>Address: </x-tad-smaller><x-tad-smaller>*

</x-tad-smaller><x-tad-smaller>Status:</x-tad-smaller><x-tad-smaller> *

</x-tad-smaller><x-tad-smaller>Protocol:</x-tad-smaller><x-tad-smaller>

</x-tad-smaller><x-tad-smaller>Up Time:</x-tad-smaller><x-tad-smaller>

</x-tad-smaller><x-tad-smaller>Availability:</x-tad-smaller><x-tad-smaller>

</x-tad-smaller><x-tad-smaller>Packet Loss:</x-tad-smaller><x-tad-smaller>

</x-tad-smaller><x-tad-smaller>Recent Loss:</x-tad-smaller><x-tad-smaller>

</x-tad-smaller><x-tad-smaller>Round-trip time:</x-tad-smaller><x-tad-smaller>
</x-tad-smaller>

<x-tad-smaller>* Place this into reserved variables for custom display & device threshold actions
</x-tad-smaller>
just the mib variables that I specify to collect and choose to display.

Finally a probe tip: Can't make multiple columns line up, the use this character pad routine

strlen1, (6-strlen("$variable")), CALCULATION, "Strlen"
sformat1, ("%."+"$strlen1"+"s"), CALCULATION, "sFormat"
pad1, (sprintf("${sformat1}"," ")), CALCULATION, "pad"

where $variable is INTEGER variable you wish to pad out (up to 5 chars in this case)
${pad1} is placed before or after the variable in the <snmp-device-display> section for right or left justification

Each pad you do will require all unique variables (ie strlen1,strlen2 etc) as the probe language does not allow you to recycle variables.

Example formated output (pad variables goes after "59" and "1016" in this case):
<x-tad-smaller> </x-tad-smaller><x-tad-smaller>TearDrop External:</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>0</x-tad-smaller><x-tad-smaller>/min </x-tad-smaller><x-tad-smaller>59</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>Internal</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>0</x-tad-smaller><x-tad-smaller>/min </x-tad-smaller><x-tad-smaller>0</x-tad-smaller><x-tad-smaller>

</x-tad-smaller><x-tad-smaller>AddrSpoof External:</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>0</x-tad-smaller><x-tad-smaller>/min </x-tad-smaller><x-tad-smaller>1016</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>Internal</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>0</x-tad-smaller><x-tad-smaller>/min </x-tad-smaller><x-tad-smaller>0</x-tad-smaller><x-tad-smaller>
</x-tad-smaller>
the /min rate is PER-MINUTE type is auto padded right justified by Intermapper, "59" an INTEGER variable which is normal unpadded, is padded out to make the "Internal" line up with the next line etc.

So you can format tables in status windows, but it takes a little effort.

--------------------------------------------
David Thomas,
Information Strategy & Technology Services,
University of South Australia.

Reply via email to