Advanced Port Name
Advanced Port Name
With this option it is possible to change the way the traffic sensor names are created by default while a new device is scanned.
The default is: "Port X on #host"
If PRTG finds a interface alias (ifalias) or a description (ifdescr) the text is added after the port number with the alias preferred.
If you want to change this behavior you can activate the "Advanced Port Name" option. Enter any custom text with placeholders for dynamic content in brackets:
· [port] the port number, e.g. 1, 2, or 99 etc.
· [ifalias] the interface alias read from the OID 1.3.6.1.2.1.31.1.1.1.18.x with x as the port number
· [ifdescr] the interface description read from the OID 1.3.6.1.2.1.2.2.1.2.x with x as the port number
· [custom oid] any custom oid e.g. [1.3.6.1.2.1.2.2.1.2] for the same as the [ifdescr] placeholder. The OID is extended with .x for the port number
Example 1: To get a similar result to the default but always use the description field use the following string:
Port [port]:[ifdescr]
The "on #host" is always automatically added.
Example 2: Cisco routers provide a interface name in the OID 1.3.6.1.4.1.9.2.2.1.1.28 (which stands for iso.org.dod.internet.private.enterprises.cisco.local.linterfaces.lifTable.lifEntry.locIfDescr). You can use this name with this Advanced port name by entering the following string:
Port [port]:[1.3.6.1.4.1.9.2.2.1.1.28]