Allied Telesis AT-9800, RAPIER I, X900-48FE, AT-8900, AT-8700XL Create file, File System Enhancement

Models: AT-9900 AT-8700XL AT-9800 AT-8600 RAPIER I AT-8800 AT-8900 X900-48FE

1 232
Download 232 pages 5.78 Kb
Page 22
Image 22

22

File System Enhancement

Release Note

 

 

 

 

 

 

 

 

Parameter (cont.)

Description (cont.)

 

 

 

 

 

 

 

 

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

 

 

 

 

 

 

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.

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.

Software Version 2.8.1 C613-10477-00 REV B

Page 22
Image 22
Allied Telesis AT-9800, RAPIER I, X900-48FE, AT-8900, AT-8700XL, AT-9900, AT-8600, AT-8800 Create file, File System Enhancement