Verifying the configuration – H3C Technologies H3C S6300 Series Switches User Manual
Page 216
203
::comware::rtm::action syslog priority 1 facility local4 msg rtm_tcl_test is running
# Download the Tcl script file from the TFTP server at 1.2.1.1.
# Enter system view.
# Create the Tcl-defined policy test and bind it to the Tcl script file.
[Sysname] rtm tcl-policy test rtm_tcl_test.tcl
[Sysname] quit
Verifying the configuration
# Display information about the policy.
Total number: 1
Type Event TimeRegistered PolicyName
TCL TCL Apr 21 16:33:00 2012 test
# Enable the information center to output log messages to the current monitoring terminal.
# Execute the display this command. Verify that the system displays "rtm_tcl_test is running" and a
message about the policy being successfully executed.
#
return
%Jun 4 15:02:30:382 2013 Sysname RTM/6/RTM_POLICY: TCL policy test is running
successfully.