
the administrator should narrow their search results by applying
-node
,
-cb
,
-ca
, and
-ra
parameters. In the following example
the administrator searches for activities belonging to the resource adaptor entity
TestRA
.
[Rhino@localhost (#1)] findactivities
pkey handle ra-entity replicated submission-time update-time
------------------------- ---------------------------------------- --------------- ----------- ----------------- ------------------
65.0.4E8BF.1.2A567636 ServiceActivity[HA PingService 1.0, Open Cloud] Rhino internal true 20050418 10:52:54 20050418 10:52:54
65.2.4E8BF.0.2EA48 SAH[switchID=8756,connectionID=4,address=1] TestRA false 20050418 10:59:53 20050418 11:01:50
66.2.4E98A.0.2EA49 SAH[switchID=8756,connectionID=5,address=1] TestRA false 20050418 10:59:55 20050418 11:02:12
66.0.4E98A.0.2EA45 SAH[switchID=8756,connectionID=1,address=1] TestRA false 20050418 10:59:47 20050418 11:02:12
66.DE.4E98A.0.2EC08 SAH[switchID=8756,connectionID=452,address=1] TestRA false 20050418 11:11:48 20050418 11:12:25
66.F8.4E98A.0.2EC39 SAH[switchID=8756,connectionID=501,address=1] TestRA false 20050418 11:12:37 20050418 11:12:37
65.F5.4E8BF.0.2EC26 SAH[switchID=8756,connectionID=482,address=1] TestRA false 20050418 11:12:17 20050418 11:12:17
65.F3.4E8BF.0.2EC24 SAH[switchID=8756,connectionID=480,address=1] TestRA false 20050418 11:12:15 20050418 11:12:15
65.F8.4E8BF.0.2EC2E SAH[switchID=8756,connectionID=490,address=1] TestRA false 20050418 11:12:26 20050418 11:12:26
66.1.4E98A.0.2EA47 SAH[switchID=8756,connectionID=3,address=1] TestRA false 20050418 10:59:51 20050418 11:02:12
65.F0.4E8BF.0.2EC1C SAH[switchID=8756,connectionID=472,address=1] TestRA false 20050418 11:12:08 20050418 11:12:08
65.F6.4E8BF.0.2EC2B SAH[switchID=8756,connectionID=487,address=1] TestRA false 20050418 11:12:23 20050418 11:12:23
65.ED.4E8BF.0.2EC16 SAH[switchID=8756,connectionID=466,address=1] TestRA false 20050418 11:12:01 20050418 11:12:25
66.EF.4E98A.0.2EC29 SAH[switchID=8756,connectionID=485,address=1] TestRA false 20050418 11:12:21 20050418 11:12:21
65.FD.4E8BF.0.2EC3A SAH[switchID=8756,connectionID=502,address=1] TestRA false 20050418 11:12:38 20050418 11:12:38
65.E3.4E8BF.0.2EC05 SAH[switchID=8756,connectionID=449,address=1] TestRA false 20050418 11:11:45 20050418 11:12:20
66.ED.4E98A.0.2EC27 SAH[switchID=8756,connectionID=483,address=1] TestRA false 20050418 11:12:18 20050418 11:12:18
....
100 rows
The 100 rows returned represents only some of the available activities. In order to find activities of interest, the search must
narrowed with more specific arguments.
A common use of this facility would be to find activities which have become stale. The Rhino SLEE performs a periodic liveness
scan. This means that all active activities are scanned and any detected stale activities are ended. However, it is possible that
due to a failure in the network or inside a Resource Adaptor, the liveness scans may not detect and end all stale activities. In
these cases, an administrator must locate and end stale activities manually.
To narrow the search to activities belonging to node 101 (i.e. any activities whose processing node is 101 and are replicated and
non-replicated activities) that are more than 1 hour old, add the parameters
-node 101
and
-cb 1H
:
[Rhino@localhost (#1)] findactivities -ra TestRA -node 101 -cb 1H
pkey handle ra-entity replicated submission-time update-time
------------------------- ---------------------------------------- ---------- ----------- ------------------ ------------------
65.1.2E8BF.0.2EA46 SAH[switchID=8756,connectionID=2,address=1] TestRA false 20050418 10:59:49 20050418 11:01:50
65.2.2E8BF.0.2EA48 SAH[switchID=8756,connectionID=4,address=1] TestRA false 20050418 10:59:53 20050418 11:01:50
2 rows
Two activities are returned from the search. The administrator may decide to interrogate Rhino for additional information about
one of these activities. This is achieved using the
getActivityInfo
command. This command takes a single parameter – the
Activity’s primary key (from the pkey column in the findActivities result set). To get additional information about the first of
the returned activities:
[Rhino@localhost (#1)] getactivityinfo 65.1.2E8BF.0.2EA46
pkey : 65.1.2E8BF.0.2EA46
ending : false
events-processed : 1
handle : SAH[switchID=8756,connectionID=2,address=1]
processing-node : 101
queue-size : 0
ra-entity : TestRA
eeference-count : 1
replicated : false
sbbs-invoked : 1
submission-time : 20050418 10:59:49
submitting-node : 101
update-time : 20050418 11:01:50
attached-sbbs :
> pkey replicated sbb-component-id service-component-id
> -------------------- ----------- -------------------------- ------------------------------
> 101:8372508:0 false HA PingSbb^Open Cloud1.0 HA PingService^Open Cloud1.0
> 1 rows
events :
no rows
The information returned by the getActivityInfo command is a snapshot of the Activity’s state at the time the command is
executed. Some values (fields pkey, ra-entity, replicated, submission-time, submitting-node, and handle) are fixed for the
lifetime of the activity. Others will change as events are processed on the activity.
Open Cloud Rhino 1.4.3 Administration Manual v1.1 44
Komentarze do niniejszej Instrukcji