[tkined] Difference in Solaris Vs Linux output for NSAP address

From: Sanapoori, Hari (Hari.Sanapoori@marconi.com)
Date: Fri Jul 27 2001 - 17:38:48 MET DST


Hi,

I am using the scotty version which supports the SNMPv3 in both Solaris and
Linux. After opening a snmp session for a switch from a solaris work station
and linux workstation, I query an mib entry to get a NSAP address. The
output from Solaris version is different from Linux Version. Here is the
output ....

The output from Solaris version of scotty ...

% snmp0 walk xxx Fore-PNNI-MIB!rtDomainPrefix { puts $xxx }
Check 1 in DecodePDU:hex = 47000580FFE1000000F22C027E
typePtr->name= NsapPrefix
Check 2 in TnmMibFormatValue
Display hint present
check 2 in TnmMibFormat
dst = NULL
value = 47000580FFE1000000F22C027E
Check 2 in DecodePDU:tmp = 47000580FFE1000000F22C027E
Check 3 in DecodePDU:Adding tmp to varbind
Check 1 in DecodePDU:hex = 64656661756C74
Check 1 in TnmMibFormatValue: typePtr->restKind = 0
typePtr->name= DisplayString
Check 2 in TnmMibFormatValue
No display hint
check 2 in TnmMibFormat
dst = default
value = 64656661756C74
Check 2 in DecodePDU:tmp = default
Check 3 in DecodePDU:Adding tmp to varbind
Check 1 in TnmMibFormatValue: typePtr->restKind = 3
typePtr->name= RtDomainDefSumState
Check 2 in TnmMibFormatValue
Display hint present
check 2 in TnmMibFormat
dst = disable
value = 2
Check 1 in TnmMibFormatValue: typePtr->restKind = 3
typePtr->name= RowStatus
Check 2 in TnmMibFormatValue
Display hint present
check 2 in TnmMibFormat
dst = active
value = 1
{1.3.6.1.4.1.326.2.2.2.4.2.1.1.3.1 {OCTET STRING}
47000580FFE1000000F22C027E}

Here is the output from Linux version of scotty ...

% snmp0 walk xxx Fore-PNNI-MIB!rtDomainPrefix { puts $xxx }
Check 1 in DecodePDU:hex = 47:00:05:80:FF:E1:00:00:00:F2:2C:02:7E
Check 1 in TnmMibFormatValue: typePtr->restKind = 0
typePtr->name= NsapPrefix
Check 2 in TnmMibFormatValue
Display hint present
check 2 in TnmMibFormat
dst = NULL
value = 47:00:05:80:FF:E1:00:00:00:F2:2C:02:7E
Check 2 in DecodePDU:tmp = 47:00:05:80:FF:E1:00:00:00:F2:2C:02:7E
Check 3 in DecodePDU:Adding tmp to varbind
Check 1 in DecodePDU:hex = 64:65:66:61:75:6C:74
Check 1 in TnmMibFormatValue: typePtr->restKind = 0
typePtr->name= DisplayString
Check 2 in TnmMibFormatValue
No display hint
Hari check 2 in TnmMibFormat
dst = default
value = 64:65:66:61:75:6C:74
Check 2 in DecodePDU:tmp = default
Check 3 in DecodePDU:Adding tmp to varbind
Check 1 in TnmMibFormatValue: typePtr->restKind = 3
typePtr->name= RtDomainDefSumState
Check 2 in TnmMibFormatValue
Display hint present
check 2 in TnmMibFormat
dst = disable
value = 2
Check 1 in TnmMibFormatValue: typePtr->restKind = 3
typePtr->name= RowStatus
Check 2 in TnmMibFormatValue
Display hint present
check 2 in TnmMibFormat
dst = active
value = 1
{1.3.6.1.4.1.326.2.2.2.4.2.1.1.3.1 {OCTET STRING}
47:00:05:80:FF:E1:00:00:00:F2:2C:02:7E}

The value passed to DecodePDU function itself has the NSAP address with ":"
in it but not for Solaris version of software. I don't know why this
descrepancy is coming. I am trying to locate the area to fix the problem.
The hard way to fix the problem for me is to remove the ":" before adding to
varbind .... But, I would like to know the reason for this difference.

If anybody have seen this kind of descrepancy, Pls let me know the location
of the problem.... Any help in this matter would be help full for me...

Thanks in advance...

Rgds,
Hari Sanapoori,
Marconi PLC

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.



This archive was generated by hypermail 2b29 : Thu Jan 03 2002 - 14:56:27 MET