objassoc
Abstract
Displays a list of objects of the specified type that are associated with the specified object.
Syntax
objassoc <objref> <assoc_type>
| Argument | Type | Description |
|---|---|---|
<objref> |
integer or string | numeric object ID or hierarchical name of the object-of-interest An object ID for this argument can be obtained by using the ODB commands objmap or objid. |
<assoc_type> |
char | type of object associated with the specified object-of-interest Use the ODB command help objassoc to see a list of association type keywords. |
Details
Two objects are associated if they are: (1) directly connected (e.g., a packet stream attached to a processor); (2) indirectly connected through a connection object (e.g., two nodes connected by a link). Connection associations are classified as input or output, depending on the direction of the connection. The displayed association list separates input and output associations, and includes the object ID and hierarchical name of each associated object.
Example
ODB> objassoc pksw2.hub node
__________________________________________________________
5 input association(s)
0) objid (9) name (top.pksw2.node0)
1) objid (10) name (top.pksw2.node1)
2) objid (2) name (top.pksw2.hub)
3) objid (12) name (top.pksw2.node2)
4) objid (11) name (top.pksw2.node3)
__________________________________________________________
5 output association(s)
0) objid (9) name (top.pksw2.node0)
1) objid (10) name (top.pksw2.node1)
2) objid (2) name (top.pksw2.hub)
3) objid (12) name (top.pksw2.node2)
4) objid (11) name (top.pksw2.node3)
ODB> objassoc pksw2.node0 link
__________________________________________________________
1 input association(s)
0) objid (15) name (top.pksw2.ld_0)
__________________________________________________________
1 output association(s)
0) objid (15) name (top.pksw2.ld_0)