AltME groups: search
Help · search scripts · search articles · search mailing listresults summary
world | hits |
r4wp | 0 |
r3wp | 8 |
total: | 8 |
results window for this page: [start: 1 end: 8]
world-name: r3wp
Group: Core ... Discuss core issues [web-public] | ||
Pekr: 28-Jan-2006 | or some snmp tool, if your device suports it ... | |
Group: I'm new ... Ask any question, and a helpful person will try to answer. [web-public] | ||
mhinson: 14-Apr-2009 | Hi, Pekr, I appreciate that the concept for parsing is different to the use of regular expressions, but there are some things that do map from one to the other & I wondered if any table of those things existed. As a noob sometimes the hardest questions to get answered are the ones where the answer is that there is no concept such as that sought by the noob. e.g. how do you grow strawberries in the sea? The first match must be at the begining of the line. If it was the first line in the set then it would not be after a new line, but other cases it would be. I will use parse/all from now, I like the extra control you describe. here a few lines of a test input, the script I am hoping to develop is to parse the config files from Cisco devices in order to extract the layer 2 & 3 information together with the interface names & descriptions. lines: {interface FastEthernet0 description The connection to the printer ! interface FastEthernet1 ! interface Vlan1 description User vlan (only 1 vlan allowed) no ip address ! interface Dialer0 description Outside ip address negotiated ! interface BVI1 description Inside ip address 192.168.0.1 255.255.255.0 ! ip sla 3 icmp-echo 217.0.0.1 source-interface Dialer0 ip route 0.0.0.0 0.0.0.0 Dialer0 interface ATM0.1 point-to-point no ip redirects no snmp trap link-status pvc 0/38 pppoe-client dial-pool-number 1 ! } ; sqlab, your change to use "thru newline" does what I wanted in this case which is good. ; my next step is to try & understand the "or" construct properly as the code below dosn't quite cut it. wanted: copy [] interface: ["interface" [to #"^/" | to "point-to-point"]] parse lines [any [[copy temp interface (insert tail wanted temp)] | thru newline ]] foreach line wanted [print line] ; thanks very much for your help, /\/\ | |
Group: Parse ... Discussion of PARSE dialect [web-public] | ||
btiffin: 13-Apr-2007 | guru question; Will a utype! definition be allowed to wrap builtins? SNMP MIBs require a fairly heavy weight tuple! But will a short MIB conflict with internal scans of tuple! or do utype! scans take some form of precedent? I've become curious, yet remain dumb enough to not know. | |
Group: Web ... Everything web development related [web-public] | ||
Pekr: 2-Nov-2005 | another question, although not web related, but log related - did anyone do snmp parser, mrtg kind of graph display? | |
JaimeVargas: 2-Nov-2005 | Yes. We have one for our own use. But not snmp implementatin. However the french have something for that. | |
Pekr: 2-Nov-2005 | Advantage of mikrotik is, that I don't have necessarily to depend upon snmp - It has good router scripting, and I can prepare my own format (even rebol blocks ;-) of output ... and some folks do so with the router scripting language available .... | |
Group: !REBOL3 ... [web-public] | ||
Andreas: 15-Nov-2010 | like snmp | |
Pekr: 15-Nov-2010 | IIRC OID is used for snmp (simple network management protocol), and this one is really big and important ... |