NetXMS Support Forum

English Support => General Support => Topic started by: gkaudewitz on January 18, 2024, 12:14:28 PM

Title: SNMP with different community-strings for read and write
Post by: gkaudewitz on January 18, 2024, 12:14:28 PM
Hello together,

configuring different community-strings for read and write access is a common solution on SNMP-servers.
What is the way to implement the usage of a seperate community-string for SNMP-set-access to networkcomponents from within NetXMS.

Best regards

Georg
Title: Re: SNMP with different community-strings for read and write
Post by: Filipp Sudanov on January 18, 2024, 01:12:02 PM
Community string from node properties is used for read operations during polls and data collection.

Write operations, as far as I know, could be performed from NXSL scripts only and in createSNMPTransport method (https://www.netxms.org/documentation/nxsl-latest/#_instance_methods_13) you can specify custom community string. You can store this community string in a node custom attribute.