slayercat / GoSNMPServer

GoSNMPServer is an SNMP server library fully written in Go. It provides Server Get, GetNext, GetBulk, Walk, BulkWalk, Set and Traps. It supports IPv4 and IPv6, using SNMPv2c or SNMPv3.
BSD 2-Clause "Simplified" License
90 stars 51 forks source link

How to add or remove SubAgent when the server is runing #11

Closed RainyBow closed 2 years ago

RainyBow commented 2 years ago

How to add or remove SubAgent or User when the server is runing

slayercat commented 2 years ago

Well……Multithreading and locking is not fully consided. For a quick start, i'll suggest an atomic operation to fully replace MasterAgent, for the server do not have a state, so it shall works fine.

RainyBow commented 2 years ago

thanks, I change the master to Master ,it works fine.