5.28 Miscelleneous Commands

5.28.1File Commands

5.28.1.1Apply

Description:

Use this command to apply a configuration file stored on the system

Command Syntax:

Apply fname <file-name> [version <version>] [besteffort truefalse]

Parameters:

 

Name

 

Description

 

 

 

 

 

 

 

This specifies the name of the configuration file (the

 

 

 

extension of the file shall be .cfg) to be applied. The

 

 

 

file shall contain valid CLI commands. The user shall

 

 

 

specify the filename for files present in the system as

 

fname <file-name>

 

directories. The directories are /nvram/cfg/

 

 

 

factorydef/, /nvram/user/, /sdram/cfg, /sdram/user.

 

 

 

Type: mandatory

 

 

 

Valid values: string of up to 128 characters: (‘A’-’Z’,

 

 

 

‘a’-‘z’, ‘0’-‘9’, ’-‘,’_’)

 

 

 

 

 

 

 

This specifies the version of the file that needs to be

 

 

 

applied.

 

version <version>

 

Type: Optional

 

 

Default Value: Incase of multiple version files the

 

 

 

 

 

 

active copy gets applied. Not valid for single version

 

 

 

file.

 

 

 

 

 

 

 

If the besteffort flag is false, command execution (as

 

 

 

specified in "file-name"file) stops immediately after a

 

 

 

command returns an error. If the besteffort flag is

 

besteffort truefalse

 

true, command execution (as specified in

 

 

"file-name"file) continues even if a command returns

 

 

 

 

 

 

an error.

 

 

 

Type : Optional

 

 

 

Default value : false

 

 

 

 

Mode:

Super-User

672

IDL series User Guide