Re: Can the MIB field names associated with each row be displayed only?

2008-09-04 Thread Dave Shield
2008/9/3 Need Help <[EMAIL PROTECTED]>: > In a MIB table definition, each table entry has it's own field name with > associated unique OID value. Is there a way to display the field name of > each entry in the table using snmptranslate or something? snmptable will do this automatically when retri

Re: Can the MIB field names associated with each row be displayed only?

2008-09-04 Thread Need Help
The syntax for "snmptable" is the following: USAGE: snmptable [OPTIONS] AGENT TABLE-OID What does "AGENT " mean? --- On Thu, 9/4/08, Dave Shield <[EMAIL PROTECTED]> wrote: From: Dave Shield <[EMAIL PROTECTED]> Subject: Re: Can the MIB field names associated with each row be displayed only?

Re: Can the MIB field names associated with each row be displayed only?

2008-09-04 Thread Dave Shield
2008/9/4 Need Help <[EMAIL PROTECTED]>: > The syntax for "snmptable" is the following: > > USAGE: snmptable [OPTIONS] AGENT TABLE-OID > > What does "AGENT " mean? Exactly the same as for any other Net-SNMP command-line tool. The address of the remote agent that you wish to query. So if you w

[PATCH 1/2] ip-forward-mib using netlink

2008-09-04 Thread Stephen Hemminger
Rework how route table is read to use netlink interface. This solved major performance problems when using SNMP on full gateway table (>256K routes). The old code read /proc/net/route and then looked up the mapping from name "eth0" to ifindex for each entry. Much more efficient to use netlink to d

[PATCH 2/2] memory usage improvement for binary tables

2008-09-04 Thread Stephen Hemminger
Reduce snmpd memory usage. The route table can grow very large and existing code is a major performance problem since it wastes half of its memory and copies each time. 1. Grow expanding table by 1.5 rather 2x per step Perhaps the increment should just be PAGESIZE 2. Use realloc rather th

Which MFD container_load() return code to use when no data exists?

2008-09-04 Thread Need Help
I am using v5.4.1 and use the MFD config to generate my tables. When the "container_load()" function is called for my table, it is possible that there is no data which should be placed into the table at that time.  When this occurs I return the MFD_RESOURCE_UNAVAILABLE return code from the con