Skip to main content
AlexFerenX
Visitor III
May 14, 2024 3:57 AM UTC
Solved

System variable value not shown (or blank or empty) in Replacement Message

Hello!

I've only slightly modified Replacement Message "post_admin-disclaimer-text" but kept out-of-box system variables. However, as per screenshot, variable values aren't being substituted (or are empty valued)... Is this a fault, or am I'm doing it wrong?

 

 

FG200F-1 (global) # show system global | grep post-login-banner     set post-login-banner enable  FG200F-1 (global) # show system replacemsg admin post_admin-disclaimer-text config system replacemsg admin "post_admin-disclaimer-text"     set buffer "Unauthorised Access Prohibited.  %%LAST_SUCCESSFUL_LOGIN%%; %%LAST_FAILED_LOGIN%%" end

 

 

 

Screenshot X.pngScreenshot Y.png 

 

c:\Temp} ssh -l username FG200F-1 username@FG200F-1's password:  Unauthorised Access Prohibited.  ;   (Press 'a' to accept):  FG200F-1 # exit Connection to FG200F-1 closed.

Also.. How to include line breaks?

Toshi_Esumi
SuperUser
May 14, 2024 5:37 AM UTC

Do you have this enabled?

config system global
  set login-timestamp enable
end


Below KB has a typo: should be "enable", not "enabled":
https://community.fortinet.com/t5/FortiGate/Technical-Tip-Configuring-last-successful-failed-login-details/ta-p/191886

Toshi

2 replies

Toshi_Esumi
SuperUser
SuperUser
May 14, 2024 5:37 AM UTC

Do you have this enabled?

config system global
  set login-timestamp enable
end


Below KB has a typo: should be "enable", not "enabled":
https://community.fortinet.com/t5/FortiGate/Technical-Tip-Configuring-last-successful-failed-login-details/ta-p/191886

Toshi

AlexFerenX
Visitor III
May 14, 2024 6:20 AM UTC

Thank you!

 

Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT