Noted previous mention of TSNMPSend etc., but has anybody ever looked at compiling an MIB into an FPC object for use with RTTI?
Mailing lists / fpc-pascal / 2011-01
SNMP and MIBs
11 messages · 5 people · –
- MMark Morgan Lloyd 5
- MMarco van de Voort 3
- JJeppe Johansen 1
- MMichael Van Canneyt 1
- SSven Barth 1
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Mark Morgan Lloyd wroteNoted previous mention of TSNMPSend etc., but has anybody ever looked at compiling an MIB into an FPC object for use with RTTI?
MIB = Men In Black ?
Michael.
In our previous episode, Michael Van Canneyt said:
Show quoted text 5 lines
Management information base, used between SNMP, but also by e.g. sysctl.
Provides a tree of variables that can be walked.
I don't see why an FPC object would use this?
Marco van de Voort wrote 9 lines
You could combine it with RTTI, and then have a great generic tool that can be used to inspect and control network equipment(and other things)
I can definitely see why it would be useful, but I'm not sure it could be done at runtime
In our previous episode, Jeppe Johansen said:
Show quoted text 7 lines
I understand that querying object is the goal, but I think the static nature of RTTI makes it a bad match (since you want to be dynamically add values)
I can definitely see why it would be useful, but I'm not sure it could be done at runtime
I would go in the directly of IDispatch. COM object querying.
You could combine it with RTTI, and then have a great generic tool that can be used to…
Jeppe Johansen wrote 16 lines
There's at least one MIB compiler written in Perl which could probably be transcribed. If the output were a Pascal file containing objects which were instantiated as necessary presumably it could be compiled into a DLL/so.
There seems to be a limited choice of Network Management Software, unless you want it in Java or only with a web interface. I use an old one from Compaq but it's Win-32 only and wants a particular version of the BDE.
This is /not/ something that I had the remotest intention of looking at...
In our previous episode, Jeppe Johansen said: I understand that querying object is the…
Marco van de Voort wrote 16 lines
What are the cross-platform implications of that? Presumably once an MIB description had been parsed it could be written out in any number of forms.
In our previous episode, Mark Morgan Lloyd said:
Show quoted text 7 lines
None. While originally devised for COM, the language support is afaik OS independant. But I missed the bit about generating the objects from a different source.
But, like you, I have not the faintest interest in such endeavour. I only know MIB from sysctl usage, not from SNMP
Marco van de Voort wrote 13 lines
It's not so much that I haven't got the faintest interest as I hadn't intended to look at it and I've probably got more profitable things to do.
Didn't somebody mention an FPC parser class a few weeks ago?
Mark Morgan Lloyd wrote 21 lines
You mean fcl-passrc (found in $fpcdir/packages/fcl-passrc)?
Regards,
Sven
Sven Barth wrote 26 lines
I think so. So in practice highly Pascal-oriented- I might be better using my own which I'm obviously familiar with, or seeing what I can do with the Perl one. Assuming I do anything at all that is.
