[j-nsp] event-options to modify configuration

Chen Jiang ilovebgp4 at gmail.com
Tue Apr 21 21:57:09 EDT 2015


Yes, I have tried the same manual configuration through "lab" user and it
works fine.



On Wed, Apr 22, 2015 at 12:43 AM, Pallavi Mahajan <pallavi at juniper.net>
wrote:

> Have you tried checking if the user ‘lab’ can invoke the ‘set interface’
> config knob from the CLI?
>
> Thanks,
> Pallavi
>
> On 21/04/15 9:10 pm, "Chen Jiang" <ilovebgp4 at gmail.com> wrote:
>
> >Hi! Experts
> >
> >I tried to use event-options to change the JUNOS configuration but there
> >is
> >some issue, are you experience the same issue and could shed some light on
> >this.
> >
> >Thanks for your help!
> >
> >lab at r1# show event-options
> >generate-event {
> >    Configure-Ot-Change time-of-day "21:44:00 +0800";
> >}
> >policy cfg-change {
> >    events Configure-Ot-Change;
> >    then {
> >        change-configuration {
> >            retry count 3 interval 1;
> >            commands {
> >                "set interface ge-1/0/0 description test";
> >            }
> >            user-name lab;
> >            commit-options {
> >                log "it works";
> >            }
> >        }
> >    }
> >}
> >
> >lab at r1# show system login
> >user lab {
> >    class super-user;
> >    authentication {
> >        encrypted-password "$1$bCUr1ywM$IsPhjvdT88q/EGwtPD1UX1"; ##
> >SECRET-DATA
> >    }
> >}
> >
> >lab at r1# run show log messages | match "21:44"
> >Apr  7 21:44:02  r1 eventd: EVENTD_CONFIG_CHANGE_FAILED: Configuration
> >change failed: rpc to management daemon failed while executing policy
> >cfg-change with user lab privileges
> >
> >
> >--
> >BR!
> >
> >
> >
> >           James Chen
> >_______________________________________________
> >juniper-nsp mailing list juniper-nsp at puck.nether.net
> >https://puck.nether.net/mailman/listinfo/juniper-nsp
>
>


-- 
BR!



           James Chen


More information about the juniper-nsp mailing list