Junos OS

 View Only
last person joined: 2 days ago 

Ask questions and share experiences about Junos OS.
  • 1.  login script

    Posted 10-21-2023 17:07

    Hello all

    I would like to know if there is a way to modify the login script so that it would show me the result of a series of commands upon login.  As a starting point, I would be satisfied with just running some commands without modifying the output but would give me an idea if something is down - i.e. chassis member down, temperature too high, power supply down.

    Are there any good books about automation available? The slax and xlst appears amazingly complicated. Seems like it is possible to use Python just need to know how. 

    Thanks to all the people supporting the Juniper community 



    ------------------------------
    YVON LEDUC
    ------------------------------


  • 2.  RE: login script

    Posted 10-26-2023 10:08

    I like the way you're thinking. I know this isn't what your after, but I have a list of half a dozen commands I like to run to give me a snapshot of health, and I just copy and paste them from an easily accessible text document. As long as you include an extra carriage return at the end to execute the last command, it gets the job done for me. 




  • 3.  RE: login script

    Posted 10-26-2023 16:47

    Found this to modify login script. Now just need to figure out how to create an op script with multiple command.

    [edit system login]
    class super-user {
        login-script super-user-login.slax;
    }


    ------------------------------
    YVON LEDUC
    ------------------------------