attrset
Abstract
Assigns a new value to an attribute of the specified object.
Syntax
attrset <objref> <attr_name> <value>
| 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 (see attrget for more info.) |
<value> |
variable | new value to assign to the object attribute Value types include integer, double, string, or boolean. |
Details
Attribute names or values which consist of multiple words separated by spaces must be surrounded with double-quotes. Boolean attributes can be assigned one of the following values: true, false, 0, or 1. In addition to numeric values, boolean double attributes can be assigned the value disabled. Certain numeric attributes can be assigned the value "i", which represents infinity (i.e., an extremely large number). 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).
Example
ODB> objmap igens
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 #80 "pk size pdf"
* Attribute "pk size pdf" : (constant)
ODB> attrset #80 "pk size pdf" exponential
ODB> attrget #80 "pk size pdf"
* Attribute "pk size pdf": (exponential)