Title: FW: Problem with scripting


Best regards
Marco Novelli



-----Original Message-----
From: Novelli Marco
Sent: Wed 10/1/2008 2:42 PM
To: [EMAIL PROTECTED]
Subject: Problem with scripting


Hi i'm Marco Novelli and i've problem with net-snmp. I've installed it correctly and when i run tclsh daemon (from bash) my host recognize netsnmp commands such as snmpget, snmptranslate and so on. I must made up a  tcl script in wich i use typically netsnmp command, but when i run script, i get an error because it can't recognize netsnmp command. What is the problem? what include or package require must i add in script??? please help me !!!!
This is my script


set return [snmpget -v 1 -c public localhost 1.3.6.1.4.1.231.7.1.2.1.1.4.4.40.6.0]
puts " Il valore restituito e'  : $return"
puts "errorInfo: errorInfo"

and this is the output


gel20178:/home/elsag/Desktop/net-snmp-5.4.2/net-snmp-5.4.2# tclsh /home/elsag/Desktop/esempio.tcl
invalid command name "snmpget"
    while executing
"snmpget -v 1 -c public localhost 1.3.6.1.4.1.231.7.1.2.1.1.4.4.40.6.0"
    invoked from within
"set return [snmpget -v 1 -c public localhost 1.3.6.1.4.1.231.7.1.2.1.1.4.4.40.6.0]"
    (file "/home/elsag/Desktop/esempio.tcl" line 1)



Best regards
Marco Novelli




-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to