[Contents] [Prev] [Next] [Index] [Report an Error]

Testing ex-interface.xsl

To test the example in this section, perform the following steps:

  1. From Customizing Output of the show interfaces terse Command, copy the XSLT or SLAX script into a text file, and name the file ex-interface.xsl. Copy the ex-interface.xsl file to the /var/db/scripts/op directory on your routing platform.
  2. Include the file ex-interface.xsl statement at the [edit system scripts op] hierarchy level. If you are using the SLAX version of the script, change the filename to filename.slax.
    [edit system scripts op]
    file ex-interface.xsl;
  3. Issue the commit and-quit command.
  4. Compare the output of the show interfaces terse and op ex-interface commands:

user@host> show interfaces terse
Interface               Admin Link Proto    Local                 Remote
dsc                     up    up
fxp0                    up    up
fxp0.0                  up    up   inet     192.168.71.246/21
fxp1                    up    up
fxp1.0                  up    up   inet     10.0.0.4/8      
                                   inet6    fe80::200:ff:fe00:4/64
                                            fec0::10:0:0:4/64
                                   tnp      4               
gre                     up    up
ipip                    up    up
lo0                     up    up
lo0.0                   up    up   inet     127.0.0.1           --> 0/0
lo0.16385               up    up   inet
                                   inet6    fe80::2a0:a5ff:fe12:2f04
lsi                     up    up
mtun                    up    up
pimd                    up    up
pime                    up    up
tap                     up    up

user@host> op ex-interface
Interface               Admin Link Proto    Local                 Remote
fxp0.0                  This is the Ethernet Management interface.
                                   inet     192.168.71.246/21
fxp1.0                             inet     10.0.0.4/8      
                                   inet6    fe80::200:ff:fe00:4/64
                                            fec0::10:0:0:4/64
                                   tnp      4               
lo0.0                              inet     127.0.0.1           --> 0/0
lo0.16385                          inet    
                                   inet6    fe80::2a0:a5ff:fe12:2f04--> 

user@host> op ex-interface interface fxp0
Interface               Admin Link Proto    Local                 Remote
fxp0.0                  This is the Ethernet Management interface.
                                   inet     192.168.71.246/21 

user@host> op ex-interface protocol inet
Interface               Admin Link Proto    Local                 Remote
fxp0.0                  This is the Ethernet Management interface.
                                   inet     192.168.71.246/21
fxp1.0                             inet     10.0.0.4/8      
lo0.0                              inet     127.0.0.1           --> 0/0
lo0.16385                          inet 

[Contents] [Prev] [Next] [Index] [Report an Error]