Clish show route static examples


#1

Dear experts!

I'm currently rewriting some scripts that gathers the static route configuration on Checkpoint devices. Since we've had some issues in the past with output being different between versions I'm looking to you to get some examples from the show route static command.


So if you could paste the result from your boxes and which version that was used that'd be great. Feel free to obfuscate the IP's.


Example:


FW01> show route static
Codes: C - Connected, S - Static, R - RIP, B - BGP (D - Default),
O - OSPF IntraArea (IA - InterArea, E - External, N - NSSA)
A - Aggregate, K - Kernel Remnant, H - Hidden, P - Suppressed,
U - Unreachable, i - Inactive

S 0.0.0.0/0 via 1.1.1.1, eth1, cost 0, age 14781145
S 192.168.10.0/24 via 192.168.15.1, eth2, cost 0, age 14781145
S 192.168.20.0/24 via 192.168.15.1, eth2, cost 0, age 14781145
S 192.168.30.0/24 via 192.168.15.1, eth2, cost 0, age 14781145
S 192.168.40.0/24 via 192.168.15.1, eth2, cost 0, age 14781145
S 192.168.50.0/24 via 192.168.15.1, eth2, cost 0, age 14517943
S 192.168.60.0/24 via 192.168.15.1, eth2, cost 0, age 14781145
S 192.168.00.0/24 via 192.168.15.1, eth2, cost 0, age 14781145
S 192.168.10.0/24 via 192.168.15.1, eth2, cost 0, age 14781145
S 192.168.120.0/24 via 192.168.15.1, eth2, cost 0, age 14781145



#2

Adding a pastebin link since the formatting in the forum screws things up sometimes. Here's the example in it's true form:


https://pastebin.com/uktmVK6i


#3

Hey . Here's some IPSO action for you. Hope this helps! I can't say that it's much, but hopefully insightful regardless. :)


labipso[indeni]# clish -c "show route static"
Codes: C - Connected, S - Static, I - IGRP, R - RIP, B - BGP,
O - OSPF IntraArea (IA - InterArea, E - External, N - NSSA)
A - Aggregate, K - Kernel Remnant, H - Hidden, P - Suppressed

S 0.0.0.0/0 via 172.16.20.254, eth2c0, cost 0, age 4928516
labipso[indeni]# clish -c "show route"
Codes: C - Connected, S - Static, I - IGRP, R - RIP, B - BGP,
O - OSPF IntraArea (IA - InterArea, E - External, N - NSSA)
A - Aggregate, K - Kernel Remnant, H - Hidden, P - Suppressed

S 0.0.0.0/0 via 172.16.20.254, eth2c0, cost 0, age 4928523
C 127.0.0.1/32 is directly connected, loop0c0
C 172.16.16.30/24 is a reject route, eth1c0 is down
C 172.16.20/24 is directly connected, eth2c0



or pastbin link:

https://pastebin.com/A0tmvjEL


#4

We need a posting of an output from someone who has Embedded GAiA. we need the output from # clish -c "show route static" . preferably with a pastebin link since the preformatted block feature does not work well with influitive. :(


#5

lab-CP-GW4-1> show route static

Codes: C - Connected, S - Static, R - RIP, B - BGP (D - Default),

O - OSPF IntraArea (IA - InterArea, E - External, N - NSSA)

A - Aggregate, K - Kernel Remnant, H - Hidden, P - Suppressed,

U - Unreachable, i - Inactive

S 0.0.0.0/0 via 192.168.194.1, eth0, cost 0, age 788684

One thing to keep in mind is that each time a clish command is executed, several log lines are created in /var/log/messages. Due to this we have opted to no use clish whenever possible in other scripts, due to the large number of log lines created by doing so.

Feb 1 10:29:07 2018 lab-CP-GW4-1 clish[22532]: cmd by indeni: Start executing : show route ... (cmd md5: 84afafd60c6957fc3ab9d7b9ac6b04c0)
Feb 1 10:29:07 2018 lab-CP-GW4-1 clish[22532]: cmd by indeni: Processing : show route static (cmd md5: 84afafd60c6957fc3ab9d7b9ac6b04c0)


#6

output from embedded Gaia - show route static doesnt work


[Expert@SR-Glasgow-FW01]# clish -c "show route static"
Codes: C - Connected, S - Static, R - RIP, B - BGP (D - Default),
O - OSPF IntraArea (IA - InterArea, E - External, N - NSSA)
A - Aggregate, K - Kernel Remnant, H - Hidden, P - Suppressed,
U - Unreachable, i - Inactive
Unable to ipsrd_transact iterate VIRTUALSYSTEM:default:rt:instance:default:af:inet:static

[Expert@SR-Glasgow-FW01]# show route
-bash: show: command not found
[Expert@SR-Glasgow-FW01]# show ip route
-bash: show: command not found
[Expert@SR-Glasgow-FW01]# clish -c "show ip route"
Bad parameter starting at 'ip route'
[Expert@SR-Glasgow-FW01]# clish -c "show route"
Codes: C - Connected, S - Static, R - RIP, B - BGP (D - Default),
O - OSPF IntraArea (IA - InterArea, E - External, N - NSSA)
A - Aggregate, K - Kernel Remnant, H - Hidden, P - Suppressed,
U - Unreachable, i - Inactive

S 0.0.0.0/0 via 81.145.56.113, WAN, cost 0, age 26
C 10.231.149.0/24 is directly connected, LAN2.1
LAN2.1
C 81.145.56.112/28 is directly connected, WAN
WAN
C 127.0.0.0/8 is directly connected, lo
lo
C 192.168.40.0/24 is directly connected, LAN1
LAN1
[Expert@SR-Glasgow-FW01]#