Collecting Bulk Statistics
The router offers an efficient data collection and transfer facility for accounting applications. The E-series router SNMP MIBs extend the accounting data collection mechanism defined in the Accounting-Control-MIB (RFC 2513) to include support for connectionless networks.
Service providers need reasonably accurate data about customers' use of networks. This data is used for billing customers and must be available at a customer's request. Accounting applications based on SNMP polling models consume significant network bandwidth because they poll large volumes of data frequently.
Unfortunately, SNMP is not well suited for gathering large volumes of data, especially over short time intervals. It is inadequate for use by accounting applications because:
- The SNMP PDU layout has a low payload-to-overhead ratio.
- Processing SNMP PDUs is expensive because objects and tables need to be sorted in lexicographic order.
The router avoids the need for continuous polling of SNMP statistics by using applications known as collectors to retrieve data. You can configure up to six collectors. The router sends collected statistics through FTP to assigned hosts, known as receivers. You must assign a primary receiver to each collector, and you can assign a secondary receiver for redundancy.
NOTE: The basic-encoding-rules (BER)encoding choice is not supported.
You can collect interface bulk statistics based on sets of virtual router groups. If sets of virtual router groups generally correspond to ISPs, you can then forward the relevant data to a particular ISP.
To configure a collector to include data from a specific list of virtual routers, you must first configure a collector and then associate a router set with it. A collector can have up to 64 virtual routers associated with it.
To collect bulk statistics for a subset of all configured subinterfaces, you can define the subinterfaces using the following syntax:
Slot/Port[.subInterfaceId]Per virtual router collection is supported on the if-stats and igmp schemas. It is supported on all interface types supported by BulkStats. Collectors modified to use per virtual router collection or configured after a collector has started have a time delay (up to the configured time in seconds) until an active collector starts again.
The maximum number of interfaces for each type of interface and line module can differ. Bulk statistics can collect these statistics when you configure the slots with their respective interfaces to the corresponding maximum values. For information about maximum values see JUNOSe Release Notes, Appendix A, System Maximums.
NOTE: Define all interface types before you map a collector to the if-stats schema to ensure that you display statistics for all configured interfaces in the first interval.
The name of the bulk statistics file that is transferred to the host when there is a collectorSequence attribute in the remote name is as follows:
fileName-z-mmddHHMM-s.sts
- fileNameName of the file, which includes sysName, sysUpTime, depending on the attributes specified
- -zReceiver index value
- mmddHHMMTimestamp when the receiver is created in month/day/hour/minute format
- -sActual sequence number
Interface Strings
Bulk statistics provides interface strings as described in Table 24.
Understanding Counter Discontinuity
Interface counter discontinuity can occur when a counter wraps or after a line module is reloaded or reset. If one of these actions occurs, applications that utilize the counters in expressions or calculations generate erroneous values and misleading graphs.
Because counters are 64 bits long, the possibility of a counter's wrapping naturally would occur so infrequently (for example, in many hundreds of years) that this scenario is not recognized as an issue.
Counter discontinuity does occur, however, when you reload or reset a line module. To indicate reloading or resetting, bulk statistics files contain a record similar to the following:
{Controller down slot 3, TUE OCT 29 2004 14:25:10.370 UTC}This record provides a mechanism by which applications can detect discontinuity events. To take advantage of this detection capability, the bulk statistics parsing entity should use the record to terminate expression or formula calculations for the indicated slot and to establish a new baseline.
Configuring Collectors and Receivers
To configure the router to collect statistics:
See Copying and Redirecting Files in Chapter 5, Managing the System, for information about adding names to the host table.
- Specify the type of interface on which you want to collect statistics.
host1(config)#bulkstats interface-type ppp collector 2- Specify the parameters for the receivers.
host1(config)#bulkstats receiver 1 remote-name js:/ftptest/bulk%s%s.sts sysName sysUpTime- Assign the data collector.
host1(config)#bulkstats collector 2- Specify the method for data collection.
host1(config)#bulkstats collector 2 collect-mode auto- Assign the primary receiver.
host1(config)#bulkstats collector 2 primary-receiver 1- (Optional) Assign the secondary receiver.
host1(config)#bulkstats collector 2 secondary-receiver 5- (Optional) Specify the time for which the system transfers data.
host1(config)#bulkstats collector 2 interval 1000- (Optional) Set the maximum size of the bulk statistics file.
host1(config)#bulkstats collector 2 max-size 20480- (Optional) Add descriptive information to the bulk statistics file.
host1(config)#bulkstats collector 2 description customer xyz- (Optional) Set the encoding scheme of the ifDescr and ifName objects.
host1(config)#bulkstats interfaces description-format common- (Optional) Set the system to retrieve bulk statistics once only.
host1(config)#bulkstats collector 2 single-interval- (Optional) Configure bulk statistics traps.
host1(config)#bulkstats traps nearly-full- (Optional) Collect bulk statistics per virtual router.
host1(config)#bulkstats virtual-router-group collector 2 routerISP3
NOTE: The bulk statistics feature supports generating files on a per interface basis.
bulkstats collector
host1(config)#bulkstats collector 2Use the no version to delete the collector. bulkstats collector collect-mode
host1(config)#bulkstats collector 2 collect-mode autoUse the no version to specify that either the user or the system will initiate transfers manually. bulkstats collector description
host1(config)#bulkstats collector 2 description customer xyzUse the no version to remove descriptive text from the bulk statistics file. bulkstats collector interval
- Use to specify the time interval in seconds for which the collector transfers data to the receivers.
- Example
host1(config)#bulkstats collector 2 interval 1000Use the no version to set this time to the default, 360 seconds (6 minutes). bulkstats collector max-size
- Use to set the maximum size of the bulk statistics file for all collectors combined. Even when you configure more than one collector, the first maximum file size configured is the combined size of all collectors.
- The maximum file size that you can configure is 20971520 bytes. However, if you do not configure a maximum size, then the maximum file size defaults to 5767168 bytes.
- Although the CLI accepts the commands, you cannot unconfigure or modify the configuration of the maximum file size until the router is rebooted.
- Example
host1(config)#bulkstats collector 2 max-size 20480Use the no version to set the size of the bulk statistics file to the default, 5767168 bytes. bulkstats collector primary-receiver
- Use to assign the primary receiver to which the system transfers data.
- The index for the receiver must match the index that you specified with the bulkstats receiver remote-name command.
- Example
host1(config)#bulkstats collector 2 primary-receiver 7Use the no version to clear the primary receiver and disable the collector. bulkstats collector secondary-receiver
- Use to assign the secondary (that is, the backup) receiver to which the system transfers data.
- The index for the receiver must match the index you specified with the bulkstats receiver remote-name command.
- Example
host1(config)#bulkstats collector 2 secondary-receiver 5Use the no version to clear the secondary receiver. bulkstats collector single-interval
host1(config)#bulkstats collector 2 single-intervalUse the no version to set the system to retrieve bulk statistics periodically, the default situation. bulkstats interfaces description-format common
- Use to set the encoding scheme of the ifDescr object that the bulk statistics application reports to the conventional industry method.
- This command provides compatibility with software that uses the industry encoding scheme.
- For more information, see Configuring Encoding Method.
- Example
host1(config)#bulkstats interfaces description-format commonUse the no version to return to the proprietary method of encoding. bulkstats interface-type
- Use to configure the interface or subinterface type on which you want to collect statistics.
- You can provide an interface specifier (location) to identify a specific interface on which you want to collect statistics.
- If you define more than one collector, you must specify a unique collector index, in the range 165535.
- The supported interface types are:
- atmCollects statistics on ATM interfaces
- atm1483Collects statistics on ATM 1483 interfaces
- ethernetCollects statistics on Ethernet interfaces
- frame-relayCollects statistics on Frame Relay interfaces
- frame-relay-subCollects statistics on Frame Relay subinterfaces
- hdlcCollects statistics on Cisco HDLC interfaces
- ipCollects statistics on IP interfaces
- mplsMajorCollects statistics on MPLS major interfaces
- mplsMinorCollects statistics on MPLS minor interfaces
- mplsL2shimCollects statistics on MPLS shim interfaces
- pppCollects statistics on PPP
- vlanCollects statistics on VLAN subinterfaces
NOTE: You cannot collect statistics on the SRP Ethernet interface.
host1(config)#bulkstats interface-type ppp 3/1 collector 2Example 2 host1(config)#bulkstats interface-type vlan 2/3:1 collector 1Example 3 host1(config)#bulkstats interface-type mplsMajor 2/3:1 collector 1Use the no version to delete the interface type from bulk statistics collection. Deletion of a particular interface type takes effect at the next collection interval. bulkstats receiver remote-name
- Use to configure the parameters for receivers.
- Bulk statistics transfers require the configuration of a remote FTP server.
- The receivers must appear in the FTP host table. The name of the host must match the name you specify with this command. The hostname is relative to the virtual router's context when you issue this command.
- When specifying the remote filename for bulk statistics, you must precede the filename with the hostname followed by the :/ characters.
- Example
host1(config)#bulkstats receiver 1 remote-name js:/ftptest/bulk%s%s.sts sysName sysUpTime
NOTE: The % variables in the remote name are replaced at runtime with the sysName and sysUpTime parameters to produce variable filenames on the remote host.
Use the no version to delete the receiver. bulkstats traps
- Use to configure bulk statistics traps.
- You must configure SNMP correctly and specify a valid trap source. Otherwise, the system will not send SNMP traps.
- Example
host1(config)#bulkstats traps nearly-fullUse the no version to disable the trap. bulkstats virtual-router-group
- Use to collect interface statistics for each virtual router.
- A collector can have a maximum of 64 virtual routers associated with it.
- Routers are identified by their assigned name or router index.
- Supported only on if-stats and igmp schemas.
- Supported on all interface types supported by the bulk statistics application.
- Collectors modified to use per virtual router collection or configured after a collector has started have a time delay until an active collector starts again.
- Example
host1(config)#bulkstats virtual-router-group collector 2 routerISP3Use the no version to prevent bulkstats from being reported for virtual router groups. Deleting All Bulkstats Configurations
Although individual bulkstats commands allow you to disable or delete a specific bulkstats parameter, the CLI also allows you to remove all bulkstats configurations from the router at one time.
no bulkstats
host1(config)#no bulkstatsMonitoring Collection Statistics
To view the parameters the router uses to collect statistics, use the following show bulkstats commands.
To include or exclude lines of output based on a text string that you specify, use the output filtering feature for show commands. For details, see Chapter 2, Command-Line Interface.
show bulkstats
- AdminStatusAdministrative status of the bulk statistics application
- OperStatusOperational status of the bulk statistics application, enabled or disabled
- Interface Description SettingMethod used to encode the ifDescr object: common, proprietary, industry-common
- File FormatEnd of the line format in bulkstats files, carriage return and line feed (CR+LF) or LF
- Current TimeCurrent system time used to compare with the collection stop/start time
- IntervalsNumber of times the bulk statistics collector has cycled through a collection
- PrimaryXfersNumber of times the bulk statistics collector has attempted a data file transfer to a primary server
- PrimaryFailsNumber of primary server transfer failures
- SecondaryXfersNumber of times the bulk statistics collector has attempted a data file transfer to a secondary server
- SecondaryFailsNumber of secondary server transfer failures
- BulkStats Collector Information:
- IndexBulk statistics collector index number
- CurrSizeCurrent size of the bulk statistics file in bytes
- MaxSizeMaximum size configured for the bulk statistics file in bytes
- IntrvlTime interval between bulk collections in seconds
- ModeHow often the collector is set up to collect statistics:
- autoAgent transfers file when interval expires
- manualNetwork management system or the user initiates transfers
- onFullAgent transfers file when it reaches the maximum size
- inProgCollector is properly configured and currently active
- notInSvcCollector has been decommissioned by a management client
- notReadyCollector does not have enough configuration information to go active
- errorConfiguration or operational error
- IndexBulk statistics collector index number
- Primary-ReceiverIndex number of the primary receiver to which the system transfers data, if defined
- Second-ReceiverIndex of the secondary receiver to which the system transfers data
- Last Transfer FailureLast time that the collector attempted to retrieve statistics and was unsuccessful
- Interval Start TimeStart of current interval of bulk collections. The collector began collecting bulk statistics at this time.
- Interval Stop TimeEnd of current interval of bulk collections.
- IndexIndex number of the schema
- SubtreeType of bulk statistics schema configured on the collector: if-stack, if-stats, or system
- CollectorIndexBulk statistics collector index number
- Create-Delete Time StatsState of final statistics collection (enabled or disabled)
- Create-Delete Interface TypeInterface type associated with final statistics collection (ATM 1483, IP, PPP)
- State
- activeSchema is properly configured and currently active
- notInSvcSchema has been decommissioned by a management client
- notReadySchema does not have enough configuration information to go active
- errorConfiguration or operational error
- IndexIndex number of the interface type entry
- TypeInterface type for which bulk statistics collection is configured
- CollectorIndexIndex number of the collector to which the interface type applies
- State
- activeInterface type is properly configured and currently active
- notInSvcInterface type has been decommissioned by a management client
- notReadyInterface type does not have enough configuration information to go active
- errorConfiguration or operational error
- IndexIndex number of the receiver
- RemoteFileNameHostname, path, and filename of the remote FTP server
- State
- activeReceiver is properly configured and currently active
- notInSvcReceiver has been decommissioned by a management client
- notReadyReceiver does not have enough configuration information to go active
- errorConfiguration or operational error
- CollectorNumber that identifies the particular data collector, in the range 165535
- Virtual-RoutersSet of virtual router names (up to 64 names)
host1#show bulkstatsAdminStatus: enabledOperStatus: enabledInterface Description Setting: industry-commonFile Format: CR+LFCurrent Time: TUE AUG 15 2002 15:54:20 UTCIntervals PrimaryXfers PrimaryFails SecondaryXfers SecondaryFails--------- ------------ ------------ -------------- --------------0 0 0 0 0BulkStats Collector Information:Index CurrSize MaxSize Intrvl Mode XferMode State----- -------- -------- ------ --------- -------- -------1 490 3670016 600 periodic manual inProg2 0 3670016 360 periodic manual notReadyIndex Primary-Receiver Second-Receiver Last Transfer Failure----- ---------------- --------------- --------------------1 1 not defined2 not defined not definedIndex Interval Start Time Interval Stop Time----- ---------------------------- -------------------------1 TUE AUG 15 2000 15:52:33 UTC TUE AUG 15 2000 16:02:33 UTC2 Not started N/ASchema Information:Index Subtree----- -------------------------------------------------1 ifStatsIndex CollectorIndex State----- -------------- --------1 1 activeIndex Create-Delete Time Stats Create-Delete Interface Types----- ------------------------ -----------------------------1 enabled IPIndex Subtree List----- -------------------------------------------------------------1 allInterface Types:Index Type CollectorIndex State----- ---------------------- -------------- --------1 Ppp 1 active6 Ethernet 1 active11 Atm1483 1 activeReceiver Information:Index RemoteFileName----- -------------------------------------------------------1 host:/upload/bulkStas.stsIndex State Status----- -------- ---------------------------------------------1 notReady Copy source does not exist or is unreachableCollector Virtual-Routers--------- ---------------33 serviceProviderABC655 defaultshow bulkstats collector description
- IndexIndex number of the bulk statistics collector
- FileDescriptionDescriptive information added to the bulk statistics file with the bulkstats collector description command
host1#show bulkstats collector descriptionIndex FileDescription----- -----------------------1 Bulk SNMP Statistics Collectionshow bulkstats collector interval
- IndexIndex number of the bulk statistics collector
- IntervalAmount of time, in seconds, that the collector transfers data to the receiver
host1#show bulkstats collector intervalIndex Interval----- --------1 360show bulkstats collector max-size
- Use to display information about the bulk statistics maximum file size configuration.
- Field descriptions
- IndexIndex number of the bulk statistics collector
- MaxSizeMaximum size of the bulk statistics file in bytes
host1#show bulkstats collector max-sizeIndex MaxSize----- ------------1 2097152show bulkstats collector transfer-mode
- Use to display information about the bulk statistics transfer mode configuration.
- Field descriptions
- auto-xferServer automatically transfers the bulk statistics files to a remote FTP server
- manual-xferServer expects the user to transfer bulk statistics files
- on-file-fullServer transfers the bulk statistics file when the file reaches its maximum size
- Primary-ReceiverReceives the bulk statistics sent by the collector
- Secondary-ReceiverServes as a backup to the primary receiver
host1#show bulkstats collector transfer-modeIndex Transfer-Mode Primary-Receiver Secondary-Receiver----- ------------- ---------------- ------------------1 auto-xfer 1 2show bulkstats interface-type
- Use to display information about the bulk statistics interface types configuration.
- Field descriptions
- Interface Types:
- IndexIndex number of the interface type entry
- TypeInterface type for which bulk statistics collection is configured
- CollectorIndexIndex of the collector to which the interface type applies
- State
- activeInterface type is properly configured and currently active
- notInSvcInterface type has been decommissioned by a management client
- notReadyInterface type does not have enough configuration information to go active
- errorConfiguration/operational error
host1#show bulkstats interface-typeInterface Types:Index Type Collector State----- ---------------------- --------- --------1 ppp 1 activeshow bulkstats receiver
- Use to display information about the remote file configuration of the bulk statistics receiver.
- Field descriptions
- IndexIndex number of the receiver
- RemoteFileNameHostname, path, and filename of the remote FTP server
- IndexIndex number of the receiver
- State
- activeReceiver is properly configured and currently active
- notInSvcReceiver has been decommissioned by a management client
- notReadyReceiver does not have enough configuration information to go active
- errorConfiguration/operational error
host1#show bulkstats receiverIndex RemoteFileName----- ----------------------------------------------1 f:/upload/bulkStas.stsIndex State Status----- -------- ---------------------------------------------1 notReady Copy source does not exist or is unreachableshow bulkstats statistics
- AdminStatusAdministrative status of the bulk statistics application
- OperStatusOperational status of the bulk statistics application
- HdwDetectsNumber of times the bulk statistics application detected a line module bulkstat collector's presence
- HdwCollectorCreatesNumber of line module collectors created
- CollectorCreateReqsNumber of times the bulk statistics application requested the creation of a line module collector
- CollectorStopReqsNumber of times the bulk statistics application requested the line module collectors to stop
- CollectorDeleteReqsNumber of times the bulk statistics application requested the deletion of a line module collector
- CollectorStartsNumber of times the bulk statistics collector has started
- CollectorIncompleteCfgsNumber of times the bulk statistics collector attempted to start a collector, but failed because the collector's configuration was incomplete
- CollectorStopFailuresNumber of times the bulk statistics collector failed during a collector stop request
- DriverErrorsNumber of bulk statistics driver errors
- FileSizeFullsNumber of times the bulk statistics application ran out of storage space
- CollectorFileNearlyFullTrapsNumber of nearly full events posted to the SNMP agent on this router
- CollectorFileFullTrapsNumber of file full events posted to the SNMP agent on this router
- IntervalsNumber of times the bulk statistics collector has cycled through a collection
- PrimaryXfersNumber of times the bulk statistics collector has attempted a data file transfer to a primary server
- PrimaryFailsNumber of primary server transfer failures
- SecondaryXfersNumber of times the bulk statistics collector has attempted a data file transfer to a secondary server
- SecondaryFailsNumber of secondary server transfer failures
- BulkStats Collector Statistics:
- IndexBulk statistics collector index
- CurrSizeCurrent size of the bulk statistics storage file in bytes
- CreateErrsNumber of bulk statistics collector create errors
- Last Transfer FailureLast time that the collector attempted to retrieve statistics and was unsuccessful
- Interval Start TimeStart of current interval or bulk collections. The collector began collecting bulk statistics at this time.
- Interval Stop TimeEnd of current interval of bulk collections
- Collector IndexBulk statistics collector index
- Slot#Slot number from which the statistics were obtained
- ReceivedNumber of records for dynamic interfaces that were reported by the specified interface
- TransferredNumber of record for dynamic interface that were written to the bulk statistics (.sts) file.
- DroppedNumber of records for dynamic interfaces that were dropped (that is, not written to the bulk statistics [.sts] file)
host1#show bulkstats statisticsAdminStatus: enabledOperStatus: enabledHdwDetects: 4HdwCollectorCreates: 8CollectorCreateReqs: 2CollectorStopReqs: 0CollectorDeleteReqs: 0CollectorStarts: 25CollectorIncompleteCfgs: 3CollectorStopFailures: 0DriverErrors: 0FileSizeFulls: 0CollectorFileNearlyFullTraps: 0CollectorFileFullTraps: 0Intervals PrimaryXfers PrimaryFails SecondaryXfers SecondaryFails--------- ------------ ------------ -------------- --------------24 18 5 0 0BulkStats Collector Statistics:Index CurrSize CreateErrs Last Transfer Failure----- -------- ---------- ----------------------------1 331 0 MON JAN 24 2001 17:21:33 UTC2 0 0Index Interval Start Time Interval Stop Time----- ---------------------------- -------------------------1 MON JAN 24 2001 19:09:33 UTC MON JAN 24 2001 19:15:33 UTC2 Not started N/ADynamic Interface Collector statistics:CollectorIndex Slot# Received Transferred Dropped-------------- ----- ---------- ----------- ----------1 1 0 0 0show bulkstats traps
- Use to display information about the bulk statistics traps configured to collect statistics.
- Field descriptions
- nearly-fullTrap will be posted to the SNMP entity on this system when the threshold is reached
- file-fullTrap will be posted to the SNMP entity on this system when the trap reaches 100%
- StateConfiguration setting: enabled, disabled
- ThresholdNearly full trap will be posted to the SNMP entity on this system when this percentage is reached
- Traps SentNumber of times this event was posted to the SNMP entity on this system
host1#show bulkstats trapsTrap Type State Threshold Traps Sent----------- ------- ---------- ----------file-full enabled N/A 0nearly-full enabled 5 0show bulkstats virtual-routers
- CollectorNumber that identifies the particular data collector, in the range 165535
- Virtual-RoutersSet of virtual router names (up to 64 names)
host1#show bulkstats virtual-routersCollector Virtual-Routers--------- ---------------33 serviceProviderABC655 defaultConfiguring Schemas
You can also set a management schema for bulk statistics. A schema is a group of attributes or counters that provide an efficient way to retrieve specific types of information about the router. The bulk statistics application supports five schema configurations: igmp, if-stack, if-stats, policy, and system.
NOTE: There are no explicit schema objects for the if-stack and system schemas.
Table 25 shows the type of data each schema retrieves.
igmp Objects
Table 26 presents igmp objects you can configure using the bulkstats schema subtree command.
if-stats Objects
Table 27 presents if-stats objects you can configure using the bulkstats schema subtree command.
All the schema if-stats objects in Table 27 apply to both layer 2 and layer 3 interfaces, except usdAcctngSpoofedPkts, which is specific to layer 3.
Defining all interface types before you map a collector to the if-stats schema ensures that you display statistics for all configured interfaces in the first interval.
You can get more accurate rate statistics by using the time-offset parameter. To use this parameter you must navigate to the if-stats subtreelist. The time-offset parameter is included in each bulk statistics interface record and is the offset from the master interval at which the record was collected.
policy Objects
Table 28 presents policy objects you can configure using the bulkstats schema subtree command.
bulkstats schema
host1(config)#bulkstats schema 4Use the no version to delete the specified schema.
bulkstats schema subtree
- if-stackRetrieves the interface and interface column configuration.
- if-statsRetrieves interface usage data on sets of interface types; using the subtreelist keyword along with the if-stats keyword lets you specify specific counters and lets you set the time-offset parameter; using the if-create-delete-time-stats keyword along with the if-stats keyword retrieves interface final statistics (interface statistics that may be lost during higher create or delete frequency) on a per-interface basis.
- igmpRetrieves IGMP usage data; using the subtreelist keyword along with the igmplist keyword lets you obtain statistics for one or more specific IGMP lists.
- policyRetrieves policy usage data.
- systemRetrieves global system and per-module statistics and information.
host1(config)#bulkstats schema 1 subtree if-stats subtreelist lower-interfaceExample 2 host1(config)#bulkstats schema 5 subtree if-stats if-create-delete-time-stats interfaceType ?atm1483 Configure bulkstats for ATM 1483 sub-interfacesip Configure bulkstats for IP interfacesmplsL2Shim Configure bulkstats for MPLS shim InterfacesmplsMajor Configure bulkstats for MPLS major InterfacesmplsMinor Configure bulkstats for MPLS minor Interfacesppp Configure bulkstats for PPP interfacesvlan Configure bulkstats for VLAN Sub-InterfacesUse to collect statistics on a specified policy, a policy type, or based on color-coded tags applied by a policy. Specify one of the following keywords:
- policy-nameCollects statistics for a specified policy
- policy-typeCollects data on input policies, local input policies, output policies, or secondary output policies
- policy-subtreelistCollects statistics based on color-coded tags applied by a policy
- You create policies using the policy-list command. See JUNOSe Policy Management Configuration Guide, Chapter 1, Managing Policies on the E-series Router.
- Example
host1(config)#bulkstats schema 4 subtree policy policy-name XMYpolicyUse the no version to delete the specified schema. Monitoring Schema Statistics
You are able to display your configuration and monitor the data generated by schemas.
show bulkstats schema
- Schema Information:
- IndexIndex number of the schema
- SubtreeType of bulk statistics schema configured on the collector: igmp, if-stack, if-stats, policy, or system
- CollectorIndexBulk statistics collector index (same as the SNMP table index)
- State
- activeSchema is properly configured and currently active
- notInServiceSchema has been decommissioned by a management client
- notReadySchema does not have enough configuration information to go active
- errorConfiguration/operational error
host1#show bulkstats schemaSchema Information:Index Subtree CollectorIndex State----- ----------------- -------------- --------1 ifStack 1 active2 system 2 activeIndex Subtree List----- -------------------------------------------------1 N/A2 N/AExample 2 host1#show bulkstats schemaSchema Information:Index Subtree CollectorIndex State----- ----------------- -------------- --------1 ifStats 1 active2 system 2 activeIndex Subtree List----- --------------------------------------------------1 ifOutErrors; ifLowerInterface; ifTimeOffset2 N/AConfiguring Interface Numbering Mode
E-series routers support the RFC 1213 interface numbering mode on bulkstats. This mode is contrasted with the default interface numbering mode.
The RFC 1213 numbering mode is based on a 32-bit contiguous integer value starting from 1 and ranging to ifNumber. This mode differs from the default interface numbering mode, which encodes a type field in the upper 8 bits of a 32-bit integer. The use of the upper 8 bits creates large gaps in the ifIndex numbering scheme.
There is no re-use of ifIndex values in RFC 1213 mode, whereas in the default interface numbering mode, ifIndex values can be re-used. In the default interface numbering mode, re-use of ifIndex values across reboots is permitted and is basically known as ifIndex re-numbering.
In RFC 1213 mode, however, the interface numbers are not re-used during a single initialization of the device and renumbering of ifIndexes occurs after a system reboot. In the default interface numbering mode, ifIndexes are persistent across system reboots and can be reused without resetting the value of sysUpTime.
In RFC 1213 mode, two parameters control the size of the ifIndex range and the total number of interfaces in the standard interface tablesmaxIfIndex and maxIfNumber. There is no such control in the default interface numbering mode.
In RFC 1213 mode, interface creations should not result in gaps in the ifIndex range. A gap that results from the deletion of an interface is acceptable because it is handled by older network management applications. The gaps are eliminated after the router is rebooted. However, in the default interface numbering mode, large gaps occur from the creation of interfaces due to the use of the upper 8 bits of the ifIndex for interface type encoding. Gaps are not eliminated after a system reboot.
In RFC 1213 mode, small gaps can occur in the creation of IP interfaces when virtual routers are used. These gaps are minimized but not eliminated when the router is rebooted.
Rather than seeing an ifIndex value of 1 and 10066329, for example, a management client would see ifIndex values of 1 and 2.
bulkstats interfaces rfc1213
host1(config)#bulkstats interfaces rfc 1213Use the no version to disable the RFC 1213 interface numbering mode on bulkstats.