cancel
Showing results for 
Search instead for 
Did you mean: 

Run script after successful login

Run script after successful login

GONÇALO_NUNO_CO
New Contributor III
Hi, How can i configure an EXOS switch to run a .xsf script for all users after each successful login.

Regards
Gonçalo Reis
6 REPLIES 6

GONÇALO_NUNO_CO
New Contributor III
...Just like that, dump exshrc.xsf in /usr/local/cfg and you are ready to go. Thats great guys. Thanks a lot.

Regards
Gonçalo Reis

Drew_C
Valued Contributor III
Hi Gonçalo,
Take a look at this topic: https://community.extremenetworks.com/extreme/topics/xos-how-to-create-cli-aliases-shortcuts

Specifically, the post by Dave Hammers. As Nikunj mentioned above,
code:
exshrc.xsf
is what you're looking for.

BrandonC
Extreme Employee

Nikunj_Tonthana
Extreme Employee
Hi Gonçalo,

If you are using EXOS version 22.3+, you can use VI to create a script named "exshrc.xsf". This script will be run each time a user logs in. It is meant only for shell specific configuration, but you can put pretty much any command in there.

Thanks,
Nikunj

[edited to correct version number --Drew]
GTM-P2G8KFN