Junos Automation (Scripting)
Highlighted
Junos Automation (Scripting)

ScreenOS get route and get interface scripts

‎09-21-2011 08:50 AM

Hello all,

 

Thought I would share these as the format is "easier" to read some times if your famaliar with ScreenOS.

 

getroute output

 

Act  Destination         Interface           Gateway             Pref        Met         Protocol
*    0.0.0.0/0                 fe-0/0/0.0          68.25.157.1         12                      Access-internal
*    4.4.4.4/32                                                                          0                       Local
*    10.22.97.0/24       st0.2                                                   5                       Static
     10.22.97.0/24       st0.1                                                   5           10        Static

 

Interface           IP Address          Zone                MAC Address                   Up/Down
fe-0/0/0.0          68.25.157.45        isp                 5c:5e:ab:8f:ca:80             up
sp-0/0/0.0                                          Null                                                          up
sp-0/0/0.16383      10.0.0.1            Null                                                           up
fe-0/0/1.0                  4.4.4.4             isp                 5c:5e:ab:8f:ca:81             down
st0.1                   10.101.159.2        vpn                                                            up
st0.2                   10.101.159.3        vpn                                                            up
st0.3                   10.101.159.4        vpn                                                            up
vlan.10               10.101.159.1        store              5c:5e:ab:8f:ca:88             up
vlan.20               192.168.100.1       cc                  5c:5e:ab:8f:ca:88             up

Enjoy!

 

Anyone know how to add scripts to the library?

Attachments

1 REPLY 1
Junos Automation (Scripting)

Re: ScreenOS get route and get interface scripts

‎09-30-2011 11:09 AM

Thanks ed_gpc!  Using op-script to customized CLI output is indeed a popular application of Junos automation.

 

I'll pm you with instruction how to post your great work to Junoscriptorium.

 

cheers,

roy