export (nrcmd)							export (nrcmd)


NAME
    export - exports configuration information to a file

SYNOPSIS
    export leases -server 
       [ -vpn <vpn-name> ] 
       [ -time-ascii | -time-numeric ] <file>

    export leases -client 
       [ -vpn <vpn-name> ] 
       [ -time-ascii | -time-numeric ] <file>

    export zone <zone name> {ccm | dns | both} [<file>]

    export zonenames {forward | reverse | both} [<file>]

    export hostfile [<file>]

    export addresses [file=<CSV text file> | { database=<data source name>
       user=<db user name> password=<db user password>
       [table=<table name>] } ] [config=<config file>]
          [vpn=<vpn-name>]
             [dhcp-only] [time-ascii | time-numeric]

    export keys <file>

    export key <keyname> <filename>

    export option-set <option-set name> <filename>

DESCRIPTION
    The export command lets you export data in one of several common
    formats.

    export leases -server 
       [ -vpn <vpn-name> ] 
       [ -time-ascii | -time-numeric ] <file>
       Use the export leases -server command to export the 
       current and expired leases to a file in the DHCP server's log
       directory.

    export leases -client 
       [ -vpn <vpn-name> ] 
       [ -time-ascii | -time-numeric ] <file> 
       Use the export leases -client command to export the 
       current leases to the specified file or the standard output.

    export zone <zone name> {ccm | dns | both} [<file>]
       Use the export zone command to export the resource
       records in the specified zone.  BIND can parse the format of 
       the output.

    export zonenames {forward | reverse | both} [<file>] 
       Use the export zonenames command to export the list of zones
       that match a given criteria.

    export hostfile [<file>] 
       Use the export hostfile command to export the CCM DNS 
       information in the cluster in a UNIX hostfile format.

    export addresses [file=<CSV text file> | { database=<data source name>
       user=<db user name> password=<db user password>
       [table=<table name>] } ] [config=<config file>]
          [vpn=<vpn-name>]
             [dhcp-only] [time-ascii | time-numeric]
       Use the export addresses command to export DNS and IP Address
       information to a CSV (comma-separated value) text file, or the 
       standard output, or to an ODBC database.

       Output of the export command can include the VPN specification. 
       The value can be any valid, predefined VPN name, or the reserved 
       words global and all. 

          global--indicates all addresses not in any of the defined VPNs. 
          all--indicates all VPNs, including the global one. 

       If you omit the VPN, the current one applies, as set by the 
       session set current-vpn command. If the current VPN is undefined, 
       the global VPN applies. Network Registrar adds the ID of the VPN at
       the end of each output line in the export file.

     Use these conventions for export addresses keywords:

       Configuration file
       If it exists, the default configuration file 
       is .nrconfig. To use a configuration file other than the default 
       file, use the config keyword to identify your configuration file. 
       If there is an [export-addresses] section in the configuration file, 
       the export command uses the clusters that the section specifies 
       instead of the default cluster. If you omit a configuration file, the
       export addresses command looks for a default .nrconfig file. This is 
       the same configuration file that the report command uses. 

       Network Registrar looks for the file first in your current directory, 
       then in your home directory, and finally in the install-path/conf 
       directory. It uses the first file it encounters. Each line of the 
       configuration file must begin with the character # (comment), a 
       section header enclosed in square brackets, or a parameter=value 
       pair or its continuation. For example:

          [export addresses] 
          clusters=machine1 username password, machine2 username password [...] 

       Network Registrar strips leading white space from each line and ignores 
       blank lines.

       dhcp-only
       This keyword causes the command to output only DHCP information and 
       not DNS information.

       Database tables
       The table keyword specifies the database table to which the command 
       exports address information. If you omit this keyword, 
       Network Registrar writes to the default table name ip_addresses. 
       If the table already exists in the specified database when you run the
       export command, Network Registrar clears (and resets the columns) 
       before writing the new data. Network Registrar does not provide a 
       warning or confirmation if it clears an existing table.

       Date and time
       The optional time-ascii and time-numeric keywords specify how to 
       output date/time fields to a CSV text file and when the target 
       database does not support the timestamp data type. The default
       is time-ascii.

    If no vpn is specified, the current-vpn  of the session is used.
    is used.
    
    When specifying a <vpn-name> to any export command which supports
    it, the name "global" (with or without the quotes) will specify
    the global (i.e., unnamed or default) vpn.  The name "all" (also
    with or without the quotes) will specify that all vpn (including
    the global one) should be exported.

    You can use the export command to export the TSIG keys that are
    configured on a cluster with the export keys command. You can
    also specify to export a single key with the export key <keyname>
    command. These commands will generate key definitions in BIND
    syntax so they may be either imported into other clusters or copyied
    into BIND configurations.

    The export option-set command writes out a text file that may be
    loaded into a running server with the option-set import command.
  
EXAMPLES

STATUS

SEE ALSO

    session current-vpn

PROPERTIES
