ExtremeSwitching (EXOS)

Expand all | Collapse all

Run script after successful login

  • 1.  Run script after successful login

    Posted 03-22-2018 13:54
    Hi, How can i configure an EXOS switch to run a .xsf script for all users after each successful login.

    Regards
    Gonçalo Reis


  • 2.  RE: Run script after successful login

    Posted 03-22-2018 13:58
    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]


  • 3.  RE: Run script after successful login

    Posted 03-22-2018 14:00
    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.



  • 4.  RE: Run script after successful login

    Posted 03-22-2018 14:20
    ...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


  • 5.  RE: Run script after successful login

    Posted 03-22-2018 13:58
    Sorry, this will work for EXOS 22.3 and above.


  • 6.  RE: Run script after successful login

    Posted 03-22-2018 13:58
    I just edited your post to reflect this correction, Nikunj.


  • 7.  RE: Run script after successful login

    Posted 03-22-2018 14:00