beautypg.com

Script, Upload certificate data, Upload ssh public key data – Amer Networks E5 CLI User Manual

Page 87: Execute script

background image

Example 2.21. Upload certificate data

scp certificate.cer user@sgw-ip:certificate/certificate_name
scp certificate.key user@sgw-ip:certificate/certificate_name

Example 2.22. Upload ssh public key data

scp sshkey.pub user@sgw-ip:sshclientkey/sshclientkey_name

Usage

Options

-long

Enable long listing format.

File to list.

2.4.5. script

Handle CLI scripts.

Description

Run, create, show, store of delete script files.

Script files are transfered to and from the device by the SCP protocol. On the device they are
stored in the "/script" folder.

Example 2.23. Execute script

"script.sgs":
add IP4Address Name=$1 Address=$2 Comment="$0: \$100".
:/> script -execute -name=script.sgs ip_test 127.0.0.1
is executed as line:
add IP4Address Name=ip_test Address=127.0.0.1 Comment="script.sgs: $100"

Usage

script -create [[] []] [-name=]

Create configuration script from specified object, class or category.

script -execute [-verbose] [-force] [-quiet] -name=

[]...

Chapter 2: Command Reference

87

This manual is related to the following products: