Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2011-01

SNMP and MIBs

11 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mark Morgan Lloyd

Noted previous mention of TSNMPSend etc., but has anybody ever looked at compiling an MIB into an FPC object for use with RTTI?

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]
Michael Van Canneyt
to Mark Morgan Lloyd
Mark Morgan Lloyd wrote
Noted 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.

Marco van de Voort
to Michael Van Canneyt

In our previous episode, Michael Van Canneyt said:

Show quoted text 5 lines
> Noted 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 ?

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?

Jeppe Johansen
to Marco van de Voort
Marco van de Voort wrote 9 lines
In our previous episode, Michael Van Canneyt said: >> Noted 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 ? 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?

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

Marco van de Voort
to Jeppe Johansen

In our previous episode, Jeppe Johansen said:

Show quoted text 7 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? 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 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.

Mark Morgan Lloyd
to Jeppe Johansen: You could combine it with RTTI, and then have a great generic tool that can be used to…
Jeppe Johansen wrote 16 lines
Den 29-01-2011 11:48, Marco van de Voort skrev: > In our previous episode, Michael Van Canneyt said: >>> Noted 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 ? > 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? 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

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...

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]
Mark Morgan Lloyd
to Marco van de Voort: In our previous episode, Jeppe Johansen said: I understand that querying object is the…
Marco van de Voort wrote 16 lines
In our previous episode, Jeppe Johansen said: >> 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? > 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 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.

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.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]
Marco van de Voort
to Mark Morgan Lloyd

In our previous episode, Mark Morgan Lloyd said:

Show quoted text 7 lines
>> 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. 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.

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

Mark Morgan Lloyd
to Marco van de Voort
Marco van de Voort wrote 13 lines
In our previous episode, Mark Morgan Lloyd said: >>> 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. > 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. 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

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 markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]
Sven Barth
to Mark Morgan Lloyd
Mark Morgan Lloyd wrote 21 lines
Marco van de Voort wrote: > In our previous episode, Mark Morgan Lloyd said: >>>> 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. >> 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. > > 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 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?

You mean fcl-passrc (found in $fpcdir/packages/fcl-passrc)?

Regards,
Sven

Mark Morgan Lloyd
to Sven Barth
Sven Barth wrote 26 lines
On 29.01.2011 17:27, Mark Morgan Lloyd wrote: > Marco van de Voort wrote: >> In our previous episode, Mark Morgan Lloyd said: >>>>> 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. >>> 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. >> >> 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 > > 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? > You mean fcl-passrc (found in $fpcdir/packages/fcl-passrc)?

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.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]