Register_Counter - Cisco ASR 9000 Serie Configuration Manuals

Aggregation services router system
Table of Contents

Advertisement

Embedded Event Manager Utility Tcl Command Extensions
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
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 =
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 =
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 =
This error means that the event type specified in the internal event specification was invalid.
(_cerr_sub_err =
Cisco ASR 9000 Series Aggregation Services Router System Monitoring Configuration Guide, Release 4.2.x
160
2)
FH_ESYSERR
(generic/unknown error from OS/system)
4)
FH_EINITONCE
(Init() is not yet done, or done twice.)
6)
FH_EBADEVENTTYPE
9)
FH_EMEMORY
(insufficient memory for request)
Configuring and Managing Embedded Event Manager Policies
(Mandatory) The name of the counter to be
manipulated.
(unknown EEM event type)

Advertisement

Table of Contents
loading

Table of Contents