Hi,

Pardon my noobness - this is my first attempt to use 'extend'

I am running on a windows xp platform - the version that shows in the 
header is 5.2.1.2 (I downloaded v5.7somthing)

What I am attempting to do is read 3 numeric values from a file and expose 
them at the nsExtendResult table.

I have added the following line to snmpd.conf file:

extend typefile3 cscript c:\str2num.vbs c:\drives.txt

ignore the drives.txt name - it has nothing to do with the type of data 
I'm looking at, it was just a handy file for testing.

Everything thus far works perfectly. I can 'get' the values from the 
table, and I can see them when I walk the table from my NI observer NMS.

However - the values wind up in a variable-type Octet String and I need 
them to be in a numeric type because Observer doesn't allow string types 
to be used in it's formula expressions and has no text manipulation 
functions.


the str2num.vbs script is just a simple script that reads each value from 
the file, and writes it to the display. Suspecting that the way I output 
the data could affect what variable-type it wound up as in the table, I 
have tried using wscript.echo, and wscript.StdOut.WriteLine Int(strLine) 
to output the data. I initially tried just typing the file and grabbing 
the values that way.

All resulted in the data being interpreted as string data.

Is there anyway to force this to be numeric data?

Is there some other approach I should be using? I want to keep it as 
simple as possible  because it is a one-off type project.

Thanks for any help you can give!

k
NOTICE: This email transmission and any attachments that accompany it may 
contain information that is confidential or otherwise exempt from 
disclosure under applicable law and is intended solely for the use of the 
individual(s) to whom it was intended to be addressed. If you have 
received this email by mistake, or you are not the intended recipient, any 
disclosure, dissemination, distribution, copying or other use or retention 
of this communication or its substance is prohibited. If you have received 
this communication in error, please immediately report to the author via 
email that you received this message by mistake and also permanently 
destroy printed copies and delete the original and all copies of this 
email and any attachments from your computer. 
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to