i have oid name and when i pass that oid name to an api it should give data type of that oid_name using pysnmp.
suppose i pass case1 : ssCpuRawSystem it should give me Integer32 . case2 : ssCpuRawUser it should give me Counter32 case3 : ssErrorName it should give me DisplayString
Depending on your preferred granularity, you can use PySNMP's MIB API,
Taken from official example