While doing administrator tasks on Netbrain, there could arise a requirement to check whether the devices were discovered via SNMP instead of CLI.
Build a qapp with canvas containing device queue, followed by ‘script’ node. Use the below API in script
from netbrain.sysapi import datamodel
devices = $this
for device in devices:
snmp_status = datamodel.GetDeviceProperty("isSNMPConfig", device)