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

Testing ex-hostname.xsl

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

  1. From Displaying DNS Hostname Information, copy the XSLT or SLAX script into a text file, and name the file ex-hostname.xsl. Copy the ex-hostname.xsl file to the /var/db/scripts/op directory on your routing platform.
  2. Include the file ex-hostname.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-hostname.xsl;
  3. Issue the commit and-quit command.
  4. When you issue the op ex-hostname operational mode command without the dns argument, the DNS information is displayed for the router you are currently using:
    [edit]
    user@host# op ex-hostname
    Name:
    this-router has address 10.168.71.246

    When you issue the op ex-hostname dns hostname command, the DNS information is displayed for the specified router:

    [edit]
    user@host# op ex-hostname dns router1
    Name:
    router1 has address 10.168.71.249

    When you issue the op ex-hostname dns address command, the DNS information is displayed for the specified address:

    [edit]
    user@host# op ex-hostname dns 10.168.71.249
    Name:
    249.71.168.10.IN-ADDR.ARPA domain name pointer router1

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