Run script after successful login

  • 0
  • 1
  • Question
  • Updated 8 months ago
  • Answered
Hi, How can i configure an EXOS switch to run a .xsf script for all users after each successful login.

Regards
Gonçalo Reis
Photo of GONÇALO NUNO CONTENTE PIMENTEL DA SILVA REIS

Posted 8 months ago

  • 0
  • 1
Photo of Nikunj Tonthanahal

Nikunj Tonthanahal, SW Systems Engineer

  • 184 Points 100 badge 2x thumb
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]
(Edited)
Photo of Nikunj Tonthanahal

Nikunj Tonthanahal, SW Systems Engineer

  • 184 Points 100 badge 2x thumb
Sorry, this will work for EXOS 22.3 and above.
Photo of Drew C.

Drew C., Community Manager

  • 40,724 Points 20k badge 2x thumb
I just edited your post to reflect this correction, Nikunj.
Photo of Drew C.

Drew C., Community Manager

  • 40,858 Points 20k badge 2x thumb
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, exshrc.xsf is what you're looking for.
Photo of Brandon Clay

Brandon Clay, Escalation Support Engineer

  • 13,628 Points 10k badge 2x thumb
...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