The SR OS supports automatic execution of CLI scripts when a user successfully logs into the router and starts a CLI session.
Users who authenticate via the local user database can use the configurable config>system>security>user user-name>console>login-exec file-url login exec script.
A global login-script can be configured to execute a common script when any user logs into CLI. A per user login-script can also be configured to execute when a specific user logs into CLI. These login-scripts execute whether the user was authenticated via the local user database, TACACS+ or RADIUS.
To configure a global login exec script, use the config>system>login-control>login-scripts> global file-url script.
To configure a user-specific login exec script, use the config>system>login-control>login-scripts>per-user>user-directory>file-url file-name file-name script.