Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
AlexFerenX
New Contributor II

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?

1 Solution
Toshi_Esumi
SuperUser
SuperUser

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-d...

Toshi

View solution in original post

2 REPLIES 2
Toshi_Esumi
SuperUser
SuperUser

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-d...

Toshi

AlexFerenX

Thank you!

 

Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors