Skip to content

Instantly share code, notes, and snippets.

Avatar

Stephan Behrens stephanbehrens

View GitHub Profile
View XML-RPC_show_route
sbehrens@vSRX1> show route xx.xx.xx.xx/yy | display xml rpc
<rpc-reply xmlns:junos="http://xml.juniper.net/junos/12.1X47/junos">
<rpc>
<get-route-information>
<destination>xx.xx.xx.xx/yy</destination>
</get-route-information>
</rpc>
<cli>
<banner></banner>
</cli>
View vSRX2-prefixlist
sbehrens@vSRX2> show configuration policy-options
prefix-list listXYZ {
50.0.0.1/32;
50.0.0.2/32;
50.0.0.3/32;
50.0.0.4/32;
}
prefix-list listA {
10.0.0.1/32;
10.0.0.2/32;
View vSRX1-prefixlist
sbehrens@vSRX1> show configuration policy-options
prefix-list listB {
20.0.0.1/32;
20.0.0.2/32;
20.0.0.3/32;
20.0.0.4/32;
}
prefix-list listA {
10.0.0.1/32;
10.0.0.2/32;
View vMX2-prefixlist
sbehrens@vMX2> show configuration policy-options
prefix-list listA {
10.0.0.1/32;
10.0.0.2/32;
10.0.0.3/32;
10.0.0.4/32;
}
prefix-list listABC {
10.0.0.1/32;
11.0.0.2/32;
View vMX1-prefixlist
sbehrens@vMX1> show configuration policy-options
prefix-list listA {
10.0.0.1/32;
10.0.0.2/32;
10.0.0.3/32;
10.0.0.4/32;
}
prefix-list listB {
20.0.0.1/32;
20.0.0.2/32;
View show_bgp_neighbor_display_xml.txt
sbehrens@vMX1> show bgp neighbor | display xml
<rpc-reply xmlns:junos="http://xml.juniper.net/junos/16.1R3/junos">
<bgp-information xmlns="http://xml.juniper.net/junos/16.1R3/junos-routing">
<bgp-peer junos:style="detail">
<peer-address>192.168.0.2+179</peer-address>
<peer-as>6100</peer-as>
<local-address>192.168.0.1+53881</local-address>
<local-as>6100</local-as>
<peer-group>internal-bgp</peer-group>
<peer-cfg-rti>master</peer-cfg-rti>
@stephanbehrens
stephanbehrens / vMX1-show_route_protocol_bgp_extensive_display_xml.txt
Last active Nov 20, 2016
vMX1-show_route_protocol_bgp_extensive_display_xml
View vMX1-show_route_protocol_bgp_extensive_display_xml.txt
sbehrens@vMX1> show route protocol bgp extensive | display xml
<rpc-reply xmlns:junos="http://xml.juniper.net/junos/16.1R3/junos">
<route-information xmlns="http://xml.juniper.net/junos/16.1R3/junos-routing">
<!-- keepalive -->
<route-table>
<table-name>inet.0</table-name>
<destination-count>10</destination-count>
<total-route-count>11</total-route-count>
<active-route-count>10</active-route-count>
<holddown-route-count>0</holddown-route-count>
You can’t perform that action at this time.