zpl.tools
Network and wireless

^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,f

Support

Recognised, deliberately skippedparsed: none · state: none · rendered: none

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 · text

The 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 · text

Free 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 · text

Location 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 · text

Community 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 · text

Community 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 · text

Community 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

Open in viewer