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)
This error means that an internal EEM request for memory failed.
(_cerr_sub_err = 10)
FH_ECORRUPT
(internal EEM API context is corrupt)
This error means that the internal EEM API context structure is corrupt.
(_cerr_sub_err = 11)
FH_ENOSUCHESID
(unknown event specification ID)
This error means that the event specification ID could not be matched when the event was being registered
or that an event detector internal event structure is corrupt.
(_cerr_sub_err = 12)
FH_ENOSUCHEID
(unknown event ID)
This error means that the event ID could not be matched when the event was being registered or that an event
detector internal event structure is corrupt.
(_cerr_sub_err = 16)
FH_EBADFMPPTR
(bad ptr to fh_p data structure)
This error means that the context pointer that is used with each EEM API call is incorrect.
(_cerr_sub_err = 17)
FH_EBADADDRESS
(bad API control block address)
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
2015
register_counter
Summary of Contents for Catalyst 2960 Series
Page 96: ......
Page 196: ......
Page 250: ......
Page 292: ......
Page 488: ......
Page 589: ...P A R T VI Cisco Flexible NetFlow Configuring NetFlow Lite page 509 ...
Page 590: ......
Page 619: ...P A R T VII QoS Configuring QoS page 539 Configuring Auto QoS page 645 ...
Page 620: ......
Page 750: ......
Page 1604: ......
Page 1740: ......
Page 2105: ...P A R T XII Configuring Cisco IOS IP SLAs Configuring Cisco IP SLAs page 2025 ...
Page 2106: ......
Page 2118: ......
Page 2164: ......