Maintenance
Overview
When the Zyxel Device is set to work in cloud mode, the Maintenance screens let you mange shell script files on the Zyxel Device, generate a diagnostic file, or view log messages.
Shell Script
Use shell script files to have the Zyxel Device use commands that you specify. Use a text editor to create the shell script files. They must use a “.zysh” filename extension.
Use the Shell Script screen to store, name, download, and upload shell script files. You can store multiple shell script files on the Zyxel Device at the same time.
Each field is described in the following table.
Maintenance > Shell Script 
Label
Description
Rename
Use this button to change the label of a shell script file on the Zyxel Device.
You cannot rename a shell script to the name of another shell script in the Zyxel Device.
Click a shell script’s row to select it and click Rename to open the Rename File screen.
Specify the new name for the shell script file. Use up to 25 characters (including a-zA-Z0-9;‘~!@#$%^&()_+[]{}’,.=-).
Click OK to save the duplicate or click Cancel to close the screen without saving a duplicate of the configuration file.
Remove
Click a shell script file’s row to select it and click Delete to delete the shell script file from the Zyxel Device.
A pop-up window asks you to confirm that you want to delete the shell script file. Click OK to delete the shell script file or click Cancel to close the screen without deleting the shell script file.
Download
Click a shell script file’s row to select it and click Download to save the configuration to your computer.
Copy
Use this button to save a duplicate of a shell script file on the Zyxel Device.
Click a shell script file’s row to select it and click Copy to open the Copy File screen.
Specify a name for the duplicate file. Use up to 25 characters (including a-zA-Z0-9;‘~!@#$%^&()_+[]{}’,.=-).
Click OK to save the duplicate or click Cancel to close the screen without saving a duplicate of the configuration file.
#
This column displays the number for each shell script file entry.
File Name
This column displays the label that identifies a shell script file.
Size
This column displays the size (in KB) of a shell script file.
Last Modified
This column displays the date and time that the individual shell script files were last changed or saved.
Upload Shell Script
The bottom part of the screen allows you to upload a new or previously saved shell script file from your computer to your Zyxel Device.
File
Type in the location of the file you want to upload in this field or click Browse... to find it.
Browse...
Click Browse... to find the .zysh file you want to upload.
Upload
Click Upload to begin the upload process. This process may take up to several minutes.
Diagnostics
This screen provides an easy way for you to generate a file containing the Zyxel Device’s configuration and diagnostic information. You may need to generate this file and send it to customer support during troubleshooting. All categories of settings and shell script files stored on the Zyxel Device will be included in the diagnostic file.
The Debug Information Center screen then displays showing whether the collection is in progress, was successful, or has failed. When the data collection is done, click Download to save the most recent diagnostic file to a computer.
View Log
The NCC periodically gathers log files from the devices being managed by it. Before the NCC pulls logs from the Zyxel Device or when the Zyxel Device is disconnected from the NCC, you can use this screen to view its current log messages.
Note: When a log reaches the maximum number of log messages, new log messages automatically overwrite existing log messages, starting with the oldest existing log message first.
Events that generate an alert (as well as a log message) display in red. Regular logs display in black. Click a column’s heading cell to sort the table entries by that column’s criteria. Click the heading cell again to reverse the sort order.
The following table describes the labels in this screen.
Maintenance > Log > View Log 
Label
Description
Show Filter / Hide Filter
Click this button to show or hide the filter settings.
If the filter settings are hidden, the Display, Email Log Now, Refresh, and Clear Log fields are available.
If the filter settings are shown, the Display, Priority, Source Address, Destination Address, Source Interface, Destination Interface, Protocol, Keyword, and Search fields are available.
Display
Select the category of log message(s) you want to view. You can also view All Logs at one time, or you can view the Debug Log.
Priority
This displays when you show the filter. Select the priority of log messages to display. The log displays the log messages with this priority or higher. Choices are: any, emerg, alert, crit, error, warn, notice, and info, from highest priority to lowest priority. This field is read-only if the Category is Debug Log.
Source Address
This displays when you show the filter. Type the source IP address of the incoming packet that generated the log message. Do not include the port in this filter.
Destination Address
This displays when you show the filter. Type the IP address of the destination of the incoming packet when the log message was generated. Do not include the port in this filter.
Source Interface
This displays when you show the filter. Select the source interface of the packet that generated the log message.
Destination Interface
This displays when you show the filter. Select the destination interface of the packet that generated the log message.
Protocol
This displays when you show the filter. Select a service protocol whose log messages you would like to see.
Keyword
This displays when you show the filter. Type a keyword to look for in the Message, Source, Destination and Note fields. If a match is found in any field, the log message is displayed. You can use up to 63 alphanumeric characters and the underscore, as well as punctuation marks ()’ ,:;?! +-*/= #$% @ ; the period, double quotes, and brackets are not allowed.
Search
This displays when you show the filter. Click this button to update the log using the current filter settings.
Refresh
Click this to update the list of logs.
Clear Log
Click this button to clear the whole log, regardless of what is currently displayed on the screen.
#
This field is a sequential value, and it is not associated with a specific log message.
Time
This field displays the time the log message was recorded.
Priority
This field displays the priority of the log message. It has the same range of values as the Priority field above.
Category
This field displays the log that generated the log message. It is the same value used in the Display and (other) Category fields.
Message
This field displays the reason the log message was generated. The text “[count=x]”, where x is a number, appears at the end of the Message field if log consolidation is turned on and multiple entries were aggregated to generate into this one.
Source
This field displays the source IP address and the port number in the event that generated the log message.
Source Interface
This field displays the source interface of the packet that generated the log message.
Destination
This field displays the destination IP address and the port number of the event that generated the log message.
Destination Interface
This field displays the destination interface of the packet that generated the log message.
Protocol
This field displays the service protocol in the event that generated the log message.
Note
This field displays any additional information about the log message.