Invalid transport protocol while using add-snmp-agents-list.sh utility
search cancel

Invalid transport protocol while using add-snmp-agents-list.sh utility

book

Article ID: 397842

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

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 readValidateSnmpPollingDistributionFile
INFO: Read, parsed and validated the snmp-polling-distribution file successfully.
May 15, 2025 4:14:46 AM com.watch4net.apg.v2.pollerAPI.configuration.AddSnmpAgentsList execute
WARNING: Invalid transport protocol on line 1 (starting with `<DEVICE_NAME>`)!

Environment

Watch4net/MnR - 7.x

Cause

Latest 7.x MnR release JAR file has made change to Transportprotocol and port number indexes.

Resolution

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>