Improve mib get/set function method

Signed-off-by: leo-ma <begeekmyfriend@gmail.com>