SET
Set various configuration options
- SET
Show or change the shell’s own options. With no argument it prints
Current settings:and every option with its value. Otherwise each argument is<Option>=<value>. Options can be shortened to their upper-case letters; booleans take on/off, yes/no, true/false or 1/0. An unknown option printsUnknown optionand fails.set =on its own asks for every option in turn, which blocks abcmcmdsession.The options and their defaults are listed under Shell options in Accessing the shell. One option is missing from the built-in help:
ReportStatus(on/off), which controls status reports from long-running tests.help setdoes not show this command’s usage: it shows the usage of the register commandsetreg, becausehelplooks in the mode’s own commands first andsetis also the shortest form ofSetreg. Useset ?instead.Changes last until
syncdrestarts. They affect only how the shell behaves, not the switch.Hardware-validated
drivshell> set Current settings: IFError=True RCLoad=True RCError=True RCNoPrintError=False RCTest=True LoopError=True MoreLines=20 ReportStatus=True ReportTime=5
Hardware-validated
drivshell> set LoopError=off RCError=offBuilt-in help
Parameters: [<option>=<value> Set or display various configuration information, if no arguments are given, the current settings are displayed. Otherwise, all of the arguments are set. If "=" is the sole argument, the user is prompted for each settable item. Current allowable options are: IFError=[on|off]- if set to "on" errors on commands processed terminate the IF command. RCLoad=[on|off] - enable or disable looking for RC load file if command is not found. RCError=[on|off]- if set to "on", rcload scripts will abort when a command fails, if off, processing continues even if an error occurs. RCNoPrintError=[on|off]- if set to "on", rcload scripts will not print an error message when a command fails RCTest=[on|off]- if set to "on", "testrun" will load preferred init scripts before certain tests (for example, the MAC and PHY loopback tests need rc.soc). LoopError=[on|off]- if set to "on", loop commands will abort when a command fails, if off, processing continues even if an error occurs. MoreLines=<#> - Specify number of lines printed before holding on a more command ReportTime=<#> - Specify number of seconds between reports printed by long-running testsFurther reading
SDK-6.5.20 HSDK Getting Started Guide (GS-SDK6520-R), plus SDK-6.5.20/21/22 Release Notes (RN-SDK65xx-R), OpenBCM sdk-6.5.27/rc: rc.soc, config.bcm, td3_sanity.soc, cmd_td3_tr514_lr.soc, tr51/tr517_bcm56870_a0.soc, bcm_diag_info.soc …, BCM_SDK命令.