Because it took me forever to piece this simple code together
1 2 3 4 | import netsnmp session = netsnmp.Session( DestHost = 'your.host.com' , Version = 2 , Community = 'public' ) vars = netsnmp.VarList( netsnmp.Varbind( '.1.3.6.1.4.1.2021.8.1.101.1' ) ) print ( session.get( vars ) ) |
Thanks was searching sth simple and this one helped much