Each device (like a router or switch) has its own MIB component that allows a manager to pull performance data or definitions. About MIBs - Oracle Help Center
(optional flag)
def fetch_snmp(host, community, oid): errorIndication, errorStatus, errorIndex, varBinds = next( getCmd(SnmpEngine(), CommunityData(community), UdpTransportTarget((host, 161)), ContextData(), ObjectType(ObjectIdentity(oid))) ) if errorIndication: return None return varBinds[0][1]
Each device (like a router or switch) has its own MIB component that allows a manager to pull performance data or definitions. About MIBs - Oracle Help Center
(optional flag)
def fetch_snmp(host, community, oid): errorIndication, errorStatus, errorIndex, varBinds = next( getCmd(SnmpEngine(), CommunityData(community), UdpTransportTarget((host, 161)), ContextData(), ObjectType(ObjectIdentity(oid))) ) if errorIndication: return None return varBinds[0][1]
Новый сайт Телецентра работает в тестовом режиме. Мы обновляем контент и добавляем функционал.