Header Only - DO NOT REMOVE - Extreme Networks

Run script after successful login


Userlevel 1
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

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]
Nikunj Tonthanahal wrote:

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]

Sorry, this will work for EXOS 22.3 and above.
Userlevel 7
Nikunj Tonthanahal wrote:

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]

I just edited your post to reflect this correction, Nikunj.
Userlevel 7
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.
Userlevel 7
Drew C. wrote:

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.

Here's a link directly to the post for simplicity:

https://community.extremenetworks.com/extreme/topics/xos-how-to-create-cli-aliases-shortcuts?topic-r...
Userlevel 7
Starting in EXOS 22.3, you can create a script named 'exshrc.xsf' in the /usr/local/cfg/ directory, and it will be executed after any user logs in.
Userlevel 1
...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

Reply