Re: Re: view OID mask?
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 20/09/06, Leo Lei <[email protected]> wrote: > i had mistaken the word "sub-identifier", for example, for view OID ifEntry, i had thought > the sub-identifers is 1(ifIndex) - 22(ifSpecific) under ifEntry. No - the term "subidentifier" refer to the individual numbers (or names) within an OID. So *each* of "1", "3", "6", "1", etc are subidentifiers. There is one particular subidentifier within an OID that will refer to the column object, but this is no more (and no less) a subidentifier than any of the others. > > view ifRow4 included .1.3.6.1.2.1.2.2.1.0.4 0xff:a0 > for the latest 3 sub-identifiers, the corresponding bits can be > "0010 0000" or "1010 0000", so, the mask can be 0xff:a0 or 0xff:20; > > right? I don't fully understand what you're asking here, but your bit patterns don't look right. The idea of the "ifRow4" view is to match any OID of the form .1.3.6.1.2.1.2.2.1.x.4 (ignoring the column subidentifier) i.e. the row with index '4'. Setting this against a bit pattern of the relevant subidentifiers gives: .1.3.6.1.2.1.2.2.1.0.4 1 1 1 1 1 1 1 1 1 0 1 0 0 0 0 0 = 0xff:a0 So the second octet of the mask is 0xa0 I don't know where you get 0x20 from, but it looks completely bogus. Dave ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users