This chapter provides information about configuring event and accounting logs in the system.
Topics in this chapter include:
The two primary types of logging supported in the OS are event logging and accounting logs.
Event logging controls the generation, dissemination and recording of system events for monitoring status and troubleshooting faults within the system. The OS groups events into three major categories or event sources:
The following are events within the OS and have the following characteristics:
Event control assigns the severity for each application event and whether the event should be generated or suppressed. The severity numbers and severity names supported in the OS conform to ITU standards M.3100 X.733 & X.21 and are listed in Table 55.
Severity Number | Severity Name |
1 | cleared |
2 | indeterminate (info) |
3 | critical |
4 | major |
5 | minor |
6 | warning |
Events that are suppressed by event control will not generate any event log entries. Event control maintains a count of the number of events generated (logged) and dropped (suppressed) for each application event. The severity of an application event can be configured in event control.
An event log within the OS associates the event sources with logging destinations. Examples of logging destinations include, the console session, a specific telnet or SSH session, memory logs, file destinations, SNMP trap groups and syslog destinations. A log filter policy can be associated with the event log to control which events will be logged in the event log based on combinations of application, severity, event ID range, VRF ID, and the subject of the event.
The OS accounting logs collect comprehensive accounting statistics to support a variety of billing models. The routers collect accounting data on services and network ports on a per-service class basis. In addition to gathering information critical for service billing, accounting records can be analyzed to provide insight about customer service trends for potential service revenue opportunities. Accounting statistics on network ports can be used to track link utilization and network traffic pattern trends. This information is valuable for traffic engineering and capacity planning within the network core.
Accounting statistics are collected according to the parameters defined within the context of an accounting policy. Accounting policies are applied to customer Service Access Points (SAPs) and network ports. Accounting statistics are collected by counters for individual service queues defined on the customer’s SAP or by the counters within forwarding class (FC) queues defined on the network ports.
The type of record defined within the accounting policy determines where a policy is applied, what statistics are collected and time interval at which to collect statistics.
The supported destination for an accounting log is a compact flash system device. Accounting data is stored within a standard directory structure on the device in compressed XML format. It is recommended that accounting logs be configured on the cf1: or cf2: devices only. Accounting log files are not recommended on the cf3: device (cf3: is intended to be used primarily for software images and configuration related files).
Both event logs and accounting logs use a common mechanism for referencing a log destination. Routers support the following log destinations:
Only a single log destination can be associated with an event log or with an accounting log. An event log can be associated with multiple event sources, but it can only have a single log destination.
A file destination is the only type of log destination that can be configured for an accounting log.
Sending events to a console destination means the message will be sent to the system console The console device can be used as an event log destination.
A session destination is a temporary log destination which directs entries to the active telnet or SSH session for the duration of the session. When the session is terminated, for example, when the user logs out, the “to session” configuration is removed. Event logs configured with a session destination are stored in the configuration file but the “to session” part is not stored. Event logs can direct log entries to the session destination.
A memory log is a circular buffer. When the log is full, the oldest entry in the log is replaced with the new entry. When a memory log is created, the specific number of entries it can hold can be specified, otherwise it will assume a default size. An event log can send entries to a memory log destination.
Log files can be used by both event logs and accounting logs and are stored on the compact flash devices in the file system. It is recommended that event and accounting logs be configured on the cf1: or cf2: devices only. Log files are not recommended on the cf3: device (cf3: is intended to be used primarily for software images and configuration related files).
A log file is identified with a single log file ID, but a log file will generally be composed of a number individual files in the file system. A log file is configured with a rollover parameter, expressed in minutes, which represents the length of time an individual log file should be written to before a new file is created for the relevant log file ID. The rollover time is checked only when an update to the log is performed. Thus, complying to this rule is subject to the incoming rate of the data being logged. For example, if the rate is very low, the actual rollover time may be longer than the configured value.
The retention time for a log file specifies the amount of time the file should be retained on the system based on the creation date and time of the file.
When a log file is created, only the compact flash device for the log file is specified. Log files are created in specific subdirectories with standardized names depending on the type of information stored in the log file.
Event log files are always created in the \log directory on the specified compact flash device. The naming convention for event log files is:
log eeff-timestamp
where:
ee is the event log ID
ff is the log file destination ID
timestamp is the timestamp when the file is created in the form of yyyymmdd-hhmmss where:
yyyy is the four-digit year (for example, 2007)
mm is the two digit number representing the month (for example, 12 for December)
dd is the two digit number representing the day of the month (for example, 03 for the 3rd of the month)
hh is the two digit hour in a 24-hour clock (for example, 04 for 4 a.m.)
mm is the two digit minute (for example, 30 for 30 minutes past the hour)
ss is the two digit second (for example, 14 for 14)
Accounting log files are created in the \act-collect directory on a compact flash device (specifically cf1 or cf2). The naming convention for accounting log files is nearly the same as for log files except the prefix act is used instead of the prefix log. The naming convention for accounting logs is:
act aaff-timestamp.xml.gz
where:
aa is the accounting policy ID
ff is the log file destination ID
timestamp is the timestamp when the file is created in the form of yyyymmdd-hhmmss where:
yyyy is the four-digit year (for example, 2007)
mm is the two digit number representing the month (for example, 12 for December)
dd is the two digit number representing the day of the month (for example, 03 for the 3rd of the month)
hh is the two digit hour in a 24-hour clock (for example, 04 for 4 a.m.)
mm is the two digit minute (for example, 30 for 30 minutes past the hour)
ss is the two digit second (for example, 14 for 14 seconds)
Accounting logs are .xml files created in a compressed format and have a .gz extension.
The \act-collect directory is where active accounting logs are written. When an accounting log is rolled over, the active file is closed and archived in the \act directory before a new active accounting log file created in \act-collect.
An event log can be configured to send events to SNMP trap receivers by specifying an SNMP trap group destination.
An SNMP trap group can have multiple trap targets. Each trap target can have different operational parameters.
A trap destination has the following properties:
For SNMP traps that will be sent out-of-band through the Management Ethernet port on the SF/CPM, the source IP address of the trap is the IP interface address defined on the Management Ethernet port. For SNMP traps that will be sent in-band, the source IP address of the trap is the system IP address of the router.
Each trap target destination of a trap group receives the identical sequence of events as defined by the log ID and the associated sources and log filter applied.
An event log can be configured to send events to one syslog destination. Syslog destinations have the following properties:
Because syslog uses eight severity levels whereas the router uses six internal severity levels, the severity levels are mapped to syslog severities. Table 56 displays the severity level mappings to syslog severities.
SR OS Event Severity | Syslog Severity Numerical Code | Syslog Severity name | Syslog Severity Definition |
-- | 0 | emergency | System is unusable |
critical (3) | 1 | alert | Action must be taken immediately |
major (4) | 2 | critical | Critical conditions |
minor (5) | 3 | error | Error conditions |
warning (6) | 4 | warning | Warning conditions |
-- | 5 | notice | Normal but significant condition |
cleared (1) indeterminate (2) | 6 | info | Informational messages |
-- | 7 | debug | Debug-level messages |
The general format of an SR OS syslog message is as follows (see RFC3164). The ‘<’ and ‘>’ are informational delimiters to make reading and understanding the format easier and they do not appear in the actual syslog message except as part of the ‘PRI’:
<PRI> <HEADER><MSG>
where:
where:
Examples (from different nodes):
default log-prefix (TMNX):
no log-prefix:
log-prefix "test":
Event logs are the means of recording system generated events for later analysis. Events are messages generated by the system by applications or processes within the router.
Figure 12 depicts a function block diagram of event logging.
In Figure 12, the event sources are the main categories of events that feed the log manager.
Examples of applications within the system include IP, MPLS, OSPF, CLI, services, etc. The following example displays a partial sample of the show log applications command output which displays all applications.
Event control pre-processes the events generated by applications before the event is passed into the main event stream. Event control assigns a severity to application events and can either forward the event to the main event source or suppress the event. Suppressed events are counted in event control, but these events will not generate log entries as it never reaches the log manager.
Simple event throttling is another method of event control and is configured similarly to the generation and suppression options. See Simple Logger Event Throttling on page 415.
Events are assigned a default severity level in the system, but the application event severities can be changed by the user.
Application events contain an event number and description that explains why the event is generated. The event number is unique within an application, but the number can be duplicated in other applications.
The following example, generated by querying event control for application generated events, displays a partial list of event numbers and names.
Events that are forwarded by event control are sent to the log manager. The log manager manages the event logs in the system and the relationships between the log sources, event logs and log destinations, and log filter policies.
An event log has the following properties:
The log manager uses event filter policies to allow fine control over which events are forwarded or dropped based on various criteria. Like other filter policies in the SR OS, filter policies have a default action. The default actions are either:
Filter policies also include a number of filter policy entries that are identified with an entry ID and define specific match criteria and a forward or drop action for the match criteria.
Each entry contains a combination of matching criteria that define the application, event number, router, severity, and subject conditions. The entry’s action determines how the packets should be treated if they have met the match criteria.
Entries are evaluated in order from the lowest to the highest entry ID. The first matching event is subject to the forward or drop action for that entry.
Valid operators are displayed in Table 57:
Operator | Description |
eq | equal to |
neq | not equal to |
lt | less than |
lte | less than or equal to |
gt | greater than |
gte | greater than or equal to |
A match criteria entry can include combinations of:
Log entries that are forwarded to a destination are formatted in a way appropriate for the specific destination whether it be recorded to a file or sent as an SNMP trap, but log event entries have common elements or properties. All application generated events have the following properties:
The general format for an event in an event log with either a memory, console or file destination is as follows.
The following is an event log example:
The specific elements that compose the general format are described in Table 58.
Label | Description |
nnnn | The log entry sequence number. |
YYYY/MM/DD | The UTC date stamp for the log entry. YYYY — Year MM — Month DD — Date |
HH:MM:SS.SS | The UTC time stamp for the event. HH — Hours (24 hour format) MM — Minutes SS.SS — Seconds |
<severity> | The severity level name of the event. CLEARED — A cleared event (severity number 1). INFO — An indeterminate/informational severity event (severity level 2). CRITICAL — A critical severity event (severity level 3). MAJOR — A major severity event (severity level 4). MINOR — A minor severity event (severity level 5). WARNING — A warning severity event (severity 6). |
<application> | The application generating the log message. |
<event_id> | The application’s event ID number for the event. |
<router> | The router name representing the VRF-ID that generated the event. |
<subject> | The subject/affected object for the event. |
<message> | A text description of the event. |
Simple event throttling provides a mechanism to protect event receivers from being overloaded when a scenario causes many events to be generated in a very short period of time. A throttling rate, # events/# seconds, can be configured. Specific event types can be configured to be throttled. Once the throttling event limit is exceeded in a throttling interval, any further events of that type cause the dropped events counter to be incremented. Dropped events counts are displayed by the show>log>event-control context. Events are dropped before being sent to one of the logger event collector tasks. There is no record of the details of the dropped events and therefore no way to retrieve event history data lost by this throttling method.
A particular event type can be generated by multiple managed objects within the system. At the point this throttling method is applied the logger application has no information about the managed object that generated the event and cannot distinguish between events generated by object “A” from events generated by object “B”. If the events have the same event-id, they are throttled regardless of the managed object that generated them. It also does not know which events may eventually be logged to destination log-id <n> from events that will be logged to destination log-id <m>.
Throttle rate applies commonly to all event types. It is not configurable for a specific event-type.
A timer task checks for events dropped by throttling when the throttle interval expires. If any events have been dropped, a TIMETRA-SYSTEM-MIB::tmnxTrapDropped notification is sent.
Log 99 is a pre-configured memory-based log which logs events from the main event source (not security, debug, etc.). Log 99 exists by default.
The following example displays the log 99 configuration.
The Event Handling System (EHS) is a tool that allows operator-defined behavior to be configured on the router. EHS adds user-controlled programmatic exception handling by allowing a CLI script to be executed upon the detection of a log event (the 'trigger'). Regexp style expression matching is available on various fields in the log event to give flexibility in the trigger definition.
EHS handler objects are used to tie together:
EHS, along with CRON, makes use of the generic SR OS CLI script-control functions for scripts. Any command available in CLI (with some limited exceptions such as 'candidate' commands) can be executed in a script as the result of an EHS handler being triggered.
The following figure illustrates the relationships between the different configurable objects used by EHS (and CRON).
Complex rules can be configured to match on log events as a trigger for an EHS handler.
When a log event is generated in SR OS it will be subject to discard via suppression and throttling (config>log>event-control) before it is evaluated as a trigger for EHS:
EHS will trigger on log events that are dropped by user configured log filters that are assigned to individual logs (config>log>filter). The EHS event trigger logic occurs before the distribution of log event streams into individual logs.
Before an accounting policy can be created a target log file must be created to collect the accounting records. The files are stored in system memory on compact flash (cf1: or cf2:) in a compressed (tar) XML format and can be retrieved using FTP or SCP.
A file ID can only be assigned to either one event log ID or one accounting log.
An accounting policy must define a record name and collection interval. Only one record name can be configured per accounting policy. Also, a record name can only be used in one accounting policy.
The record name, sub-record types, and default collection period for service and network accounting policies are shown in Table 59. Table 61, Table 62, and Table 63 provide field descriptions.
Record Name | Sub-Record Types | Accounting Object | Platform | Default Collection Period (minutes) |
service-ingress-octets | sio | SAP | All | 5 |
service-egress-octets | seo | SAP | All | 5 |
service-ingress-packets | sip | SAP | All | 5 |
service-egress-packets | sep | SAP | All | 5 |
network-ingress-octets | nio | Network port | All | 15 |
network-egress-octets | neo | Network port | All | 15 |
network-egress-packets | nep | Network port | All | 15 |
network-ingress-packets | nio | Network port | All | 15 |
compact-service-ingress-octets | ctSio | SAP | All | 5 |
combined-service-ingress | cmSipo | SAP | All | 5 |
combined-network-ing-egr-octets | cmNio & cmNeo | Network port | All | 15 |
combined-service-ing-egr-octets | cmSio & cmSeo | SAP | All | 5 |
complete-network-ingr-egr | cpNipo & cpNepo | Network port | All | 15 |
complete-service-ingress-egress | cpSipo & cpSepo | SAP | All | 5 |
combined-sdp-ingress-egress | cmSdpipo and cmSdpepo | SDP and SDP binding | All | 5 |
complete-sdp-ingress-egress | cmSdpipo, cmSdpepo, cpSdpipo and cpSdpepo | SDP and SDP binding | All | 5 |
complete-subscriber-ingress-egress | cpSBipo & cpSBepo | Subscriber profile | 7750 SR | 5 |
aa-protocol | aaProt | AA ISA Group | 7750 SR | 15 |
aa-application | aaApp | AA ISA Group | 7750 SR | 15 |
aa-app-group | aaAppGrp | AA ISA Group | 7750 SR | 15 |
aa-subscriber-protocol | aaSubProt | Special study AA subscriber | 7750 SR | 15 |
aa-subscriber-application | aaSubApp | Special study AA subscriber | 7750 SR | 15 |
custom-record-aa-sub | aaSubCustom | AA subscriber | All | 15 |
combined-mpls-lsp-egress | mplsLspEgr | LSP | All | 5 |
combined-mpls-lsp-ingress | mplsLspIn | LSP | All | 5 |
saa | saa png trc hop | SAA or SAA test | All | 5 |
complete-ethernet-port | enet | Ethernet port | All | 15 |
When creating accounting policies, one service accounting policy and one network accounting policy can be defined as default. If statistics collection is enabled on a SAP or network port and no accounting policy is applied, then the respective default policy is used. If no default policy is defined, then no statistics are collected unless a specifically defined accounting policy is applied.
Each accounting record name is composed of one or more sub-records which is in turn composed of multiple fields.
Refer to the Application Assurance Statistics Fields Generated per Record table Integrated Services Adapter Guide for fields names for Application Assurance records.
The availability of the records listed in Table 60 depends on your specific platform functionality and user configuration.
Record Name | Sub-Record | Field | Field Description |
Service-ingress-octets (sio) (**) | sio | svc | SvcId |
sap | SapId | ||
qid | QueueId | ||
hoo | OfferedHiPrioOctets | ||
hod | DroppedHiPrioOctets | ||
loo | LowOctetsOffered | ||
lod | LowOctetsDropped | ||
uco | UncoloredOctetsOffered | ||
iof | InProfileOctetsForwarded | ||
oof | OutOfProfileOctetsForwarded | ||
Service-egress-octets (seo) (**) | seo | svc | SvcId |
sap | SapId | ||
qid | QueueId | ||
iof | InProfileOctetsForwarded | ||
iod | InProfileOctetsDropped | ||
oof | OutOfProfileOctetsForwarded | ||
ood | OutOfProfileOctetsDropped | ||
Service-ingress-packets (sip) (*) (**) | sip | svc | SvcId |
sap | SapId | ||
qid | QueueId | ||
hpo | HighPktsOffered | ||
hpd | HighPktsDropped | ||
lpo | LowPktsOffered | ||
lpd | LowPktsDropped | ||
ucp | UncoloredPacketsOffered | ||
ipf | InProfilePktsForwarded | ||
opf | OutOfProfilePktsForwarded | ||
Service-egress-packets (sep) (*) (**) | sep | svc | SvcId |
sap | SapId | ||
qid | QueueId | ||
ipf | InProfilePktsForwarded | ||
ipd | InProfilePktsDropped | ||
opf | OutOfProfilePktsForwarded | ||
opd | OutOfProfilePktsDropped | ||
Network-ingress-octets (nio) | nio | port | PortId |
qid | QueueId | ||
iof | InProfileOctetsForwarded | ||
iod | InProfileOctetsDropped | ||
oof | OutOfProfileOctetsForwarded | ||
ood | OutOfProfileOctetsDropped | ||
Network-egress-octets (neo) | neo | port | PortId |
qid | QueueId | ||
iof | InProfileOctetsForwarded | ||
iod | InProfileOctetsDropped | ||
oof | OutOfProfileOctetsForwarded | ||
ood | OutOfProfileOctetsDropped | ||
Network-ingress-packets (nip) | nip | port | PortId |
qid | QueueId | ||
ipf | InProfilePktsForwarded | ||
ipd | InProfilePktsDropped | ||
opf | OutOfProfilePktsForwarded | ||
opd | OutOfProfilePktsDropped | ||
Network Egress Packets (nep) | nep | port | PortId |
qid | QueueId | ||
ipf | InProfilePktsForwarded | ||
ipd | InProfilePktsDropped | ||
opf | OutOfProfilePktsForwarded | ||
opd | OutOfProfilePktsDropped | ||
Compact-service-ingress-octets (ctSio) | ctSio | svc | SvcId |
sap | SapId | ||
qid | QueueId | ||
hoo | OfferedHiPrioOctets | ||
hod | DroppedHiPrioOctets | ||
loo | LowOctetsOffered | ||
lod | LowOctetsDropped | ||
uco | UncoloredOctetsOffered | ||
Combined-service-ingress (cmSipo) | cmSipo | svc | SvcId |
sap | SapId | ||
qid | QueueId | ||
hpo | HighPktsOffered | ||
hpd | HighPktsDropped | ||
lpo | LowPktsOffered | ||
lpd | LowPktsDropped | ||
ucp | UncoloredPacketsOffered | ||
hoo | OfferedHiPrioOctets | ||
hod | DroppedHiPrioOctets | ||
loo | LowOctetsOffered | ||
lod | LowOctetsDropped | ||
uco | UncoloredOctetsOffered | ||
ipf | InProfilePktsForwarded | ||
opf | OutOfProfilePktsForwarded | ||
iof | InProfileOctetsForwarded | ||
oof | OutOfProfileOctetsForwarded | ||
Combined-network-ing-egr-octets (cmNio & cmNeo ) | cmNio | port | PortId |
qid | QueueId | ||
iof | InProfileOctetsForwarded | ||
iod | InProfileOctetsDropped | ||
oof | OutOfProfileOctetsForwarded | ||
ood | OutOfProfileOctetsDropped | ||
cmNeo | port | PortId | |
qid | QueueId | ||
iof | InProfileOctetsForwarded | ||
iod | InProfileOctetsDropped | ||
oof | OutOfProfileOctetsForwarded | ||
ood | OutOfProfileOctetsDropped | ||
Combined-service-ingr-egr-octets (cmSio & CmSeo) | cmSio | svc | SvcId |
sap | SapId | ||
qid | QueueId | ||
hoo | OfferedHiPrioOctets | ||
hod | DroppedHiPrioOctets | ||
loo | LowOctetsOffered | ||
lod | LowOctetsDropped | ||
uco | UncoloredOctetsOffered | ||
iof | InProfileOctetsForwarded | ||
oof | OutOfProfileOctetsForwarded | ||
cmSeo | svc | SvcId | |
sap | SapId | ||
qid | QueueId | ||
iof | InProfileOctetsForwarded | ||
iod | InProfileOctetsDropped | ||
oof | OutOfProfileOctetsForwarded | ||
ood | OutOfProfileOctetsDropped | ||
Complete-network-ingr-egr (cpNipo & cpNepo) | cpNipo | port | PortId |
qid | QueueId | ||
ipf | InProfilePktsForwarded | ||
ipd | InProfilePktsDropped | ||
opf | OutOfProfilePktsForwarded | ||
opd | OutOfProfilePktsDropped | ||
iof | InProfileOctetsForwarded | ||
iod | InProfileOctetsDropped | ||
oof | OutOfProfileOctetsForwarded | ||
ood | OutOfProfileOctetsDropped | ||
cpNepo | port | PortId | |
qid | QueueId | ||
ipf | InProfilePktsForwarded | ||
ipd | InProfilePktsDropped | ||
opf | OutOfProfilePktsForwarded | ||
opd | OutOfProfilePktsDropped | ||
iof | InProfileOctetsForwarded | ||
iod | InProfileOctetsDropped | ||
oof | OutOfProfileOctetsForwarded | ||
ood | OutOfProfileOctetsDropped | ||
Complete-service-ingress-egress (cpSipo & cpSepo) | cpSipo | svc | SvcId |
sap | SapId | ||
pid | PolicerId | ||
hpo | HighPktsOffered | ||
hpd | HighPktsDropped | ||
lpo | LowPktsOffered | ||
lpd | LowPktsDropped | ||
ucp | UncoloredPacketsOffered | ||
hoo | OfferedHiPrioOctets | ||
hod | DroppedHiPrioOctets | ||
loo | LowOctetsOffered | ||
lod | LowOctetsDropped | ||
uco | UncoloredOctetsOffered | ||
apo | AllPacketsOffered | ||
aoo | AllOctetsOffered | ||
apd | AllPacketsDropped | ||
aod | AllOctetsDropped | ||
apf | AllPacketsForwarded | ||
aof | AllOctetsForwarded | ||
ipd | InProfilePktsDropped | ||
iod | InProfileOctetsDropped | ||
opd | OutOfProfilePktsDropped | ||
ood | OutOfProfileOctetsDropped | ||
hpf | HighPriorityPacketsForwarded | ||
hof | HighPriorityOctetsForwarded | ||
Complete-service-ingress-egress (cpSipo & cpSepo) (Continued) | cpSipo (Continued) | lpf | LowPriorityPacketsForwarded |
lof | LowPriorityOctesForwarded | ||
ipf | InProfilePktsForwarded | ||
opf | OutOfProfilePktsForwarded | ||
iof | InProfileOctetsForwarded | ||
oof | OutOfProfileOctetsForwarded | ||
cpSepo | svc | SvcId | |
sap | SapId | ||
qid | QueueId | ||
ipf | InProfilePktsForwarded | ||
ipd | InProfilePktsDropped | ||
opf | OutOfProfilePktsForwarded | ||
opd | OutOfProfilePktsDropped | ||
iof | InProfileOctetsForwarded | ||
iod | InProfileOctetsDropped | ||
oof | OutOfProfileOctetsForwarded | ||
ood | OutOfProfileOctetsDropped | ||
Complete-sdp-ingress-egress (cpSdpipo & cpSdpepo) | cpSdpipo | sdp | SdpID |
tpf | TotalPacketsForwarded | ||
tpd | TotalPacketsDropped | ||
tof | TotalOctetsForwarded | ||
tod | TotalOctetsDropped | ||
cpSdpepo | sdp | SdpID | |
tpd | TotalPacketsDropped | ||
tod | TotalOctetsDropped | ||
Combined-sdp-ingress-egress (cmSdpipo & cmSdpepo) | cmSdpipo | svc | SvcID |
sdp | SdpID | ||
tpf | TotalPacketsForwarded | ||
tpd | TotalPacketsDropped | ||
tof | TotalOctetsForwarded | ||
tod | TotalOctetsDropped | ||
cmSdpepo | svc | SvcID | |
sdp | SdpID | ||
tpf | TotalPacketsForwarded | ||
tof | TotalOctetsForwarded | ||
Complete-sdp-ingress-egress (cmSdpipo & cmsdpepo) (cpSdpip & cpSdpepo) | cmSdpipo | svc | SvcID |
sdp | SdpID | ||
tpf | TotalPacketsForwarded | ||
tpd | TotalPacketsDropped | ||
tof | TotalOctetsForwarded | ||
tod | TotalOctetsDropped | ||
cmSdpepo | svc | SvcID | |
sdp | SdpID | ||
tpf | TotalPacketsForwarded | ||
tof | TotalOctetsForwarded | ||
cpSdpipo | sdp | SdpID | |
tpf | TotalPacketsForwarded | ||
tpd | TotalPacketsDropped | ||
tof | TotalOctetsForwarded | ||
tod | TotalOctetsDropped | ||
cpSdpepo | sdp | SdpID | |
tpf | TotalPacketsForwarded | ||
tof | TotalOctetsForwarded | ||
Complete-subscriber-ingress-egress (cpSBipo & cpSBepo) (cpSBipooc & cpSBepooc) *** | SubscriberInformation | subId | SubscriberId |
subProfile | SubscriberProfile | ||
Sla- Information**** | svc | SvcId | |
sap | SapId | ||
slaProfile | SlaProfile | ||
Complete-subscriber-ingress-egress (cpSBipo & cpSBepo) (cpSBipooc & cpSBepooc) *** (Continued) | cpSBipo | qid | QueueId |
hpo | HighPktsOffered **** | ||
hpd | HighPktsDropped | ||
lpo | LowPktsOffered **** | ||
lpd | LowPktsDropped | ||
ucp | UncolouredPacketsOffered | ||
hoo | OfferedHiPrioOctets **** | ||
hod | DroppedHiPrioOctets | ||
loo | LowOctetsOffered **** | ||
lod | LowOctetsDropped | ||
apo | AllPktsOffered **** | ||
aoo | AllOctetsOffered **** | ||
uco | UncolouredOctetsOffered | ||
ipf | InProfilePktsForwarded | ||
opf | OutOfProfilePktsForwarded | ||
iof | InProfileOctetsForwarded | ||
oof | OutOfProfileOctetsForwarded | ||
v4pf | IPv4PktsForwarded | ||
v6pf | IPv6PktsForwarded | ||
v4pd | IPv4PktsDropped | ||
v6pd | IPv6PktsDropped | ||
v4of | IPv4OctetsForwarded | ||
v6of | IPv6OctetsForwarded | ||
v4od | IPv4OctetsDropped | ||
v6od | IPv6OctetsDropped | ||
Complete-subscriber-ingress-egress (cpSBipo & cpSBepo) (cpSBipooc & cpSBepooc) *** (Continued) | cpSBepo | qid | QueueId |
ipf | InProfilePktsForwarded | ||
ipd | InProfilePktsDropped | ||
opf | OutOfProfilePktsForwarded | ||
opd | OutOfProfilePktsDropped | ||
iof | InProfileOctetsForwarded | ||
iod | InProfileOctetsDropped | ||
oof | OutOfProfileOctetsForwarded | ||
ood | OutOfProfileOctetsDropped | ||
v4pf | IPv4PktsForwarded | ||
v6pf | IPv6PktsForwarded | ||
v4pd | IPv4PktsDropped | ||
v6pd | IPv6PktsDropped | ||
v4of | IPv4OctetsForwarded | ||
v6of | IPv6OctetsForwarded | ||
v4od | IPv4OctetsDropped | ||
v6od | IPv6OctetsDropped | ||
Complete-subscriber-ingress-egress (cpSBipo & cpSBepo) (cpSBipooc & cpSBepooc) *** (Continued) | cpSBipooc *** | cid | OverrideCounterId |
apo | AllPktsOffered | ||
hpd | HighPktsDropped | ||
lpd | LowPktsDropped | ||
aoo | AllOctetsOffered | ||
hod | DroppedHiPrioOctets | ||
lod | LowOctetsDropped | ||
ipf | InProfilePktsForwarded | ||
opf | OutOfProfilePktsForwarded | ||
iof | InProfileOctetsForwarded | ||
oof | OutOfProfileOctetsForwarded | ||
ucp | UncolouredPacketsOffered | ||
uco | UncolouredOctetsOffered | ||
cpSBepooc *** | cid | OverrideCounterId | |
ipf | InProfilePktsForwarded | ||
ipd | InProfilePktsDropped | ||
ofp | OutOfProfilePktsForwarded | ||
opd | OutOfProfilePktsDropped | ||
ipd | InProfileOctetsForwarded | ||
iod | InProfileOctetsDropped | ||
oof | OutOfProfileOctetsForwarded | ||
ood | OutOfProfileOctetsDropped | ||
saa | saa | tmd | TestMode |
own | OwnerName | ||
tst | TestName | ||
png | PingRun subrecord | ||
rid | RunIndex | ||
trr | TestRunResult | ||
mnr | MinRtt | ||
mxr | MaxRtt | ||
avr | AverageRtt | ||
rss | RttSumOfSquares | ||
pbr | ProbeResponses | ||
spb | SentProbes | ||
mnt | MinOutTt | ||
mxt | MaxOutTt | ||
avt | AverageOutTt | ||
tss | OutTtSumOfSquares | ||
mni | MinInTt | ||
mxi | MaxInTt | ||
avi | AverageInTt | ||
iss | InTtSumOfSqrs | ||
ojt | OutJitter | ||
ijt | InJitter | ||
rjt | RtJitter | ||
prt | ProbeTimeouts | ||
prf | ProbeFailures | ||
saa (Continued) | trc | rid | RunIndex |
trr | TestRunResult | ||
lgp | LastGoodProbe | ||
hop | hop | TraceHop | |
hid | HopIndex | ||
mnr | MinRtt | ||
mxr | MaxRtt | ||
avr | AverageRtt | ||
rss | RttSumOfSquares | ||
pbr | ProbeResponses | ||
spb | SentProbes | ||
mnt | MinOutTt | ||
mxt | MaxOutTt | ||
avt | AverageOutTt | ||
tss | OutTtSumOfSquares | ||
mni | MinInTt | ||
mxi | MaxInTt | ||
avi | AverageInTt | ||
iss | InTtSumOfSqrs | ||
ojt | OutJitter | ||
ijt | InJitter | ||
rjt | RtJitter | ||
prt | ProbeTimeouts | ||
prf | ProbeFailures | ||
tat | TraceAddressType | ||
tav | TraceAddressValue | ||
Complete-ethernet-port (enet) | enet | port | PortId |
to | EtherStatsOctets | ||
tp | EtherStatsPkts | ||
de | EtherStatsDropEvents | ||
tbcp | EtherStatsBroadcastPkts | ||
mcp | EtherStatsMulticastPkts | ||
cae | EtherStatsCRCAlignErrors | ||
up | EtherStatsUndersizePkts | ||
op | EtherStatsOversizePkts | ||
fgm | EtherStatsFragments | ||
jab | EtherStatsJabbers | ||
col | EtherStatsCollisions | ||
p64o | EtherStatsPkts64Octets | ||
p127o | EtherStatsPkts65to127Octets | ||
p255o | EtherStatsPkts128to255Octets | ||
p511o | EtherStatsPkts256to511Octets | ||
p1023o | EtherStatsPkts512to1023Octets | ||
p1518o | EtherStatsPkts1024to1518Octets | ||
po1518o | EtherStatsPktsOver1518Octets | ||
ae | Dot3StatsAlignmentErrors | ||
fe | Dot3StatsFCSErrors | ||
scf | Dot3StatsSingleCollisionFrames | ||
mcf | Dot3StatsMultipleCollisionFrames | ||
sqe | Dot3StatsSQETestErrors | ||
dt | Dot3StatsDeferredTransmissions | ||
Complete-ethernet-port (enet) (Continued) | enet (Continued) | lcc | Dot3StatsLateCollisions |
exc | Dot3StatsExcessiveCollisions | ||
imt | Dot3StatsInternalMacTransmitErrors | ||
cse | Dot3StatsCarrierSenseErrors | ||
ftl | Dot3StatsFrameTooLongs | ||
imre | Dot3StatsInternalMacReceiveErrors | ||
se | Dot3StatsSymbolErrors | ||
ipf | Dot3InPauseFrames | ||
opf | Dot3OutPauseFrames |
(*) For a SAP in AAL5 SDU mode, packet counters refer to the number of SDU.
(*) For a SAP in N-to-1 cell mode, packet counters refer to the number of cells.
(**) The number of octets in an ATM sap excludes the Header Error Control (HEC) byte, thus meaning each packet/cell has only 52 bytes instead of the usual 53.
(***) If override counters on the HSMDA are configured (see the Quality of Service Guide).
(****) Not used to identify stats from HSMDA due to MDA architecture. If the statistics are from HSMDA: apo, aoo else lpo/hpo, loo/hoo.
Table 61, Table 62, and Table 63 provide field descriptions.
Field | Field Description |
pid | PolicerId |
statmode | PolicerStatMode |
aod | AllOctetsDropped |
aof | AllOctetsForwarded |
aoo | AllOctetsOffered |
apd | AllPacketsDropped |
apf | AllPacketsForwarded |
apo | AllPacketsOffered |
hod | HighPriorityOctetsDropped |
hof | HighPriorityOctetsForwarded |
hoo | HighPriorityOctetsOffered |
hpd | HighPriorityPacketsDropped |
hpf | HighPriorityPacketsForwarded |
hpo | HighPriorityPacketsOffered |
iod | InProfileOctetsDropped |
iof | InProfileOctetsForwarded |
ioo | InProfileOctetsOffered |
ipd | InProfilePacketsDropped |
ipf | InProfilePacketsForwarded |
ipo | InProfilePacketsOffered |
lod | LowPriorityOctetsDropped |
lof | LowPriorityOctetsForwarded |
loo | LowPriorityOctetsOffered |
lpd | LowPriorityPacketsDropped |
lpf | LowPriorityPacketsForwarded |
lpo | LowPriorityPacketsOffered |
opd | OutOfProfilePacketsDropped |
opf | OutOfProfilePacketsForwarded |
opo | OutOfProfilePacketsOffered |
ood | OutOfProfileOctetsDropped |
oof | OutOfProfileOctetsForwarded |
ooo | OutOfProfileOctetsOffered |
uco | UncoloredOctetsOffered |
v4po | IPv4PktsOffered * |
v4oo | IPv4OctetsOffered * |
v6po | IPv6PktsOffered * |
v6oo | IPv6OctetsOffered * |
v4pf | IPv4PktsForwarded * |
v6pf | IPv6PktsForwarded * |
v4pd | IPv4PktsDropped * |
v6pd | IPv6PktsDropped * |
v4of | IPv4OctetsForwarded * |
v6of | IPv6OctetsForwarded * |
v4od | IPv4OctetsDropped * |
v6od | IPv6OctetsDropped * |
xpd | ExceedProfilePktsDropped |
xod | ExceedProfileOctetsDropped |
xpf | ExceedProfilePktsForwarded |
xof | ExceedProfileOctetsForwarded |
* Enhanced Subscriber Management (ESM) only.
Record Name | Description |
qgone | PortQueueGroupOctetsNetworkEgress |
qgosi | PortQueueGroupOctetsServiceIngress |
qgose | PortQueueGroupOctetsServiceEgress |
qgpne | PortQueueGroupPacketsNetworkEgress |
qgpsi | PortQueueGroupPacketsServiceIngress |
qgpse | PortQueueGroupPacketsServiceEgress |
fpqgosi | ForwardingPlaneQueueGroupOctetsServiceIngress |
fpqgoni | ForwardingPlaneQueueGroupOctetsNetworkIngress |
fpqgpsi | ForwardingPlaneQueueGroupPacketsServiceIngress |
fpqgpni | ForwardingPlaneQueueGroupPacketsNetworkIngress |
Field | Field Description |
data port | Port (used for port based Queue Groups) |
member-port | LAGMemberPort (used for port based Queue Groups) |
data slot | Slot (used for Forwarding Plane based Queue Groups) |
forwarding-plane | ForwardingPlane (used for Forwarding Plane based Queue Groups) |
queue-group | QueueGroupName |
instance | QueueGroupInstance |
qid | QueueId |
pid | PolicerId |
statmode | PolicerStatMode |
aod...ucp | same as above |
When a policy has been created and applied to a service or network port, the accounting file is stored on the compact flash in a compressed XML file format. The router creates two directories on the compact flash to store the files. The following output displays a directory named act-collect that holds accounting files that are open and actively collecting statistics. The directory named act stores the files that have been closed and are awaiting retrieval.
Accounting files always have the prefix act followed by the accounting policy ID, log ID and timestamp. The accounting log file naming and log file destination properties like rollover and retention are discussed in more detail in Log Files on page 404.
The router has ample resources to support large scale accounting policy deployments. When preparing for an accounting policy deployment, verify that data collection, file rollover, and file retention intervals are properly tuned for the amount of statistics to be collected.
If the accounting policy collection interval is too brief there may be insufficient time to store the data from all the services within the specified interval. If that is the case, some records may be lost or incomplete. Interval time, record types, and number of services using an accounting policy are all factors that should be considered when implementing accounting policies.
The rollover and retention intervals on the log files and the frequency of file retrieval must also be considered when designing accounting policy deployments. The amount of data stored depends on the type of record collected, the number of services that are collecting statistics, and the collection interval that is used. For example, with a 1GB CF and using the default collection interval, the system is expected to hold 48 hours worth of billing information.
SR OS on the 7750 SR platform has support for volume accounting and time-based accounting concepts, and provides an extra level of intelligence at the network element level in order to provide service models such as “prepaid access” in a scalable manner. This means that the network element gathers and stores per-subscriber accounting information and compares it with “pre-defined” quotas. Once a quota is exceeded, the pre-defined action (such as re-direction to a web portal or disconnect) is applied.
Custom records can be used to decrease accounting messaging overhead as follows:
Users can define a collection of fields that make up a record. These records can be assigned to an accounting policy. These are user-defined records rather than being limited to pre-defined record types. The operator can select what queues and the counters within these queues that need to be collected. Refer to the predefined records containing a given field for XML field name of a custom record field.
A record is only generated if a significant change has occurred to the fields being written in a given the record. This capability applies to both ingress and egress records regardless on the method of delivery (such as RADIUS and XML). The capability also applies to Application Assurance records; however without an ability to specify different significant change values and per-field scope (for example, all fields of a custom record are collected if any activity was reported against any of the statistics that are part of the custom record).
The custom-record command in the config>log>accounting-policy context provide the flexibility to reduce the volume of data generated, network operators can define the record that needs to be collected. This can eliminate queues or selected counters within these queues that are not relevant for billing.
ESM-based accounting applies to the 7750 SR only.
Record headers including information such as service-ID, SAP-ID, etc., will always be generated.
The custom-record command in the config>subscr-mgmt>radius-accounting-policy context provide the flexibility to include individual counters in RADIUS accounting messages. See the CLI tree for commands and syntax. This functionality applies to the 7750 SR only.
Another way to decrease accounting messaging related to overhead is to include only “active” objects in a periodical reporting. An “active object” in this context is an object which has seen a “significant” change in corresponding counters. A significant change is defined in terms of a cumulative value (the sum of all reference counters).
This concept is applicable to all methods used for gathering accounting information, such as an XML file and RADIUS, as well as to all applications using accounting, such as service-acct, ESM-acct, and Application Assurance.
Accounting records are reported at the periodical intervals. This periodic reporting is extended with an internal filter which omits periodical updates for objects whose counter change experienced lower changes than a defined (configurable) threshold.
Specific to RADIUS accounting the significant-change command does not affect ACCT-STOP messages. ACCT-STOP messages will be always sent, regardless the amount of change of the corresponding host.
For Application Assurance records, a significant change of 1 in any field of a customized record (send a record if any field changed) is supported. When configured, if any statistic field records activity, an accounting record containing all fields will be collected.
For ESM RADIUS accounting, an accounting stop message is sent when:
A similar concept is also used for XML accounting. In case the accounted object is deleted or changed, the latest information will be written in the XML file with a “final” tag indication in the record header. This functionality applies to the 7750 SR only.
This feature allows the operator to report on protocol/application/app-group volume usage per forwarding class by adding a bitmap information representing the observed FC in the XML accounting files. In case the accounted object is deleted or changed, the latest information will be written in the XML file with a “final” tag indication in the record header.
This section describes logging configuration caveats.