Lantronix EDS3000PS Command Reference - Page 19

Best Practices

Page 19 highlights

4: Configuration Using XML CLI session. Capturing an XCR can be started by pasting a valid XCR directly into the CLI prompt. The EDS3000 device server immediately processes the configuration record, changing any settings specified. This can be done on any level, including the root. Special tags in the XML allow for providing root and enable level passwords so that this can also be done at the password prompt.  Web Browser Web Manager can be used to import and export an XCR from an external source such as your local hard drive.  FTP The EDS3000 device server FTP server can export and import XCRs when an FTP get or put command on the filename (EDS3000PS.xcr for export, EDS3000PS_import.xcr for import for EDS3000PS); (EDS3000PR.xcr for export, EDS3000PR_import.xcr for EDS3000PR) both are under the pwxcr directory is requested. On export (FTP get of EDS000PR.xcr/EDS3000PS.xcr), the FTP server obtains the current XCR from the EDS3000 device server and sends it as a file. On import (FTP put of EDS3000PR_import.xcr/EDS3000PS_import.xcr), the FTP server processes the file by sending it directly to the XML engine. In both cases the EDS3000 file system is not accessed. The files EDS3000PR.xcr/EDS3000PR.xcr and EDS3000PR_import.xcr/EDS3000PS_import.xcr are not read from or written to the file system. See the FTP section in the EDS3000 Device Server User Guide (available at www.lantronix.com/support/documentation.) Best Practices You can import or export an entire XCR, or just a portion of it, by specifying the group name and/or group instances. In the examples below, import and export operations are performed from the Web. See Importing and Exporting an XML Configuration File above to import and export using Web Manager, the CLI or FTP. Caution: Using Microsoft Word to edit and save an XCR will change the format of the file and make it incompatible with the EDS3000 device server. This is true even if the file is saved as Plain Text (.txt) or an XML Document (.xml). Notepad, a third party text editor, or a specialized XML editor should be used instead. Exporting Using the Web Manager interface, select from "Lines to Export" and "Groups to Export" filters and select from either "Export to Browser" or "Download (from link)" option. Save the output to your local file system. Importing Modify the exported file by removing "configgroup" records and filling in any required secret data such as passwords, and private keys. Using the Web Manager, import the updated clone by uploading it from your local file system. EDS3000 Command Reference 19

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83

4: Configuration Using XML
EDS3000 Command Reference
19
CLI session. Capturing an XCR can be started by pasting a valid XCR directly into the CLI
prompt. The EDS3000 device server immediately processes the configuration record,
changing any settings specified. This can be done on any level, including the root. Special
tags in the XML allow for providing root and enable level passwords so that this can also be
done at the password prompt.
Web Browser
Web Manager can be used to import and export an XCR from an external source such as your
local hard drive.
FTP
The EDS3000 device server FTP server can export and import XCRs when an FTP get or put
command on the filename (
EDS3000PS.xcr
for export,
EDS3000PS_import.xcr
for
import for EDS3000PS); (
EDS3000PR.xcr
for export,
EDS3000PR_import.xcr
for
EDS3000PR) both are under the
pwxcr
directory is requested. On export (FTP get of
EDS000PR.xcr/EDS3000PS.xcr
), the FTP server obtains the current XCR from the
EDS3000 device server and sends it as a file. On import (FTP put of
EDS3000PR_import.xcr/EDS3000PS_import.xcr
), the FTP server processes the file by
sending it directly to the XML engine. In both cases the EDS3000 file system is not accessed.
The files
EDS3000PR.xcr/EDS3000PR.xcr
and
EDS3000PR_import.xcr/EDS3000PS_import.xcr
are not read from or written to the
file system. See the FTP section in the
EDS3000 Device Server User Guide
(available at
www.lantronix.com/support/documentation.)
Best Practices
You can import or export an entire XCR, or just a portion of it, by specifying the group name and/or
group instances. In the examples below, import and export operations are performed from the
Web. See
Importing and Exporting an XML Configuration File
above to import and export using
Web Manager, the CLI or FTP.
Caution:
Using Microsoft Word to edit and save an XCR will change the format of
the file and make it incompatible with the EDS3000 device server.
This is true even if the file is saved as Plain Text (.txt) or an XML
Document (.xml). Notepad, a third party text editor, or a specialized XML
editor should be used instead.
Exporting
Using the Web Manager interface, select from “Lines to Export” and “Groups to Export” filters and
select from either “Export to Browser” or “Download (from link)” option. Save the output to your
local file system.
Importing
Modify the exported file by removing “configgroup” records and filling in any required secret data
such as passwords, and private keys. Using the Web Manager, import the updated clone by
uploading it from your local file system.