I have a SRX210 with CX111 connected as backup WAN link. I followed the Juniper configuraiton guide on how to set the CX111 as a backup WAN link using automated RPM scripts. I downloaded the event and commit script from Juniper.net and configured SRX as shown in config guide. The problem is the RPM script does not work. When I unplug my primary WAN link, ge-0/0/0, the RPM should enable ge-0/0/1 which will pull a DHCP address from the CX111. At that point I should receive an new default route from the 3/4G ISP.
Does anyone have experience with this?
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Files are in the correct dir on the SRX.
[edit]
root@775-MOCK# run file list /var/db/scripts/commit/
/var/db/scripts/commit/:
rpm-monitor-config.xslt*
[edit]
root@775-MOCK# run file list /var/db/scripts/event/
/var/db/scripts/event/:
rpm-monitor.xslt*
[edit]
root@775-MOCK#
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Config is good
[edit system scripts commit]
root@775-MOCK# show
allow-transients;
file rpm-monitor-config.xslt;
[edit system scripts commit]
root@775-MOCK#
[edit event-options]
root@775-MOCK# show
event-script {
file rpm-monitor.xslt;
}
[edit event-options]
root@775-MOCK#
[edit services rpm probe rpm-monitor-probes test server1]
root@775-MOCK# show
probe-type icmp-ping;
target address 198.253.175.5; !!!THIS IS 2ND HOP DOWNSTREAM ROUTER!!!
probe-count 5;
probe-interval 5;
test-interval 15;
source-address 150.125.100.2; !!THIS IS ge-0/0/0.0. NEXT HOP .1/30!!
[edit services rpm probe rpm-monitor-probes test server1]
root@775-MOCK#
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Pings are good
root@775-MOCK# run show services rpm history-results
Owner, Test Probe received Round trip time
rpm-monitor-probes, server1 Mon Apr 23 09:27:21 2012 5044 usec
rpm-monitor-probes, server1 Mon Apr 23 09:27:26 2012 63445 usec
rpm-monitor-probes, server1 Mon Apr 23 09:27:31 2012 12792 usec
rpm-monitor-probes, server1 Mon Apr 23 09:27:37 2012 153927 usec
rpm-monitor-probes, server1 Mon Apr 23 09:27:41 2012 6659 usec
rpm-monitor-probes, server1 Mon Apr 23 09:27:57 2012 103238 usec
rpm-monitor-probes, server1 Mon Apr 23 09:28:02 2012 5800 usec
rpm-monitor-probes, server1 Mon Apr 23 09:28:07 2012 107052 usec
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Parsed log file. Always says same thing
root@775-MOCK# run show log rpm-monitor | last
Apr 23 09:31:53 775-MOCK cscript: rpm-monitor: Triggered by ping_test_up test server1 owner rpm-monitor-probes
Apr 23 09:31:54 775-MOCK cscript: rpm-monitor: RPM probe up flagged, but there is nothing to do with the routes
Apr 23 09:31:54 775-MOCK cscript: rpm-monitor: RPM probe up flagged, but there is nothing to do with the interfaces
Apr 23 09:31:54 775-MOCK cscript: rpm-monitor: RPM probe up flagged, but there is nothing to do with the logical interfaces
Apr 23 09:33:05 775-MOCK cscript: rpm-monitor: Triggered by ping_test_up test server1 owner rpm-monitor-probes
Apr 23 09:33:06 775-MOCK cscript: rpm-monitor: RPM probe up flagged, but there is nothing to do with the routes
Apr 23 09:33:06 775-MOCK cscript: rpm-monitor: RPM probe up flagged, but there is nothing to do with the interfaces
Apr 23 09:33:06 775-MOCK cscript: rpm-monitor: RPM probe up flagged, but there is nothing to do with the logical interfaces
Apr 23 09:34:16 775-MOCK cscript: rpm-monitor: Triggered by ping_test_up test server1 owner rpm-monitor-probes
Apr 23 09:34:16 775-MOCK cscript: rpm-monitor: RPM probe up flagged, but there is nothing to do with the routes
Apr 23 09:34:16 775-MOCK cscript: rpm-monitor: RPM probe up flagged, but there is nothing to do with the interfaces
Apr 23 09:34:16 775-MOCK cscript: rpm-monitor: RPM probe up flagged, but there is nothing to do with the logical interfaces
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Pull primary WAN link
rpm-monitor-probes, server1 Mon Apr 23 09:35:21 2012 5224 usec
rpm-monitor-probes, server1 Mon Apr 23 09:35:36 2012 47657 usec
rpm-monitor-probes, server1 Mon Apr 23 09:35:41 2012 No route to target
rpm-monitor-probes, server1 Mon Apr 23 09:35:46 2012 No route to target
rpm-monitor-probes, server1 Mon Apr 23 09:35:52 2012 No route to target
[edit]
root@775-MOCK# run show log rpm-monitor | last
Apr 23 09:33:05 775-MOCK cscript: rpm-monitor: Triggered by ping_test_up test server1 owner rpm-monitor-probes
Apr 23 09:33:06 775-MOCK cscript: rpm-monitor: RPM probe up flagged, but there is nothing to do with the routes
Apr 23 09:33:06 775-MOCK cscript: rpm-monitor: RPM probe up flagged, but there is nothing to do with the interfaces
Apr 23 09:33:06 775-MOCK cscript: rpm-monitor: RPM probe up flagged, but there is nothing to do with the logical interfaces
Apr 23 09:34:16 775-MOCK cscript: rpm-monitor: Triggered by ping_test_up test server1 owner rpm-monitor-probes
Apr 23 09:34:16 775-MOCK cscript: rpm-monitor: RPM probe up flagged, but there is nothing to do with the routes
Apr 23 09:34:16 775-MOCK cscript: rpm-monitor: RPM probe up flagged, but there is nothing to do with the interfaces
Apr 23 09:34:16 775-MOCK cscript: rpm-monitor: RPM probe up flagged, but there is nothing to do with the logical interfaces
Apr 23 09:35:26 775-MOCK cscript: rpm-monitor: Triggered by ping_test_up test server1 owner rpm-monitor-probes
Apr 23 09:35:26 775-MOCK cscript: rpm-monitor: RPM probe up flagged, but there is nothing to do with the routes
Apr 23 09:35:26 775-MOCK cscript: rpm-monitor: RPM probe up flagged, but there is nothing to do with the interfaces
Apr 23 09:35:27 775-MOCK cscript: rpm-monitor: RPM probe up flagged, but there is nothing to do with the logical interfaces
---(more 100%)---[abort]
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ge-0/0/1 is not turned on by script
root@775-MOCK# run show interfaces ge-0/0/1 terse
Interface Admin Link Proto Local Remote
ge-0/0/1 up up
ge-0/0/1.0 down up eth-switch
[edit]
root@775-MOCK# run show configuration interfaces ge-0/0/1
description CX-WAN-LINK;
unit 0 {
apply-macro rpm-monitor-server1 {
test-name server1;
test-owner rpm-monitor-probes;
}
disable;
family ethernet-switching {
port-mode trunk;
vlan {
members [ data management ];
}
native-vlan-id data;
}
}
[edit]
root@775-MOCK#