EMG™ Edge Management Gateway User Guide
283
14: Maintenance
The system administrator performs maintenance activities and operates the EMG using the
options for the Maintenance tab and additional commands on the command line interface.
Firmware & Configurations
The Firmware & Configuration page allows the system administrator to:
Configure the FTP, SFTP, or TFTP server that will be used to provide firmware updates and
save/restore configurations. (TFTP is only used for firmware updates and configurations
restored via DHCP/TFTP .)
Set up the location or method that will be used to save or restore configurations (Local Disk,
FTP, SFTP, NFS, CIFS, USB, HTTPS or SD card). Update the version of the firmware running
on the EMG unit.
Save a snapshot of all settings on the EMG device (save a configuration).
Restore the configuration, either to a previously saved configuration, or to the factory defaults.
Configurations can also be pushed to the EMG via the
HTTPS Push Configuration Restore
feature.
HTTPS Push Configuration Restore
The HTTPS Push Configuration feature allows a saved configuration to be pushed to a EMG via a
command line tool such as "curl" that includes the configuration to upload:
% curl --insecure --request POST --form "file=@/home/users/admin/
current-emgcfg.tgz" ‘https://myemg.company.com/
cfgupdate.htm?login=sysadmin&password=PASS&config=all&comment=FirmwareUp
date’
The arguments that are passed with the URL are:
login
- Login token to use for authentication. This must be a local user with firmware/config
and reboot/shutdown rights.
password
- Clear text password for the login token.
config
- Indicates the portion of the configuration to restore, either all, or any combination of
the following separated by commas: network, datetime, services, localusers, devports, usb,
rpms, remoteauth, connections, events, ipfilter, groups, hostlist, nfscifs, maintenance, sites,
scripts, slcnetwork, consoleport, menus, sshkeys, or sslcerts.
comment
- optional comment to include in the system log and audit log. If spaces are included
in the comment they should be URL encoded as shown in this bash script:
#!/bin/bash
url="https://myemg.company.com/
cfgupdate.htm?login=sysadmin&password=PASS&config=all&comment=Update
myemg.company.com with default configuration"