can be 50 characters.
For hostname, only the following characters are allowed:
0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_-
Also, '_' and '-' cannot be the first or last character of the hostname.
Sources for this description
MIBdepot
Parsed from SYMBOL-WS5000-MIB.mib.txt · motorola · SYMBOL-WS5000-MIB
Source file: Download SYMBOL-WS5000-MIB · Publisher's file
Vendor MIB copy from the Observium Community archive.
Source file: Download SYMBOL-WS5000-MIB.mib.txt