Forum Discussion
LTM Traceroute for non-default ROUTE PARTITION
I’m trying to run a cron job on LTM to perform a traceroute to a specific host an log the results. The problem I have is that this command must be run from a specific ROUTE DOMAIN.
[root@ka-lb05:Active:In Sync] config rdsh 1 <- this changes to ROUTE DOMAIN 1 (note trace fails from ROUTE DOMAIN 0)
[root@ka-lb05:Active:In Sync] config rdsh 1 <- this changes to ROUTE DOMAIN 1 (note trace fails from ROUTE DOMAIN 0) traceroute to 217.21.139.34 (217.21.139.34), 30 hops max, 40 byte packets
1 (192.168.241.202) 1.167 ms 1.508 ms 1.779 ms
2 (64.141.77.125) 7.558 ms 7.556 ms 7.726 ms
3 (64.251.64.21) 8.058 ms 7.639 ms 10.045 ms
4 (66.163.72.129) 7.691 ms 9.995 ms 9.984 ms
5 (66.163.72.162) 10.115 ms 9.926 ms 12.151 ms
6 (66.163.66.218) 13.633 ms 13.765 ms 14.215 ms <- traceroute runs
7 (66.163.67.241) 15.877 ms 11.592 ms 12.576 ms
8 (154.11.2.85) 13.450 ms 13.453 ms 13.628 ms
9 (173.182.207.196) 66.667 ms 71.412 ms 71.551 ms
10 (209.29.180.10) 72.060 ms 72.184 ms 71.911 ms
11 (217.21.139.25) 72.721 ms 71.968 ms 71.686 ms
12 (217.21.139.34) 70.608 ms 73.414 ms 74.336 ms
13 (217.21.139.34) 69.957 ms 71.974 ms 73.237 ms
[root@ka-lb05:Active:In Sync] config
[root@ka-lb05:Active:In Sync] config [root@ka-lb05:Active:In Sync] config exit <- exits back to ROUTE DOMAIN 0 exit [root@ka-lb05:Active:In Sync] config
Here is my script:
[root@ka-lb05:Active:In Sync] scripts cat latencytest
!/bin/bash
echo hello <- print hello before changing to ROUTE DOMAIN 1
rdsh 1 <- change to ROUTE DOMAIN 1
tracert -T -p 443 217.21.139.34
exit <- go back to ROUTE DOMAIN 0
However, the trace does not work. Here is what it looks like.
[root@ka-lb05:Active:In Sync] scripts ./latencytest <- command that calls the script
hello <- echos hello
[root@ka-lb05:Active:In Sync] scripts <- nothing happens
[root@ka-lb05:Active:In Sync] scripts <- nothing happens
[root@ka-lb05:Active:In Sync] scripts exit <- I enter exit at the prompt
exit
traceroute to 217.21.139.34 (217.21.139.34), 30 hops max, 40 byte packets <- traceroute starts...appears to run from ROUTE DOMAIN 0
1 * * *
2 * * *
3 * * *
4 * * *
Is there something I need to do to get this to work?
4 Replies
- dragonflymr
Cirrostratus
Hi, No Pro here but maybe you can use this: rdexec - The rdexec utility allows you to perform a single command for the specified route domain instead of converting the IPv4 IP address argument to an IPv6 IP address argument before using it as an argument for the command. For example: rdexec [] Anyway did you tried tracert IP%RDID? Is that not working as well? What is TMOS version? Piotr - StephanManthey
Nacreous
Hi Dale, Piotr is right (+1). rdexec is the tool to use, imho. I´m using it since a couple of months successfully with an external monitor (openssl s_client with server name indication required) in combination with routing domains. Thanks, Stephan - StephanManthey
Nacreous
Hi,
just validated on v11.5.1 the following (my route domain has an index of 131):[root@bigip205:Active:Standalone] config rdexec 131 tracepath 10.150.150.203 1: bigip205.lb-net.bit (10.100.100.205) 0.263ms pmtu 1500 1: 10.100.100.208 (10.100.100.208) asymm 2 5.987ms 2: 10.150.150.203 (10.150.150.203) asymm 3 9.495ms reached Resume: pmtu 1500 hops 2 back 3 [root@bigip205:Active:Standalone] config rdexec 131 tracert 10.150.150.203 traceroute to 10.150.150.203 (10.150.150.203), 30 hops max, 40 byte packets 1 (10.100.100.208) 4.756 ms 4.790 ms 4.786 ms 2 (10.150.150.203) 8.011 ms 8.030 ms 8.028 ms [root@bigip205:Active:Standalone] config rdexec 131 ping -c 2 10.150.150.203 PING 10.150.150.203 (10.150.150.203) 56(84) bytes of data. 64 bytes from 10.150.150.203: icmp_seq=1 ttl=254 time=7.11 ms 64 bytes from 10.150.150.203: icmp_seq=2 ttl=254 time=6.79 ms --- 10.150.150.203 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 6.799/6.956/7.113/0.157 msThanks, Stephan
- DaleLeBlanc_140
Nimbostratus
Excellent. Confirmed, that is exactly what I need. Thanks for the reply!
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com