This is a discussion on Re: handling tables with pass_persist within the SNMP Coders forums, part of the Networking and Network Related category; --KDt/GgjP6HVcx58l Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 01/03/...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--KDt/GgjP6HVcx58l Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 01/03/05 Michael P. Soulier did say: > Hello, >=20 > I'm new to working with snmp, so I apologize if this is obvious, but if t= he > OID requested corresponds to a table row, how does one return an entire t= able > row using an external script called via pass_persist?=20 >=20 > I think there may be a disconnect in my understanding of snmp queries aga= inst > tables.=20 And indeed there was. Looking at snmpwalk output I believe I understand now= =2E=20 IF-MIB::ifNumber.0 =3D INTEGER: 7 IF-MIB::ifIndex.1 =3D INTEGER: 1 IF-MIB::ifIndex.2 =3D INTEGER: 2 IF-MIB::ifIndex.3 =3D INTEGER: 3 IF-MIB::ifIndex.4 =3D INTEGER: 4 IF-MIB::ifIndex.5 =3D INTEGER: 5 IF-MIB::ifIndex.6 =3D INTEGER: 6 IF-MIB::ifIndex.7 =3D INTEGER: 7 So rows are never returned in whole, each full OID includes the index by wh= ich you know which row the requestor is asking for.=20 If I'm wrong, please tell me.=20 Mike --=20 Michael P. Soulier <michael_soulier@mitel.com>, 613-592-2122 x2522 6000/6010/60* Development, Mitel Corporation "...the word HACK is used as a verb to indicate a massive amount of nerd-li= ke effort." -Harley Hahn, A Student's Guide to Unix --KDt/GgjP6HVcx58l Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFCJNpiKGqCc1vIvggRAnFRAKDBt7rzGXlBKS2VfwbdtV nrcoQKZgCgv5Yw ooHIeKpL4CNnfRb4u3ntPY8= =NnGA -----END PGP SIGNATURE----- --KDt/GgjP6HVcx58l-- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/...et-snmp-coders |