Skip to main content

Infrastructure Setting

Infrastructure settings configure the GlobalProtect mobile users environment in Strata Cloud Manager — DNS servers, IP pools, the portal hostname, WINS, IPv6, and UDP query behavior. The scm CLI provides commands to create, update, delete, show, back up, and load infrastructure settings.

Overview

The infrastructure-setting commands allow you to:

  • Create or update infrastructure settings with DNS servers, IP pools, and a portal hostname
  • Show a named infrastructure setting
  • Delete infrastructure settings
  • Back up a named infrastructure setting to YAML
  • Bulk import infrastructure settings from YAML files
Folder constraint

Infrastructure settings live only in the Mobile Users folder. The --folder option defaults to Mobile Users and any other value is rejected.

Name required for show and backup

The SCM API addresses this resource by name everywhere, including list. There is no list-all mode, so show requires the NAME argument and backup requires --name.

Set Infrastructure Setting

Create or update an infrastructure setting.

Syntax

scm set mobile-agent infrastructure-setting NAME [OPTIONS]

Arguments

ArgumentDescriptionRequired
NAMEName of the infrastructure settingYes

Options

OptionDescriptionRequired
--folder TEXTFolder location (must be Mobile Users, the default)No
--dns-servers JSONDNS server entries as a JSON listYes
--ip-pools JSONIP pools as a JSON listYes
--portal-hostname JSONPortal hostname configuration as JSONYes
--enable-wins JSONWINS configuration as JSONNo
--ipv6 / --no-ipv6Enable or disable IPv6No
--udp-queries JSONUDP query retry configuration as JSONNo
--static-ip-pools JSONStatic IP pools as a JSON listNo

Examples

$ scm set mobile-agent infrastructure-setting "gp-infra" \
--dns-servers '[{"name": "dns-1", "dns_suffix": ["example.com"], "primary_public_dns": {"dns_server": "8.8.8.8"}}]' \
--ip-pools '[{"name": "pool-1", "ip_pool": ["10.0.0.0/16"]}]' \
--portal-hostname '{"default_domain": {"hostname": "acme"}}'
Created infrastructure setting: gp-infra in folder Mobile Users
$ scm set mobile-agent infrastructure-setting "gp-infra" \
--dns-servers '[{"name": "dns-1", "dns_suffix": ["example.com"]}]' \
--ip-pools '[{"name": "pool-1", "ip_pool": ["10.0.0.0/16"]}]' \
--portal-hostname '{"custom_domain": {"hostname": "vpn.acme.com", "cname": "acme.gpcloudservice.com", "ssl_tls_service_profile": "acme-profile"}}' \
--ipv6 \
--udp-queries '{"retries": {"attempts": 5, "interval": 2}}'
Updated infrastructure setting: gp-infra in folder Mobile Users

Show Infrastructure Setting

Display a named infrastructure setting.

Syntax

scm show mobile-agent infrastructure-setting NAME

Examples

$ scm show mobile-agent infrastructure-setting "gp-infra"

Infrastructure Setting: gp-infra
================================================================================
Location: Folder 'Mobile Users'
Portal Hostname: {default_domain: {hostname: acme}}
DNS Servers: [{name: dns-1, dns_suffix: [example.com]}]
IP Pools: [{name: pool-1, ip_pool: [10.0.0.0/16]}]

Delete Infrastructure Setting

Delete an infrastructure setting.

Syntax

scm delete mobile-agent infrastructure-setting NAME [--force]

Examples

$ scm delete mobile-agent infrastructure-setting "gp-infra" --force
Deleted infrastructure setting: gp-infra from folder Mobile Users

Backup Infrastructure Setting

Back up a named infrastructure setting to a YAML file.

Syntax

scm backup mobile-agent infrastructure-setting --name NAME [--file FILE]

Examples

$ scm backup mobile-agent infrastructure-setting --name "gp-infra"
Successfully backed up 1 infrastructure settings to infrastructure-setting-mobile-users.yaml

Load Infrastructure Setting

Load infrastructure settings from a YAML file.

Syntax

scm load mobile-agent infrastructure-setting --file FILE [--dry-run] [--folder FOLDER]

YAML Format

infrastructure_settings:
- name: gp-infra
folder: "Mobile Users"
dns_servers:
- name: dns-1
dns_suffix:
- example.com
primary_public_dns:
dns_server: 8.8.8.8
ip_pools:
- name: pool-1
ip_pool:
- 10.0.0.0/16
portal_hostname:
default_domain:
hostname: acme
ipv6: false

Examples

$ scm load mobile-agent infrastructure-setting --file infrastructure_settings.yml
Created infrastructure setting: gp-infra

Summary: 1 created, 0 updated, 0 unchanged
$ scm load mobile-agent infrastructure-setting --file infrastructure_settings.yml --dry-run
Dry run mode: would apply the following configurations:
...