Export-CacheConfiguration - PowerShell Cmdlet
This PowerShell Cmdlet enables the user to copy the configuration of the specified cache. The PowerShell Cmdlet also exports the deployed server-side modules on the given path.
Important
NCache OSS has different parameters in some Cmdlet instances.
Export-CacheConfiguration [-Name] -Path [-Server] [-Port] [-DoNotExportModule] [-NoLogo] [-Credentials]
Examples of Export-CacheConfiguration - PowerShell Cmdlet
- This PowerShell Cmdlet generates the configuration file and exports the deployed server-side modules for the demoCache in the specified directory.
Export-CacheConfiguration -Name demoCache -Server 20.200.20.11 -Path C:\Desktop\config.xml
- This command uses port to generate the configuration file and exports the deployed server-side modules for the demoCache in the specified directory.
Export-CacheConfiguration -Name demoCache -Server 20.200.20.11 -Path C:\Desktop\config.xml -Port 8250
- This command only generates the complete configuration file for demoCache in the specified directory.
Export-CacheConfiguration -Name demoCache -Server 20.200.20.11 -Path C:\Desktop\config -DoNotExportModule
- This PowerShell Cmdlet authenticates the credentials provided and generates the configuration file and exports the deployed server-side modules for the demoCache in the specified directory.
Export-CacheConfiguration -Name demoCache -Server 20.200.20.11 -Path C:\Desktop\config.xml -Credentials john_smith
Properties
Note
The parameters with asterisk (*) on their names are the required parameters and the rest are optional.
Parameters | Data Types | Description | Default Value |
---|---|---|---|
-Name |
<String> |
Specifies the name of the cache for which the configuration file is to be generated. | - |
-Path |
<String> |
Specifies the path where the user wants the configuration file to be placed after generation. In case of no path provided the user will be prompted. | - |
-Server |
<String> |
Specifies the NCache server name as per user requirement. | - |
-Port |
<Integer> |
Specifies the server port where NCache server is listening. | 8250 |
-DoNotExportModule |
<SwitchParameter> |
This switch omits the export of server-side modules, allowing users to customize cache configuration exports based on specific requirements. | False |
-NoLogo |
<SwitchParameter> |
Suppresses display of the logo banner. | False |
-Credentials |
<pscredential> |
Specifies the user credentials required to authorize access for the specified operation. These credentials should belong to a user with the appropriate permissions at the node. | - |