Chapter 45: CLI Overview
STANDARD Revision 1.0
C4® CMTS Release 8.3 User Guide
© 2016 ARRIS Enterprises LLC. All Rights Reserved.
1113
Table 143.
Default Logging Level
CLI Access Level
Notification Priority
1 - 4
7 (Informational)
5 - 15
6 (notice)
You can now indicate at what logging priority you want CLI command execution notifications to be generated.
The
show logging
command displays the CLI access level (same as privilege) and the priority that it comes out as.
For example, if you want all config commands (normally privilege level 15) to print at critical level and all show commands
(privilege level 1) to print at error level, execute the following commands:
configure logging priority cli 15 3
configure logging priority cli 1 4
Creating and Using Command Aliases
Use the
alias
command to define shorter simpler versions of commands. Command aliases can save time and can
prevent typing errors when you are configuring or monitoring the CMTS.
Aliases do not persist from one CLI command session to another. You must create a text file in which each alias command
appears on a separate line. Save the file with a descriptive name, for example, aliaslist.txt. Use FTP or for greater security
use secure FTP (SFTP) to place the alias file to the alias directory: /system/alias/(filename). If necessary, use the following
command to enable SFTP:
configure ip ssh sftp
If the list of alias commands is present in the alias directory and the user has logged in using a defined user profile, then
the CMTS automatically executes the alias file. All of the aliases defined in this file are then available.
Aliases defined in interactive CLI sessions are not exported to scripts. This means that the script writer must first use the
alias
command in the script itself to define his/her command aliases before using these aliases in the script. This must be
done in every script where the writer intends to use command aliases. These alias definitions are not exported to other
scripts or CLI sessions.
You can create aliases utilizing the "pipe" character (|) but the CLI command must be in quotes, e.g.:
Correct syntax: