Getstring Get(string sOID,int iSyntax) Return values A string with the value fetched from the remote SNMP agent. Parameters
iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifInOctets@NVIDIA nForce Networking Controller Example of normal OID iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifInOctets.1
Reading binary values Some OID's may return binary data instead of for example a string or integer, this can be a problem since the Get function returns a null terminated string. A solution for this problem is to settings the iSyntax variable to SNMP_DATA_AS_HEXSTRING. The function will then return the binary data hexadecimal encoded. Example of three hexadecimal encoded bytes 49 4E4D | |||
Topic 9655: Send Feedback. Download a PDF of this online book from the first topic in the table of contents. Print this topic. |