はじめに
本稿では設定ファイルの取得方法について説明いたします。AsyncOS14.0.2の動作を基に執筆しています。バージョンにより動作が異なる場合があります。
GUIでの方法
設定ファイルはGUIから取得することが可能です。
SEG GUI > システム管理 > 設定ファイル
(SEG GUI > System Administration > Configuration File)
出力先、パスワード表示オプション、ファイル名を必要に応じて変更し送信(Submit)ボタンを押します。
出力先:
- Download file to local computer to view or save
(ローカルのコンピュータにファイルをダウンロードして表示または保存)
- Save file to this appliance
(ファイルをこのアプライアンスに保存)
- Email file to
(ファイルをメールで送信)
パスワード表示オプション:
- Mask passphrases in the Configuration Files
(設定ファイル内のパスフレーズを隠す)
- Encrypt passwords in the Configuration Files
(設定ファイル内のパスフレーズを暗号化)
CLIでの方法
saveconfigコマンドで機器に設定を保存することが可能です。
seg.example.com (SERVICE)> saveconfig
Choose the passphrase option:
1. Mask passphrases (Files with masked passphrases cannot be loaded using
loadconfig command)
2. Encrypt passphrases
[1]>
File written on machine "seg.example.com" to the location
"/configuration/C000V-XXXXXXXXXXXXXXXXXXXX-YYYYYYYYYYYY-20230722T123159.xml".
Configuration saved.
設定ファイルはSEGの configuration ディレクトリに保存されます。保存されたファイルをFTPでローカルにダウンロードすることが可能です。
C:\WINDOWS\system32>ftp
ftp> open seg.example.com
seg.example.com に接続しました。
220 seg.example.com Cisco FTP server (V14.0.2) ready
500 'opts': command not understood.
ユーザー (seg.example.com:(none)): admin
331 Password required.
パスワード:
230 Login successful.
ftp> cd configuration
250 CWD command successful.
ftp> bin
200 Type set to Binary.
ftp> get C000V-XXXXXXXXXXXXXXXXXXXX-YYYYYYYYYYYY-20230722T123159.xml
200 PORT command successful.
150 Opening Binary mode data connection for file 'C000V-XXXXXXXXXXXXXXXXXXXX-YYYYYYYYYYYY-20230722T123159.xml'
226 Transfer Complete
ftp: 380161 バイトが受信されました 0.04秒 10004.24KB/秒。
ftp> bye
221 Goodbye.
注: SEGのFTPサービスが無効になっている場合は、FTPを有効にすることでファイルをダウンロードすることが可能になります(FTP不可の場合のみ対応)。
seg.example.com (SERVICE)> ifconfig
Currently configured interfaces:
1. Management (seg.example.com/24 on Management: seg.example.com)
Choose the operation you want to perform:
- NEW - Create a new interface.
- EDIT - Modify an interface.
- GROUPS - Define interface groups.
- DELETE - Remove an interface.
[]> edit
Enter the number of the interface you wish to edit.
[]> 1
- snip -
Do you want to enable FTP on this interface? [N]> y
Which port do you want to use for FTP?
[21]>
- snip -
seg.example.com (SERVICE)> commit
Please enter some comments describing your changes:
[]> FTP enabled
Do you want to save the current configuration for rollback? [Y]> y
Changes committed: Sat Jul 22 12:43:32 2023 JST
seg.example.com (SERVICE)>