Skip to main content

Netbrain - Discovery Method of Devices

  • October 6, 2021
  • 0 replies
  • 155 views

Rakesh Mandava
Forum|alt.badge.img+1

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)
    
 

 

 

 

 

0 replies

Be the first to reply!