Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: snmp rebol script

From: vdemong::club-internet::fr at: 6-Sep-2002 18:50

Hello, If you use join, you need two parts: rep5: read join snmp://[public--127--0--0--1]/GETnext/ "1.3.6.1.2.1.4.21.1.1.0"
>> p: open snmp://[public--127--0--0--1]/GET/
** Script Error: open-proto has no refinement called sub-protocol ** Near: open-proto/sub-protocol port 'udp if none
>>
I don't know why you obtain this, try:
>> help root-protocol
ROOT-PROTOCOL is an object of value: make object! [ port-flags: 0 open-check: none close-check: none write-check: none init: func [ "Parse URL and/or check the port spec object" port "Unopened port spec" spec {Argument passed to open or make (a URL or port-spec)} /local scheme ][ if url? spec [net-utils/url-parser/parse-url port spec] scheme: port/scheme port/url: spec if none? port/host [ net-error reform ["No network server for" scheme "is specified"] ] if none? port/port-id [ net-error reform ["No port address for" scheme "is specified"] ] ] open-proto: func [ {Open the socket connection and confirm server response.} port "Initalized port spec" /sub-protocol subproto <<<<<<< YOU will have this on your screen if not, you have modified root-protocol object, or you have a wrong version of Rebol or etc. Ciao. Vincent. ----- Original Message ----- From: [Francois--Prowse--alcatel--co--nz] To: [vdemong--club-internet--fr] Sent: Thursday, September 05, 2002 7:07 AM Subject: snmp rebol script I'm working with your snmp rebol script and getting the following error...any ideas what the problem is? re francois if none
>> rep5: read join
snmp://[public--127--0--0--1]/GETnext/1.3.6.1.2.1.4.21.1.1.0 ** Script Error: join is missing its rest argument ** Near: rep5: read join snmp://[public--127--0--0--1]/GETnext/1.3.6.1.2.1.4.21.1.1.0
>> p: open snmp://[public--127--0--0--1]/GET/
** Script Error: open-proto has no refinement called sub-protocol ** Near: open-proto/sub-protocol port 'udp if none