Junos OS

  • 1.  Allowing xml-mode command

    Posted 11-26-2020 16:00
    Hi,

    I'm trying to restrict commands for user, it must have in allowed only xml-mode and show. 

    On SRX1500 Junos: 18.2R3.4  I have configuration like below and it's works perfectly, but on srx1500 Junos: 18.4R3-S4.2 the only working command is show interface.*

    set system login class view-123 permissions view
    set system login class view-123 allow-commands "(show interface.*)|(.*xml-mode)(.*netconf)|(.*need-trailer)"
    set system login class view-123 deny-commands .*

    Is it any sollution to make it work on srx1500 Junos: 18.4R3-S4.2.
    Thank you