Page MenuHomeVyOS Platform

SNMPv3: allow hypen in username
Closed, WontfixPublicFEATURE REQUEST

Description

set service snmp v3 user snmp-mon engineid '0x12345678'

  Illegal characters in name
  Value validation failed
  Set failed

Details

Difficulty level
Easy (less than an hour)
Version
1.2.3
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)

Event Timeline

c-po changed Difficulty level from Unknown (require assessment) to Easy (less than an hour).
c-po changed Version from - to 1.2.3.

https://sourceforge.net/p/net-snmp/mailman/message/35520237/

Due to some internal logic in net-snmp this can not be done so easy.

A first test shows that when enabling a hypen in the regex net-snmp will convert the username from ascii-string to hex notation:

0x736e6d702d6d6f6e = snmp-mon

snmp {
    v3 {
         engineid 0xaffebeef
         group default {
             view default
         }
+       user 0x736e6d702d6d6f6e {
+       }
-       user snmp-mon {
-       }
    }
}