Dear NET-SNMP Users,

1. What do I want to do?:
code a C script to get SNMP objects (using the WinCC scripting editor)
This should happen:  WinCC button gets clicked -> C script gets an
snmpobject and converts it to a string  and prints it to a textfield -> user
sees the value of the snmp object

2. Some background info :
Simatic WinCC 7.0 is a HMI system from Siemens. It has an integrated C
script editor that can be used to implement functionality
Working on windows
I am new to both net-snmp and C programming
I'm using SNMP v1 and v2c (no v3)

3.Current State:
I wrote an extremely simple script (with the Script Editor of WinCC) that
does the following:
            1. Run snmpget and write the output to a file
               ProgramExecute("c:\\snmpget -v 2c -c public 10.20.30.40
.1.3.6.1.2.1.1.1.0 > SnmpBuffer.txt")
             2. read the contents of the text file and output them to the
screen (to a text field)

4.What do I want to ask:
-  Can I use NET-SNMP API's inside the C script instead of calling
snmpget.exe? -> how do I do this (remember, i'm new to C and net-snmp)
-  What documentation can I read to get started?
- Are there any similar examples?



Thank you very much!

Mik.
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to