[j-nsp] event-options to modify configuration
Pallavi Mahajan
pallavi at juniper.net
Tue Apr 21 12:43:20 EDT 2015
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
More information about the juniper-nsp
mailing list