beautypg.com

Create file – Allied Telesis RAPIER I User Manual

Page 22

background image

22

File System Enhancement

Release Note

Software Version 2.8.1
C613-10477-00 REV B

Examples

To add output one time only from the show trace command to a file called
trace.txt command, use the command:

add fi=trace.txt

com="show trace"

To permanently add output from the show debug command to a file called
debug2.txt command, use the command:

add fi=debug2.txt

com="show debug"

create file

Syntax

CREate FIle=filename [FORCE] [COMmand=commandstring]

[SCRipt=scriptname] [PERManentredirect] [LIMIT=limit]

Description

This new command creates a text file containing output from a specific
command or script. This is useful for collecting debug output. The file cannot
be edited, renamed, deleted, or uploaded while it is receiving input.

PERManentredirect

Permanently directs output to the designated text file until the reset
file permanentredirect
command is issued or the router or switch is
rebooted.

LIMIT

A decimal number from 0 to 1048576 bytes specifying the maximum
file size.

Default: 204800 bytes

Parameter (cont.)

Description (cont.)

Parameter

Description

FIle

Name of the text file that you want to create. The filename is in the
format [device:]filename.txt and can be:

• uppercase and lowercase letters
• digits
• # $ % & ! ' ( ) + , - . ; = @ [ ] ^ _ ` { } ~ and space

device indicates the physical location where the file is stored. The
default is flash.

Default: no default

FORCE

Overwrites the text file if one already exists. If force is not specified
and the file exists, the command has no effect.

COMmand

Command whose output is used to generate the text when it is next
issued. Commandstring is the command syntax enclosed in quotes.

Command and script are mutually exclusive.

SCRipt

Script whose output is used to generate the text when it is next issued.
The script is treated as a simple list of commands. Flow control
statements are not accepted to ensure that the extra text the script
produces is not in the output file. Scriptname has the same format as
filename except it must have either a .cfg or .scp extension.

Command and script are mutually exclusive.

PERManentredirect Permanently directs output to the designated text file until the reset

file permanentredirect command is issued or the router or switch is
rebooted.

This manual is related to the following products: