Page MenuHomePhabricator

SNMPv3 tsm Warning: Unknown token: localCert
Open, NormalPublicBUG

Description

While rewriting the SNMPv3 components as XML/Python I stumbled upon this while testing:

Setting in SNMPv3 set service snmp v3 tsm local-key '01:23:45:67:AF:AB:AF:FE:44:44:44:44:55:66:77:88:99:00:22:22' results in:

Jun  3 19:26:27 LR2 snmpd[7144]: /etc/snmp/snmpd.conf: line 22: Warning: Unknown token: localCert.
Jun  3 19:26:27 LR2 snmpd[7144]: /etc/snmp/snmpd.conf: line 32: Error: snmpd: failed to parse this line.
Jun  3 19:26:27 LR2 snmpd[7144]: net-snmp: 1 error(s) in config file(s)
Jun  3 19:26:27 LR2 snmpd[7144]: getaddrinfo: tlstcp Temporary failure in name resolution
Jun  3 19:26:27 LR2 snmpd[7144]: getaddrinfo("tlstcp", NULL, ...): Temporary failure in name resolution
Jun  3 19:26:27 LR2 snmpd[7144]: Error opening specified endpoint "tlstcp:10161"
Jun  3 19:26:27 LR2 snmpd[7144]: Server Exiting with code 1

Details

Difficulty level
Unknown (require assessment)
Version
1.2.0-rolling+201806010337
Why the issue appeared?
Will be filled on close

Event Timeline

Interesting. Perhaps the config format has changed in newer versions? What do the docs say?

syncer triaged this task as Normal priority.Jun 10 2018, 2:27 AM
pasik added a subscriber: pasik.Mar 12 2019, 6:13 PM