When user tries to add seedfile using add-snmp-agents-list.sh utility, below error is encountered:
[<USER>@<HOSTNAME> bin]# ./add-snmp-agents-list.sh /opt/seedfile.txt <APG_BASE>/Collecting/SNMP-Collector/Generic-SNMP/conf/snmp-polling-distribution.xml <COLLECTOR_NAME>
May 15, 2025 4:14:46 AM com.watch4net.apg.v2.pollerAPI.configuration.AddSnmpAgentsList readValidateSnmpPollingDistributionFileINFO: Read, parsed and validated the snmp-polling-distribution file successfully.May 15, 2025 4:14:46 AM com.watch4net.apg.v2.pollerAPI.configuration.AddSnmpAgentsList executeWARNING: Invalid transport protocol on line 1 (starting with `<DEVICE_NAME>`)!
Watch4net/MnR - 7.x
Latest 7.x MnR release JAR file has made change to Transportprotocol and port number indexes.
Swap port number and protocol to work.
Example:
Instead of below in seedfile.txt
<Device_Name>,<Device_IP>,161,udp,9000,2,v3,<V3_User>,SHA,<PASSWORD>,AES,<PASSWORD>,Firewall,doNotRetry,<GROUP>
Update it as
<Device_Name>,<Device_IP>,udp,161,9000,2,v3,<V3_User>,SHA,<PASSWORD>,AES,<PASSWORD>,Firewall,doNotRetry,<GROUP>