(self, config)
return var_binds[0][1].prettyPrint()
Return the sysObjectID of the instance.
Return the sysObjectID of the instance.
Return the sysObjectID of the instance .
def fetch_sysobject_oid(self, config):
        # type: (InstanceConfig) -> str
        """Return the sysObjectID of the instance."""
        # Reference sysObjectID directly, see http://oidref.com/1.3.6.1.2.1.1.2
        oid = ObjectType(ObjectIdentity((1, 3, 6, 1, 2, 1, 1, 2, 0)))
        self.log.debug('Running SNMP command on OID: %s', OIDPrinter((oid,), with_values=False))
        var_binds = snmp_get(config, [oid], lookup_mib=False)
        self.log.debug('Returned vars: %s', OIDPrinter(var_binds, with_values=True))
        return var_binds[0][1].prettyPrint()
def fetch_sysobject_oid ( self , config ) : # type: (InstanceConfig) -> str # Reference sysObjectID directly, see http://oidref.com/1.3.6.1.2.1.1.2 oid = ObjectType ( ObjectIdentity ( ( 1 , 3 , 6 , 1 , 2 , 1 , 1 , 2 , 0 ) ) ) self . log . debug ( 'Running SNMP command on OID: %s' , OIDPrinter ( ( oid , ) , with_values = False ) ) var_binds = snmp_get ( config , [ oid ] , lookup_mib = False ) self . log . debug ( 'Returned vars: %s' , OIDPrinter ( var_binds , with_values = True ) ) return var_binds [ 0 ] [ 1 ] . prettyPrint ( )