syslogMessageFormat
MX-NLM-MIB ·
.0.1100.1.100.200
Object
scalar
r/w
OctetString
Message Format
Specifies the format of a syslog notification.
Formal Syntax Description:
* Precision = DIGIT
* Width = DIGIT
* MacroId = (ALPHA / '_')
* Macro = %[Width]|[.Precision]|[Width.Precision]MacroId
The Width field is the minimum width of the converted
argument. If the converted argument has fewer characters than
the specified field width, then it is padded with spaces. If
the converted argument has more characters than the specified
field width, the field width is extended to whatever is
required. The Precision field specifies the maximum number of
characters to be printed from a string.
Examples: message = 'The button is pressed.'
* Syslog : %message --> 'The button is pressed.'
* Syslog : %25message --> 'The button is pressed. '
* Syslog : %10.5message --> 'The b '
* Syslog : %5.10message --> 'The button'
* Syslog : %.5message --> 'The b'
Syslog Notification predefined macros:
Control characters
* %% : %
Syslog notification macros
* %msgid : The notification numkey.
* %mac : Lowercase MAC address of the device.
* %serial : Serial number of the device.
* %serviceid : The numkey of the service that issued the
notification.
* %servicetextkey : The textkey of the service that issued
the notification.
* %servicename : The display name of the service that issued
the notification.
* %message : The message text of the notification.
* %mfpname : The firmware name.
* %version : The firmware version.
* %profile : The firmware profile.
For example, syslog compliant to RFC 5424 may use a format
similar to:
* 1 - %mac DGW-2.0 %servicetextkey %msgid %message
Context
- MIB
- MX-NLM-MIB
- OID
.0.1100.1.100.200- Type
- scalar
- Access
- readwrite
- Status
- current
- Parent
- syslogGroup
- Siblings
- 1
Syntax
OctetString
Values & Constraints
Object Constraints
range: 0-1024
Related Objects
Sibling Objects
| Object | Type | Syntax | OID |
|---|---|---|---|
| syslogRemoteHost Remote Host
Host name and port number of the device that archives log
entries sent by syslog transport. Specifying no port (or port
0) sends notification to port 514. | scalar | MX-TC2MxIpHostNamePort | .0.1100.1.100.100 |