Learn How We Can Help You Keep Teleworkers Protected During the COVID-19 Crisis

Network Change & Configuration Management

Reply
Highlighted

Can DeviceCommunity Be Retrieved Directly From find API Call?

Authority
Posts: 41
943     0

Hi,

We are trying to get a list of DeviceName and its community string from Perl API.

my $broker = $client->get_broker('Device');

my @devices = $broker->find({
        op_DeviceName => 'like', val_c_DeviceName => 'some matching pattern',
        select => [qw(DeviceID DeviceName DeviceCommunity)],
});

This does not work.  It seems like I can't directly retrieve DeviceCommunity.  Is there a way to do this?  

Thanks,
Nick

Highlighted

Nick,

Adviser
Posts: 422
944     0

Nick,

You have to first use devices to get the DeviceID and then pass the ID to DeviceSettings

But we encrpy the SNMP password for your protection.

 

You can also do a Config Search for snm-server community and show all occurance 

Then do it for SNMPv3 as well

 

Sif

Follow me on LinkedIn: https://www.linkedin.com/in/sifbaksh
Twitter: https://twitter.com/sifbaksh
Showing results for 
Search instead for 
Do you mean 

Recommended for You