Hello all oracle masters :) I got a dillema. In an SNMP object called vlanportislvlansallowed there's a VARCHAR2 (128) value of hex digits representation of all Vlans on a network router/switch. Basically this means there could be 1024 vlans. The output of SNMP in Oracle can be like this:
00F8 0082 0000 0000 0000 0006 0004 0001 0080 0068 0033 00D1 0019 0050 0038 0068 0050 0034 005D 00C6 0001 00E0 0010 0090 001C 0080......... etc. up to 128 bytes long. Now the clue is to convert this whole hex values into binary ones and count all 1's and return the sum of whole line. I really don't know why oracle puts 00 before each hex... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Oracle PL/SQL" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Oracle-PLSQL?hl=en -~----------~----~----~----~------~----~------~--~---
