attrget
Abstract
Displays the current value of an attribute of the specified object.
Syntax
attrget <objref> <attr_name>
| 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. |
<attr_name> |
string | name of the attribute-of-interest Object attribute names can be obtained from several sources: Modeling Reference manual (for built-in attributes), object menus in editors, and model reports. |
Details
Attribute names which consist of multiple words separated by spaces must be surrounded with double-quotes. Some items which appear in object menus within Riverbed Modeler are operations rather than attributes, and cannot be displayed using attrget (for example, the redefine path item of point-to-point link menus). An attribute value can be modified using the command attrset.
Example
ODB> objmap igen
Obj ID Obj Name Obj Type Parent ID
------------------------------------------------------------------------------
53 top.pksw1.node0.src ideal generator 3
62 top.pksw1.node1.src ideal generator 4
71 top.pksw1.node3.src ideal generator 5
80 top.pksw1.node2.src ideal generator 6
...
ODB> attrget #53 "interarrival args"
* Attribute "interarrival args" : (4.0)
ODB> attrget #53 "pk size args"
* Attribute "pk size args" : (9600)
ODB> attrget #62 "interarrival args"
* Attribute "interarrival args" : (8.0)
ODB> attrget #62 "pk size args"
* Attribute "pk size args" : (9600)