
Job,
If I worked at Juniper/HPE ... I'd use something like strnvis() to sanitize the (untrusted) network input contained within a Shutdown Communication. See the documentation here https://man.openbsd.org/vis.3 This is what OpenBGPD uses in order to avoid logging raw control character sequences into the router's syslog facility.
Thanks. For the sake of completeness, Junos appears to escape at least some control characters in logs using caret notation. For example, 0x0b (vertical tab) in cease NOTIFICATION message is represented as 0x5e 0x4b (^K) in log message and 0x0d (carriage return) as 0x5e 0x4d (^M). This formatting is present in both local log files and messages forwarded to a syslog collector. Yang,
Apologies for the trouble.
No worries. Martin