CPYVPNCFGF
Copier fichier config VPN
Copy VPN Configuration File
En bref
La commande Copier fichier de configuration VPN (CPYVPNCFGF) permet de copier la configuration VPN d'un fichier STREAM vers la base de données (importation), de copier la configuration VPN de la base de données vers un fichier STREAM (exportation) ou de valider la configuration VPN d'un fichier… The Copy VPN Configuration File (CPYVPNCFGF) command is used to copy the VPN configuration from a stream file to the database (import), copy the VPN configuration from the database to a stream file (export), or validate the VPN configuration in a stream file.
CPYVPNCFGF se lit CPY
(Copier) + VPNCFGF.
Sur IBM i, le nom d'une commande associe presque toujours un verbe et un objet.
Syntaxe minimale
CPYVPNCFGF OPTION(…) STMF(…)
Paramètres
Astuce : dans une session 5250, tapez CPYVPNCFGF puis F4 pour
l'invite de saisie, et F1 sur un paramètre pour son aide.
Aide IBM i de la commande
Texte du F1, IBM i 7.5 en français
(bibliothèque QSYS)
Où s'exécute : Tous les environnements (*ALL)
Compatible multitâche : Non
La commande Copier fichier de configuration VPN (CPYVPNCFGF) permet de copier la configuration VPN d'un fichier STREAM vers la base de données (importation), de copier la configuration VPN de la base de données vers un fichier STREAM (exportation) ou de valider la configuration VPN d'un fichier STREAM. The Copy VPN Configuration File (CPYVPNCFGF) command is used to copy the VPN configuration from a stream file to the database (import), copy the VPN configuration from the database to a stream file (export), or validate the VPN configuration in a stream file.
Restrictions:
Vous devez posséder le droit spécial de configuration du système d'entrée-sortie (*IOSYSCFG) pour utiliser cette commande. You must have input/output system configuration (*IOSYSCFG) special authority to use this command.
Option (OPTION)
Indique si la configuration VPN doit être importée, exportée ou validée. Specifies whether the VPN configuration is to be imported, exported, or validated.
- *EXPORT
- La configuration VPN sera exportée vers le fichier STREAM. The VPN configuration will be exported to the stream file.
- *IMPORT
- La configuration VPN sera importée depuis le fichier STREAM. L'importation supprimera toutes les configurations VPN actuellement présentes sur le système, à l'exception de QVPN01IBM1 et QVPN01IBM2. Il est recommandé de sauvegarder les connexions VPN en cours avant d'effectuer une importation. The VPN configuration will be imported from the stream file. The import will clear all of the VPN configurations, except for QVPN01IBM1 and QVPN01IBM2, currently on the system. It is recommended to save the current VPN connections before doing an import.
- *VALIDATE
- La configuration VPN du fichier STREAM sera vérifiée pour s'assurer qu'elle est correcte. The VPN configuration in the stream file will be verified to be correct.
Fichier STREAM (STMF)Stream file (STMF)
Indique le chemin d'accès du fichier STREAM à partir duquel la configuration VPN est importée, exportée ou validée. Specifies the path name of the stream file from which the VPN configuration is imported, exported, or validated.
- chemin-d'accès
- Specify the path name of the stream file. The path name must be 512 characters or less.
Pour plus d'informations sur l'indication des chemins d'accès, voir « Règles de dénomination des objets » dans l'ensemble de rubriques CL de la catégorie Programmation de l'IBM i Information Center à l'adresse http://www.ibm.com/systems/i/infocenter/. For more information on specifying path names, refer to "Object naming rules" in the CL topic collection in the Programming category in the IBM i Information Center at http://www.ibm.com/systems/i/infocenter/.
Remarque :Ce paramètre est compatible Unicode. Voir « Prise en charge d'Unicode dans CL » dans l'ensemble de rubriques CL de la catégorie Programmation de l'IBM i Information Center à l'adresse http://www.ibm.com/systems/i/infocenter/ pour plus d'informations. Remarque :This parameter is Unicode-enabled. See "Unicode support in CL" in the CL topic collection in the Programming category in the IBM i Information Center at http://www.ibm.com/systems/i/infocenter/ for additional information.
Exemples
Exemple 1 : Importation à partir d'un fichier STREAM Example 1: Import from a Stream File
CPYVPNCFGF OPTION(*IMPORT) STMF('/MyDir/vpncfg')
Cette commande importe la configuration VPN à partir du fichier STREAM /MyDir/vpncfg. This command imports the VPN configuration from stream file /MyDir/vpncfg.
Exemple 2 : Exportation vers un fichier STREAM Example 2: Export to a Stream File
CPYVPNCFGF OPTION(*EXPORT) STMF('/MyDir/vpncfg')
Cette commande exporte la configuration VPN vers le fichier STREAM /MyDir/vpncfg. This command exports the VPN configuration to stream file /MyDir/vpncfg.
Exemple 3 : Validation de la configuration d'un fichier STREAM Example 3: Validate the Configuration in a Stream File
CPYVPNCFGF OPTION(*VALIDATE) STMF('/MyDir/vpncfg')
Cette commande valide la configuration VPN du fichier STREAM /MyDir/vpncfg. This command validates the VPN configuration in stream file /MyDir/vpncfg.
Messages d'erreur
Messages *ESCAPE *ESCAPE Messages
- TCP8651
- L'importation de la configuration VPN a échoué. Import of VPN configuration failed.
- TCP8652
- L'exportation de la configuration VPN a échoué. Export of VPN configuration failed.
- TCP8654
- La validation de la configuration VPN a échoué. Validate of VPN configuration failed.
© Copyright IBM Corp. Texte d'aide reproduit à des fins de formation.