Running-Time - HP FlexFabric 12500 Series Network Management And Monitoring Command Reference

Routing
Hide thumbs Also See for FlexFabric 12500 Series:
Table of Contents

Advertisement

tcl-filename: Specifies a .tcl script file name. The file name is case sensitive. You must make sure the file
is available on a storage medium of the device.
Usage guidelines
Use this command to configure a monitor policy in Tcl.
This command both creates and enables the specified Tcl-defined monitor policy. To revise the Tcl script
of a Tcl-defined policy, you must suspend all monitor policies first, and then resume the policies after you
finish revising the script. The system cannot execute a Tcl-defined policy if you edit its Tcl script without
suspending all monitor policies.
You can assign the same policy name to a CLI-defined policy and a Tcl-defined policy, but you cannot
assign the same name to policies that are the same type.
Examples
# Create a Tcl policy and bind it to a Tcl script file.
<Sysname> system-view
[Sysname] rtm tcl-policy test test.tcl

running-time

Use running-time to configure the maximum runtime of a CLI-defined policy.
Use undo running-time to restore the default.
Syntax
running-time time
undo running-time
Default
The maximum runtime of a CLI-defined policy is 20 seconds.
Views
CLI-defined policy view
Predefined user roles
network-admin
mdc-admin
Parameters
time: Specifies the maximum runtime of the CLI-defined policy, in the range of 0 to 31536000 seconds.
If you specify 0, the policy can run forever until it is manually interrupted.
Usage guidelines
Policy runtime limits the maximum amount of time that the monitor policy can run from the time it is
triggered. When the maximum runtime is reached, the system stops executing the policy even if the
execution is not finished.
This setting prevents an incorrectly defined policy from running permanently to occupy resources.
Examples
# Set the maximum runtime to 60 seconds for the CLI-defined policy test.
<Sysname> system-view
254

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flexfabric 12500e series

Table of Contents