Home > Storage > PowerScale (Isilon) > Industry Solutions and Verticals > Media and Entertainment > PowerScale OneFS: macOS Client Performance and User Experience Optimization > Appending Boot Arguments
In this KB article about enabling ServerPerfMode, Apple provides terminal commands to add new boot-args without overwriting existing boot-args. Below are those commands adapted for both ServerPerfMode and ncl. All commands assume that the Apple system is booted into Recovery Mode.
To set both ServerPerfMode and ncl simultaneously, overwriting existing boot-args, run the following command from macOS Terminal:
nvram boot-args=”serverperfmode=1 ncl=262144”
To remove all boot-args simultaneously:
nvram -d boot-args
To enable ServerPerfMode and keep existing boot-args:
nvram boot-args="serverperfmode=1 $(nvram boot-args 2>/dev/null | cut -f 2-)"
To disable ServerPerfMode and keep existing boot-args:
nvram boot-args="$(nvram boot-args 2>/dev/null | sed -e \
$'s/boot-args\t//;s/serverperfmode=1//')"
To update the ncl setting and keep existing boot-args:
nvram boot-args="ncl=262144 $(nvram boot-args 2>/dev/null | cut -f 2-)"
To remove the ncl setting and keep existing boot args:
nvram boot-args="$(nvram boot-args 2>/dev/null | sed -e \
$'s/boot-args\t//;s/ncl=262144//')"
To update both ServerPerfMode and ncl simultaneously while keeping existing boot-args:
nvram boot-args="serverperfmode=1 ncl=262144 $(nvram boot-args 2>/dev/null \
| cut -f 2-)"
To remove both ServerPerfMode and ncl settings simultaneously while keeping other boot-args:
nvram boot-args="$(nvram boot-args 2>/dev/null | sed -e \
$'s/boot-args\t//;s/serverperfmode=1//;s/ncl=262144//')"