![Cisco ASR 9000 Serie Скачать руководство пользователя страница 176](http://html.mh-extra.com/html/cisco/asr-9000-serie/asr-9000-serie_configuration-manuals_66679176.webp)
Result String
nsec %d
Where nsec is the number of nanoseconds since boot.
Set _cerrno
No
register_counter
Registers a counter and returns a counter event ID. This Tcl command extension is used by a counter publisher
to perform this registration before using the event ID to manipulate the counter.
Syntax
register_counter name ?
Arguments
(Mandatory) The name of the counter to be
manipulated.
name
Result String
event_id %d
event_spec_id %d
Where event_id is the counter event ID for the specified counter; it can be used to manipulate the counter by
the
unregister_counter
or
counter_modify
Tcl command extensions. The event_spec_id argument is the
event specification ID for the specified counter.
Set _cerrno
Yes
(_cerr_sub_err =
2)
FH_ESYSERR
(generic/unknown error from OS/system)
This error means that the operating system reported an error. The POSIX errno value that is reported with the
error should be used to determine the cause of the operating system error.
(_cerr_sub_err =
4)
FH_EINITONCE
(Init() is not yet done, or done twice.)
This error means that the request to register the specific event was made before the EEM event detector had
completed its initialization.
(_cerr_sub_err =
6)
FH_EBADEVENTTYPE
(unknown EEM event type)
This error means that the event type specified in the internal event specification was invalid.
(_cerr_sub_err =
9)
FH_EMEMORY
(insufficient memory for request)
Cisco ASR 9000 Series Aggregation Services Router System Monitoring Configuration Guide, Release 4.2.x
160
Configuring and Managing Embedded Event Manager Policies
Embedded Event Manager Utility Tcl Command Extensions