EasyManua.ls Logo

Ruijie RG-S2600G-I Series - Page 1096

Ruijie RG-S2600G-I Series
1192 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
CLI Reference SEM Configuration Commands
Usage
Guideline
By default, the outputs of CLI action executed by the SEM policy are not
recorded. After configuring policy record, when CLI action is executed,
outputs of CLI action will be recorded into the file system. The path of log
file is:
"/sem_record/policy_name/yyyy-mm-dd_hh-mm-ss_mspolicytriggerid.txt".
Therein, "/sem_record/" is the general directory for the output records of
all CLI actions, and is located in the root directory of file system;
"policy_name" is the name of policy, and is located in the directory of
"/sem_record/"; each policy corresponds to each separate directory.
"yyyy-mm-dd_hh-mm-ss_mspolicytriggerid.txt" is the name of log file, and
is the combination of date and time when this record is generated and the
policy trigger ID.
Use more command to view logs.
When the number of CLI action outputs exceeds the size configured with
the parameter of per-instance record-size-per-policy, the earliest records
will be overwritten.
When the gross size of the log file of CLI action outputs generated during
the running of a specific policy exceeds the value set in per-policy
record-size-per-policy, the earliest logs will be cleared until the total size
of log file complies with the value set in per-policy record-size-per-policy.
Execute smart manager policy record clean command to clear CLI action
output records in the file system.
Examples
Ruijie(config)#smart manager applet Test_1
Ruijie(config-applet)#event tag none-event none
Ruijie(config-applet)#action 00 cli command "enable"
Ruijie(config-applet)#action 10 cli command "show arp"
Ruijie(config-applet)#policy record
Ruijie(config-applet)#commit
Ruijie(config-applet)#exit
Ruijie(config)# exit
Ruijie# more /sem_record/Test_1/2010-01-01_01-00-00_1001.txt
SEM CLI RECORD FILE
SEM policy name: Test_1
SEM policy trigger id :1
SEM policy cli record time : Fri Jan 01 01:00:00 2010
==================================================
Ruijie#enable
Ruijie#show arp
Protocol Address Age(min) Hardware Type Interface
Internet 6.6.6.6 21 0027.1994.e59b arpa VLAN 1

Table of Contents

Related product manuals