^NN - Set SNMP
Sets the printer's SNMP identity and community names.
^NN sets the printer's SNMP identity and its three community names, so a
management station can read its state, write to it, and receive traps. Each community name defaults to public. A set community left at that
default leaves SNMP writes open to anyone who can reach the printer.
Syntax
^NNa,b,c,d,e,fSupport
Accepted and skipped, because it configures the printer rather than the label. It cannot change the rendered output, and Labelary skips it too.
Management-protocol configuration that monitoring tools read, not the format. The renderer does not parse this command. It reports IGNORED_COMMAND at info severity, which does not reach X-Warnings. Labelary is also silent, so the rendered label is identical in both engines. — not pinned by a test
Labelary renders this command.
Parameters
aSystem namerequired · textThe SNMP system name, which is the same value as the printer name. Up to 17 alphanumeric characters.
- Invalid value
- not documented, and we have not measured it. The renderer does not parse or measure this command. The guide states no default.
- Test coverage
bSystem contactrequired · textFree contact text, up to 50 alphanumeric characters.
- Invalid value
- not documented, and we have not measured it. The renderer does not parse or measure this command. The guide states no default.
- Test coverage
cSystem locationrequired · textLocation text, which the guide notes carries the printer's model information. Up to 50 alphanumeric characters.
- Invalid value
- not documented, and we have not measured it. The renderer does not parse or measure this command. The guide states no default.
- Test coverage
dGet community nameoptional · textCommunity name accepted for SNMP reads. Up to 19 alphanumeric characters.
- Default
- public
- Invalid value
- not documented, and we have not measured it. The renderer does not parse or measure this command.
- Test coverage
eSet community nameoptional · textCommunity name accepted for SNMP writes. Up to 19 alphanumeric characters.
- Default
- public
- Invalid value
- not documented, and we have not measured it. The renderer does not parse or measure this command.
- Test coverage
fTrap community nameoptional · textCommunity name sent with SNMP traps. Up to 20 alphanumeric characters.
- Default
- public
- Invalid value
- not documented, and we have not measured it. The renderer does not parse or measure this command.
- Test coverage
Behavior
The guide attaches a firmware caveat to the whole command: versions SP1071 and SP1073 support SNMP traps only, and ignore the other parameters. The first three arguments — system name, contact and location — have no documented default; only the community names do.
SNMP is a management channel beside printing, and it never touches a format.
The renderer ignores this command and reads no arguments. It reports
IGNORED_COMMAND at info severity, which does not reach the X-Warnings
header. Labelary is also silent, so the rendered label is identical in both
engines.
Example
Naming the printer and separating the read and write communities. The label is unaffected:
^XA
^NNPRN01,IT team,Warehouse 3,public,private,public
^FO40,60^A0N,50,50^FDSNMP set^FS
^XZ
Related commands
^NWSet Web Authentication Timeout ValueSets how long the printer's web pages stay authenticated for one IP address.^NTSet SMTPPoints the printer at an SMTP server so it can e-mail alerts.^NSChange Wired Networking SettingsSets the wired print server's addressing, timeout and raw port.^WIChange Wireless Network SettingsSets the wireless print server's addressing, timeout and raw port.