@classmethod<EOL><INDENT>def snmpget(self, oid):<DEDENT>
data = self.snmpcmd("<STR_LIT>", oid).split("<STR_LIT:=>")[<NUM_LIT:1>]<EOL>if "<STR_LIT::>" in data:<EOL><INDENT>(datatype, data) = data.rsplit("<STR_LIT>", <NUM_LIT:1>) if "<STR_LIT>" in data else (data.rstrip("<STR_LIT::>"),"<STR_LIT>")<EOL>datatype = datatype.strip()<EOL><DEDENT>else:<EOL><INDENT>datatype = "<STR_LIT>"<EOL><DEDENT>data = data.strip()<EOL>if data.startswith('<STR_LIT:">') and data.endswith('<STR_LIT:">'):<EOL><INDENT>data = data[<NUM_LIT:1>:-<NUM_LIT:1>]<EOL><DEDENT>return (data, datatype)<EOL>
Executes a "snmpget" operation in the net-snmp test environment.

            "oid" is the OID to run the operation against.

            Returns a two-tuple (data, datatype).