Script; Upload Certificate Data; Upload Ssh Public Key Data; Execute Script - D-Link NetDefend DFL-210 Cli Reference Manual

Network security firewall
Hide thumbs Also See for NetDefend DFL-210:
Table of Contents

Advertisement

2.4.5. script

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
<File>
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 [[<Category>] <Type> [<Identifier>]] [-name=<Name>]
Create configuration script from specified object, class or category.
script -execute [-verbose] [-force] [-quiet] -name=<Name>
[<Parameters>]...
Enable long listing format.
File to list.
81
Chapter 2. Command Reference

Advertisement

Table of Contents
loading

Table of Contents