import_settings using heredoc
Introduction:
when using the export_settings config then import the config using the bash script.
Steps:
1. After export the config using the export_settings command. Example
- /settings/network_settings hostname=SonTestGSR
- /settings/network_settings domain_name=localdomain
- /settings/network_settings enable_ipv4_ip_forward=yes
- /settings/network_settings enable_ipv6_ip_forward=no
- /settings/network_settings reverse_path_filtering=strict_mode
- /settings/network_settings enable_vrf_strict_mode=no
- /settings/network_settings enable_multiple_routing_tables=yes
- /settings/network_settings enable_ipv6_segment_routing=yes
- /settings/network_settings ipv6_segment_routing_flowlabel=copy_from_inner_ipv6
- /settings/network_settings enable_bluetooth_network=no
2. To use the configuration in the script form using heredoc, see example below
- #!/bin/bash
- su - admin -c "cli -f -"<<EOF
- import_settings
- /settings/network_settings hostname=SonTestGSR
- /settings/network_settings domain_name=localdomain
- /settings/network_settings enable_ipv4_ip_forward=yes
- /settings/network_settings enable_ipv6_ip_forward=no
- /settings/network_settings reverse_path_filtering=strict_mode
- /settings/network_settings enable_vrf_strict_mode=no
- /settings/network_settings enable_multiple_routing_tables=yes
- /settings/network_settings enable_ipv6_segment_routing=yes
- /settings/network_settings ipv6_segment_routing_flowlabel=copy_from_inner_ipv6
- /settings/network_settings enable_bluetooth_network=no
- EOF
3. The above script can be executed using the export_settings output
Related Articles
export_settings and import_settings
The export_settings and import_settings are CLI features that allow you to export/import the entire or partial (subtree or the configuration of a given path) configuration in a text format. The input and output can be a file or standard input/output ...
Import_settings from the Cloud
Introduction: When using export_settings in the Nodegrid to retrieves the configuration, user can import the same configuration from the cloud. Custom fields can be used in the configuration to differentiates between different Nodegrid devices. ...
Network Configuration via CLI
Example of configuring the ETH0 interface via CLI (please, replace the network values with your own information). Log in as admin to the Nodegrid console port or HDMI Type the following commands (in bold): [admin@nodegrid /]# cd ...
Improved NodeGrid WebUI: Apply Settings using Local System option
To Save the current configuration of your NodeGrid, follow the steps below (5.x.x and 6.x.x NodeGrid Versions) WebUI 1. Go to System, Toolkit, and click on Save Settings icon. 2. Select the option where you want to save the configuration: a. Local ...
Nodegrid Manager Installation in ESXi 5
Nodegrid Manager software is installed from an ISO file. The installation procedure is a three-stage process: Creating a virtual machine; Booting from the ISO file in order to install the software; Restarting and booting from the newly created ...