public String getValueType(SnmpValue v) throws SnmpValueException {
        if (v instanceof SnmpInteger) {
            return "INT32";
        } else if (v instanceof SnmpOctetStr) {
            return "OCT-STR";
        } else if (v instanceof SnmpIpAddress) {
            return "IP-ADDR";
        } else if (v instanceof SnmpCounter32) {
            return "COUNTER32";
        } else if (v instanceof SnmpUnsigned32) {
            return "UINT32";
        } else if (v instanceof SnmpTimeTicks) {
            return "TIMETICKS";
        } else if (v instanceof SnmpOpaque) {
            return "OPAQUE";
        } else if (v instanceof SnmpNsap) {
            return "NSAP";
        } else if (v instanceof SnmpCounter64) {
            return "COUNTER64";
        }
        throw new SnmpValueException("Unknown type");
    }