This collection returns all the categories of the server configuration parameters that can be set.
There are 13 categories, each with a category number, (1 Communication, 2 Memory, 3 File caching, 4 Directory caching, and so on). Each category, in turn, has settable parameters. For example, Communication has parameters such as Maximum Packed Receive and Minimum Packet Receive Buffer. To view the categories and their parameters, type set at the server prompt.
Returns the ParamObject specified by the SettableName parameter. If the Category number is specified, the sequence number must also be specified.
object.Get(
SettableName As String)
or
object.Get(
CategoryNumber As Integer,
[SequenceNumber As Integer])
The settable parameter name.
The settable parameter category number.
Optional. The settable parameter sequence number.
ParamObject.
This example returns the ParamObject specified by the SettableName parameter.
set srv = createobject ("ucx:Server")
set srvparams = srv.Params
set paramObj = Srvparams.Get ("TimeSync Add Time Source")
Print("Name is :" & paramObj.Name & " Value is " & paramObj.Value)
Returns the category name associated with the specified CategoryNumber.
object.GetCategoryName(
CategoryNumber As Integer)
The category number associated with the name.
String.
This example returns the category name for category 1.
set srv = createobject ("ucx:Server")
set srvparams = srv.Params
catName = Srvparams.GetCategoryName(1)
print("Category name is "& catName)
Returns all ParamObjects for the specified category.
object.GetObjects(
CategoryNumber As Integer)
[,CrossCategory As Boolean])
The category number for which the information is to be retrieved.
Optional. If set to TRUE, retrieves information across categories (default=FALSE).
ParamObjects.
This example returns all ParamObjects for category 1.
set srv = createobject ("ucx:Server")
set srvparams = srv.Params
set paramObjs = srvparams.GetObjects(1)
paramObjs.Reset
while (paramObjs.HasMoreElements=TRUE)
set paramObj=paramObjs.Next
print ("Name is " & paramObj.Name & " Value is " & paramObj.Value)
wend
Sets the value for the specified parameter object.
object.Set(
SettableName As String,
Value As AnyType)
The settable parameter name.
The settable parameter value.
ParamObject.
This example sets the value for Minimum Cache File Buffers to 26 if the current value is less than 25. If the current value is greater than 25, this example sets the value to 25.
set srv = createobject ("ucx:Server")
set srvparams = srv.Params
set paramObj = Srvparams.Get ("Minimum File Cache Buffers")
Print("Current value of Minimum Cache File Buffers is: " & paramobj.value
if ( paramobj.value>25 ) then
newval=25
else
newval=26
endif
srvparams.Set("Minimum File Cache Buffers", newval)
set paramObj = Srvparams.Get ("Minimum File Cache Buffers")
print "New value of Minimum File Cache Buffers is: " ¶mobj.value