I have just been thrown a curve ball in the middle of SNMP Testing 🙂
I have been asked to enable the REST API on the MX240 routers we have. Okay, no problem. Juniper has great resources for this and a great example....
Problem I have is the following:
Set system servies rest http addresses xxx.xxx.xxx.xxx
It does not matter what address I put in there I get the following error:
Clive@THW-CORE-01# set system services rest http addresses [10.1.100.10]
Clive@THW-CORE-01# commiterror: rest-api: Address 10.1.100.10:3000 unavailableerror: commit failed: daemon file propagation failed
I have tried searching for why this occurs as it should be available on the MX240s but cannot find why.
Any help appreciated please
lab@TEST# run show versionJunos: 14.2R6.5
lab@TEST# run show configuration chassis | display setset chassis aggregated-devices ethernet device-count 1
lab@TEST# run show configuration interfaces | display set | match ae1set interfaces ge-1/0/0 gigether-options 802.3ad ae1set interfaces ae1 aggregated-ether-options minimum-links 1set interfaces ae1 aggregated-ether-options link-speed 1gset interfaces ae1 unit 0 family inet address 10.1.1.100/32
lab@TEST# run show interfaces terse ae1Interface Admin Link Proto Local Remoteae1 up upae1.0 up up inet 10.1.1.100 --> 0/0multis ervice
lab@TEST# run show route 10.1.1.100
inet.0: 6 destinations, 9 routes (6 active, 0 holddown, 0 hidden)+ = Active Route, - = Last Active, * = Both
10.1.1.100/32 *[Direct/0] 00:12:29> via ae1.0[Local/0] 00:12:31Local via ae1.0
lab@TEST# set system services rest http port 3000
lab@TEST# set system services rest http addresses 10.1.1.100
lab@TEST# commit checkconfiguration check succeeds
lab@TEST# commitcommit complete
lab@TEST# run show configuration | match rest | display setset system services rest http port 3000set system services rest http addresses 10.1.1.100
Point to be remember:
1. set chassis aggregated-devices ethernet device-count-----------should be configured2. AE should be up up3. The IP address defined as the addresses in rest http configuration should be present in the " show route x.x.x.x" as direct /local router via the same interface.
Please try this and let us know the rsult.
Thanks Rahul and Kingsman ---- Worked perfectly