< Home

object(Bulk-file view)

Function

The object command adds statistics objects to a statistics file.

The undo object command deletes statistics objects from a statistics file.

Format

object oid class { single | column [ start-index start-index ] [ instance-number instance-number ] }

undo object oid class { single | column }

Parameters

Parameter Description Value
oid Specifies the OID of a statistics object to be added or deleted. The value is a dotted integral string of 1 to 127 characters.
start-index start-index Specifies the index of a start instance when the object type is set to column. The value is a dotted integral string of 1 to 127 characters. When start-index is set to 0, it indicates that statistics are collected from the first instance in the specified column. By default, start-index is set to 0.
instance-number Collects statistics about a certain number of sequential instances from start-index when the object type is set to column. The value is in the range of 1 to 65535. When instance-number is set to 0, it means the object is collecting statistics about all instances in the column. If values of start-index and instances-number exceed the actual ranges of instances, it will use the max/min ranges of instances. By default, instance-number is set to 0.

Views

Bulk-file view

Default Level

2: Configuration level

Usage Guidelines

You can run the object oid class single command to add a single instance as a statistics object. That is, oid must carry the index of the single instance. If the index is 0, it means that the statistics object is a scalar; if the index is not 0, it means that the statistics object is an instance in the column. If the statistics object already exists in the statistics file, the prompts pop up.

You can run the object oid class column start-index start-index instance-number instance-number command to add part of instances or all instances in a column as statistics objects. start-index and instances-number specify the index of a start instance and the number of collected instances. If values of start-index and instances-number exceed the actual ranges of instances, use the actual ranges of instances. If oid already exists in the statistics file, the system prompts that this oid has been configured.

OID configuration or deletion takes effect during the next statistics collection interval.

The configured oid must exist on the MIB tree. If oid already exists in the statistics file, the system prompts that this oid is configured. Therefore, you must delete this oid before reconfiguring it.

Example

# Set the type of the statistics object to be added to the statistics file named ifOutOctets to single.

<sysname> system-view
[sysname] bulk-stat enable
Info:Succeeded in enabling the bulk stat function.
[sysname] bulk-file ifOutOctets
[sysname-bulk-file-ifOutOctets] object 1.3.6.1.2.1.2.2.1.16.1 class single

# Set the type of the statistics objects to be added to the statistics file named iftable to column.

[sysname] bulk-file iftable
[sysname-bulk-file-iftable] object 1.3.6.1.2.1.31.1.1.1.1 class column start-index 1.1 instance-number 10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >