![]() | Note: For more information, refer to the 7210 SAS-D, Dxp, K 2F1C2T, K 2F6C4T, K 3SFP+ 8C OAM and Diagnostics Guide. |
Supported on all 7210 SAS platforms as described in this document
This command creates a text description stored in the configuration file for a configuration context. The description command associates a text string with a configuration context to help identify the content in the configuration file.
The no form of the command removes the string from the configuration.
Supported on all 7210 SAS platforms as described in this document
This command administratively disables an entity. When disabled, an entity does not change, reset, or remove any configuration settings or statistics. The operational state of the entity is disabled as well as the operational state of any entities contained within. Many objects must be shut down before they may be deleted.
The no form of this command administratively enables an entity.
no shutdown
Supported on all 7210 SAS platforms as described in this document
This command specifies that a particular event or all events associated with an application is either generated or suppressed.
Events are generated by an application and contain an event number and description describing the cause of the event. Each event has a default designation which directs it to be generated or suppressed.
Events are generated with a default severity level that can be modified by using the severity-level option.
Events that are suppressed by default are typically used for debugging purposes. Events are suppressed at the time the application requests the event’s generation. No event log entry is generated regardless of the destination. While this feature can save processor resources, there may be a negative effect on the ability to troubleshoot problems if the logging entries are squelched. In reverse, indiscriminate application may cause excessive overhead.
The rate of event generation can be throttled by using the throttle parameter.
The no form of the command reverts the parameters to the default setting for events for the application or a specific event within the application. The severity, generate, suppress, and throttle options will also be reset to the initial values.
Each event has a set of default settings. To display a list of all events and the current configuration use the event-control command.
Supported on all 7210 SAS platforms as described in this document
This command specifies the primary and secondary routing preference for traffic generated for SNMP notifications and syslog messages. If the remote destination is not reachable through the routing context specified by primary route preference then the secondary routing preference will be attempted.
The no form of the command reverts to the default values.
no route-preference
Supported on all 7210 SAS platforms as described in this document
This command enables the context to configure a file ID template to be used as a destination for an event log or billing file.
This command defines the file location and characteristics that are to be used as the destination for a log event message stream or accounting/billing information. The file defined in this context is subsequently specified in the to command under log-id or accounting-policy to direct specific logging or billing source streams to the file destination.
A file ID can only be assigned to either one log-id or one accounting-policy. It cannot be reused for multiple instances. A file ID and associated file definition must exist for each log and billing file that must be stored in the file system.
A file is created when the file ID defined in this command is selected as the destination type for a specific log or accounting record. Log files are collected in a “log” directory. Accounting files are collected in an “act” directory.
The file names for a log are created by the system as summarized in Table 48.
File Type | File Name |
Log File | logllff-timestamp |
Accounting File | actaaff-timestamp |
where:
yyyy is the year (for example, 2016)
mm is the month number (for example, 12 for December)
dd is the day of the month (for example, 03 for the 3rd of the month)
hh is the hour of the day in 24 hour format (for example, 04 for 4 a.m.)
mm is the minutes (for example, 30 for 30 minutes past the hour)
ss is the number of seconds (for example, 14 for 14 seconds)
When initialized, each file will contain following:
If the process of writing to a log file fails (for example, the compact flash card is full) and a backup location is not specified or fails, the log file will not become operational even if the compact flash card is replaced. Enter either a clear log command or a shutdown/no shutdown command to reinitialize the file.
If the primary location fails (for example, the compact flash card fills up during the write process), a trap is sent and logging continues to the specified backup location. This can result in truncated files in different locations.
The no form of this command removes the file-id from the configuration. A file-id can only be removed from the configuration if the file is not the designated output for a log destination. The actual file remains on the file system.
Supported on all 7210 SAS platforms as described in this document
This command specifies the primary location where the log or billing file will be created.
When creating files, the primary location is used as long as there is available space. If no space is available, an attempt is made to delete unnecessary files that are past their retention date.
If sufficient space is not available, an attempt is made to remove the oldest to newest closed log or accounting files. After each file is deleted, the system attempts to create the new file.
A medium severity trap is issued to indicate that a compact flash is either not available or that no space is available on the specified flash and that the backup location is being used.
A high priority alarm condition is raised if none of the configured compact flash devices for this file ID are present or if there is insufficient space available. If space becomes available, the alarm condition will be cleared.
The no form of this command reverts to default settings.
Log files are created on cf1: and accounting files are created on cf1:.
![]() | Note: The usb-flash-id parameter is applicable only to platforms that support USB port and USB storage devices. |
Supported on all 7210 SAS platforms as described in this document
This command configures how often an event or accounting log is rolled over or partitioned into a new file.
An event or accounting log is actually composed of multiple individual files. The system creates a new file for the log based on the rollover time, expressed in minutes.
The retention option, expressed in hours, allows you to modify the default time to keep the file in the system. The retention time is based on the rollover time of the file.
When multiple rollover commands for a file-id are entered, the last command overwrites the previous command.
rollover 1440 retention 12
Supported on all 7210 SAS platforms as described in this document
This command configured an event filter. An event filter specifies whether to forward or drop an event or trap based on the match criteria.
Filters are configured in the filter filter-id context and applied to a log in the log-id log-id context. Only events for the configured log source streams destined to the log ID where the filter is applied are filtered.
Any changes made to an existing filter, using any of the sub-commands, are immediately applied to the destinations where the filter is applied.
The no form of the command removes the filter association from log IDs, which causes those logs to forward all events.
Supported on all 7210 SAS platforms as described in this document
This command specifies the action that is applied to events when no action is specified in the event filter entries or when an event does not match the specified criteria. When multiple default-action commands are entered, the last command overwrites the previous command.
The no form of this command reverts the default action to the default value.
default-action forward
Supported on all 7210 SAS platforms as described in this document
This command specifies a drop or forward action associated with the filter entry. If neither drop nor forward is specified, the default-action will be used for traffic that conforms to the match criteria. This could be considered a no-op filter entry used to explicitly exit a set of filter entries without modifying previous actions.
Multiple action statements entered will overwrite previous actions.
The no form of this command removes the specified action statement.
Action specified by the default-action command will apply.
Supported on all 7210 SAS platforms as described in this document
This command creates or edits an event filter entry. Multiple entries may be created using unique entry-id numbers. The -TiMOS implementation exits the filter on the first match found and executes the action in accordance with the action command.
Comparisons are performed in an ascending entry ID order. When entries are created, they should be arranged sequentially from the most explicit entry to the least explicit. Matching ceases when a packet matches an entry. The entry action is performed on the packet, either drop or forward. To be considered a match, the packet must meet all the conditions defined in the entry.
An entry may not have any match criteria defined (in which case, everything matches) but must have at least the keyword action for it to be considered complete. Entries without the action keyword will be considered incomplete and are rendered inactive.
The no form of this command removes the specified entry from the event filter. Entries removed from the event filter are immediately removed from all log-ids where the filter is applied.
Supported on all 7210 SAS platforms as described in this document
This command creates or edits match criteria for a filter entry. When the match criteria is satisfied, the action associated with the entry is executed.
If more than one match parameter (within one match statement) is specified, all the criteria must be satisfied (and functional) before the action associated with the match is executed.
Use the application command to display a list of the valid applications.
Match context can consist of multiple match parameters (application, event-number, severity, subject), but multiple match statements cannot be entered per entry.
The no form of this command removes the match criteria for the entry-id.
Supported on all 7210 SAS platforms as described in this document
This command adds a 7210 SAS application as an event filter match criterion.
A 7210 SAS application is the software entity that reports the event. Applications include IP, MPLS, OSPF, CLI, services, and so on. Only one application can be specified. The latest application command overwrites the previous command.
The no form of the command removes the application as a match criterion.
no application
Operator | Notes |
eq | equal to |
neq | not equal to |
Supported on all 7210 SAS platforms as described in this document
This command adds an application event number as a match criterion.
The event numbers uniquely identify a specific logging event within an application.
Only one number command can be entered per event filter entry. The latest number command overwrites the previous command.
The no form of the command removes the event number as a match criterion.
no event-number
Operator | Notes |
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 |
Supported on all 7210 SAS platforms as described in this document
This command specifies the log event matches for the router.
Supported on all 7210 SAS platforms as described in this document
This command adds an event severity level as a match criterion. Only one severity command can be entered per event filter entry. The latest severity command overwrites the previous command.
The no form of this command removes the severity match criterion.
no severity
Operator | Notes |
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 |
Severity Number | Severity Name |
1 | cleared |
2 | indeterminate (info) |
3 | critical |
4 | major |
5 | minor |
6 | warning |
Supported on all 7210 SAS platforms as described in this document
This command adds an event subject as a match criterion.
The subject is the entity for which the event is reported, such as a port. In this case the port-id string would be the subject. Only one subject command can be entered per event filter entry. The latest subject command overwrites the previous command.
The no form of this command removes the subject match criterion.
no subject
Operator | Notes |
eq | equal to |
neg | not equal to |
When the regexp keyword is not specified, the subject command string is matched exactly by the event filter.
Supported on all 7210 SAS platforms as described in this document
This command enables the context to configure a syslog target host that is capable of receiving selected syslog messages from this network element.
A valid syslog-id must have the target syslog host address configured. A maximum of 10 syslog IDs can be configured.
No log events are sent to a syslog target address until the syslog-id has been configured as the log destination (to) in the log-id node.
The no form of this command removes the syslog configuration.
Supported on all 7210 SAS platforms as described in this document
This command adds the syslog target host IP address to/from a syslog ID.
This parameter is mandatory. If no address is configured, syslog data cannot be forwarded to the syslog target host.
Only one address can be associated with a syslog-id. If multiple addresses are entered, the last address entered overwrites the previous address.
The same syslog target host can be used by multiple log IDs.
The no form of this command removes the syslog target host IP address.
no address
Supported on all 7210 SAS platforms as described in this document
This command configures the facility code for messages sent to the syslog target host.
Multiple syslog IDs can be created with the same target host, but each syslog ID can only have one facility code. If multiple facility codes are entered, the last facility code entered overwrites the previous facility code.
If multiple facilities need to be generated for a single syslog target host, multiple log-id entries must be created, each with its own filter criteria to select the events to be sent to the syslog target host with a specific facility code.
The no form of this command reverts to the default value.
facility local7
Numerical Code | Facility Code |
0 | kernel |
1 | user |
2 | |
3 | systemd |
4 | auth |
5 | syslogd |
6 | printer |
7 | net-news |
8 | uucp |
9 | cron |
10 | auth-priv |
11 | ftp |
12 | ntp |
13 | log-audit |
14 | log-alert |
15 | cron2 |
16 | local0 |
17 | local1 |
18 | local2 |
19 | local3 |
20 | local4 |
21 | local5 |
22 | local6 |
23 | local7 |
Supported on all 7210 SAS platforms as described in this document
This command adds the string prepended to every syslog message sent to the syslog host.
RFC 3164, The BSD syslog Protocol, allows an alphanumeric string (tag) to be prepended to the content of every log message sent to the syslog host. This alphanumeric string can, for example, be used to identify the node that generates the log entry. The software appends a colon (:) and a space to the string and it is inserted in the syslog message after the date stamp and before the syslog message content.
Only one string can be entered. If multiple strings are entered, the last string overwrites the previous string. The alphanumeric string can contain lowercase (a-z), uppercase (A-Z), and numeric (0-9) characters.
The no form of this command removes the log prefix string.
no log-prefix
Supported on all 7210 SAS platforms as described in this document
This command configures the syslog message severity level threshold. All messages with a severity level equal to or higher than the threshold are sent to the syslog target host. Severity levels are shown in Table 55.
Only a single threshold level can be specified. If multiple levels are entered, the last level entered will overwrite the previously entered commands.
The no form of this command reverts to the default value.
level info
Severity level | Numerical Severity (highest to lowest) | Configured Severity | Definition |
0 | emergency | system is unusable | |
3 | 1 | alert | action must be taken immediately |
4 | 2 | critical | critical condition |
5 | 3 | error | error condition |
6 | 4 | warning | warning condition |
5 | notice | normal but significant condition | |
1 cleared 2 indeterminate | 6 | info | informational messages |
7 | debug | debug-level messages |
Supported on all 7210 SAS platforms as described in this document
This command configures the UDP port that will be used to send syslog messages to the syslog target host.
The port configuration is needed if the syslog target host uses a port other than the standard UDP syslog port 514.
Only one port can be configured. If multiple port commands are entered, the last entered port overwrites the previously entered ports.
The no form of this command removes the value from the configuration.
no port
Supported on all 7210 SAS platforms as described in this document
This command configures an event throttling rate.
Supported on all 7210 SAS platforms as described in this document
This command enables the context to configure a group of SNMP trap receivers and their operational parameters for a specific log-id.
A group specifies the types of SNMP traps and the log ID that will receive the group of SNMP traps. A trap group must be configured for SNMP traps to be sent.
To suppress the generation of all alarms and traps, see the event-control command. To suppress alarms and traps that are sent to this log-id, see the filter command. When alarms and traps are generated, they can be directed to one or more SNMP trap groups. Logger events that can be forwarded as SNMP traps are always defined on the main event source.
The no form of this command deletes the SNMP trap group.
Supported on all 7210 SAS platforms as described in this document
This command enables the context to notify the SNMP trap server about node power failure. On power failure, the system sends dying gasp traps to the configured SNMP trap servers. Up to three SNMP trap servers can be configured to receive the trap. The traps are sent in the following order:
When this command is enabled, the node does not generate EFM OAM dying gasp message even if EFM OAM is enabled. That is, generation of an SNMP dying gasp trap is mutually exclusive to the use of an EFM OAM dying gasp message.
By default, the system generates an EFM OAM dying gasp message to remain compatible with earlier versions of the software releases. The user must explicitly configure the system to send out an SNMP trap on loss of power to the node using this command.
Typically, SNMP traps are generated only if the user configures a log to direct the system log events to SNMP. For an SNMP dying gasp trap, it is not required to do so. The DSCP value used by a SNMP dying gasp packet is AF (Assured Forwarding class, value 22).
![]() | Note:
|
The no form of this command disables generation of SNMP trap messages. It enables generation of EFM OAM dying gasp on access-uplink ports, if EFM OAM is enabled on those ports. The generation of SNMP dying gasp traps is disabled by default.
no snmp-dying-gasp
Supported on all 7210 SAS platforms as described in this document
This command adds or modifies a trap receiver and configures the operational parameters for the trap receiver. A trap reports significant events that occur on a network device such as errors or failures.
Before an SNMP trap can be issued to a trap receiver, the log-id, snmp-trap-group, and at least one trap-target must be configured.
The trap-target command is used to add or remove a trap receiver from an snmp-trap-group. The operational parameters specified in the command include the following:
A single snmp-trap-group log-id can have multiple trap receivers. Each trap receiver can have different operational parameters.
An address can be configured as a trap receiver more than once as long as a different port is used for each instance.
To prevent resource limitations, only configure a maximum of 10 trap receivers.
![]() | Note: If the same trap-target name port port parameter value is specified in more than one SNMP trap group, each trap destination should be configured with a different notify-community value. This allows a trap receiving an application, such as NMS, to reconcile a separate event sequence number stream for each 7210 SAS event log when multiple event logs are directed to the same IP address and port destination. |
The no form of this command removes the SNMP trap receiver from the SNMP trap group.
The keyword snmpv1 selects the SNMP version 1 format. When specifying snmpv1, the notify-community must be configured for the proper SNMP community string that the trap receiver expects to be present in alarms and traps messages. If the SNMP version is changed from snmpv3 to snmpv1, the notify-community parameter must be changed to reflect the community string rather than the security-name that is used by snmpv3.
The keyword snmpv2c selects the SNMP version 2c format. When specifying snmpv2c, the notify-community must be configured for the proper SNMP community string that the trap receiver expects to be present in alarms and traps messages. If the SNMP version is changed from snmpv3 to snmpv2c, the notify-community parameter must be changed to reflect the community string rather than the security-name that is used by snmpv3.
The keyword snmpv3 selects the SNMP version 3 format. When specifying snmpv3, the notify-community must be configured for the SNMP security-name. If the SNMP version is changed from snmpv1 or snmpv2c to snmpv3, the notify-community parameter must be changed to reflect the security-name rather than the community string used by snmpv1 or snmpv2c.
The following pre-existing conditions are checked before the snmpv3SecurityName is accepted.
The keyword no-auth-no-privacy specifies that no authentication and no privacy (encryption) are required.
The keyword auth-no-privacy specifies that authentication is required, but no privacy (encryption) is required. When this option is configured the security-name must be configured for authentication.
The keyword privacy specifies that both authentication and privacy (encryption) is required. When this option is configured the security-name must be configured for authentication and privacy.
If there is no route to the SNMP target address, the SNMP module saves the sequence ID of the first event that will be missed by the trap target. When the routing table changes again so that there is now a route by which the SNMP target address can be reached, the SNMP module replays (for example, retransmits) all events generated to the SNMP notification log while the target address was removed from the route table.
![]() | Note: The route table changes the convergence time so it is possible that one or more events may be lost at the beginning or end of a replay sequence. |
Supported on all 7210 SAS platforms as described in this document
This command adds an event filter policy with the log destination.
The filter command is optional. If no event filter is configured, all events, alarms, and traps generated by the source stream will be forwarded to the destination.
An event filter policy defines (limits) the events that are forwarded to the destination configured in the log-id. The event filter policy can also be used to select the alarms and traps to be forwarded to a destination snmp-trap-group.
The application of filters for debug messages is limited to application and subject only.
Accounting records cannot be filtered using the filter command.
Only one filter-id can be configured per log destination.
The no form of the command removes the specified event filter from the log-id.
no filter
Supported on all 7210 SAS platforms as described in this document
This command specifies the source stream to be sent to a log destination.
One or more source streams must be specified. The source of the data stream must be identified using the from command before you can configure the destination using the to command. The from command can identify multiple source streams in a single statement (for example, from main change debug-trace).
Only one from command may be entered for a single log-id. If multiple from commands are configured, the last command entered overwrites the previous from command.
The no form of this command removes all previously configured source streams.
Supported on all 7210 SAS platforms as described in this document
This command enables the context to configure destinations for event streams.
The log-id context is used to direct events, alarms and traps, and debug information to respective destinations.
A maximum of 10 logs can be configured.
Before an event can be associated with this log-id, the from command identifying the source of the event must be configured.
Only one destination can be specified for a log-id. The destination of an event stream can be an in-memory buffer, console, session, snmp-trap-group, syslog, or file.
Use the event-control command to suppress the generation of events, alarms, and traps for all log destinations.
An event filter policy can be applied in the log-id context to limit which events, alarms, and traps are sent to the specified log-id.
Log IDs 99 and 100 are created by the agent. Log ID 99 captures all log messages. Log ID 100 captures log messages with a severity level of major and above.
![]() | Note: Log ID 99 provides valuable information for the admin-tech file. Removing or changing the log configuration may hinder debugging capabilities. It is strongly recommended not to alter the configuration for log ID 99. |
The no form of this command deletes the log destination ID from the configuration.
Supported on all 7210 SAS platforms as described in this document
This command specifies a log ID destination. This parameter is mandatory when configuring a log destination. This command instructs the events selected for the log ID to be directed to the console. If the console is not connected, all entries are dropped.
The source of the data stream must be specified in the from command prior to configuring the destination with the to command.
The to command cannot be modified or re-entered. If the destination or maximum size of an SNMP or memory log needs to be modified, the log ID must be removed and then re-created.
Supported on all 7210 SAS platforms as described in this document
This command specifies a log ID destination. This parameter is mandatory when configuring a log destination. This command instructs the events selected for the log ID to be directed to a specified file.
The source of the data stream must be specified in the from command prior to configuring the destination with the to command.
The to command cannot be modified or re-entered. If the destination or maximum size of an SNMP or memory log needs to be modified, the log ID must be removed and then re-created.
Supported on all 7210 SAS platforms as described in this document
This command specifies a log ID destination. This parameter is mandatory when configuring a log destination. This command instructs the events selected for the log ID to be directed to a memory log. A memory file is a circular buffer. When the file is full, each new entry replaces the oldest entry in the log.
The source of the data stream must be specified in the from command prior to configuring the destination with the to command.
The to command cannot be modified or re-entered. If the destination or maximum size of an SNMP or memory log needs to be modified, the log ID must be removed and then re-created.
Supported on all 7210 SAS platforms as described in this document
This command specifies a log ID destination. This parameter is mandatory when configuring a log destination. This command instructs the events selected for the log ID to be directed to the current console or telnet session. This command is only valid for the duration of the session. When the session is terminated the log ID is removed. A log ID with a session destination is not saved in the configuration file.
The source of the data stream must be specified in the from command prior to configuring the destination with the to command.
The to command cannot be modified or re-entered. If the destination or maximum size of an SNMP or memory log needs to be modified, the log ID must be removed and then re-created.
Supported on all 7210 SAS platforms as described in this document
This command specifies the log ID destination. This parameter is mandatory when configuring a log destination. This command instructs the alarms and traps to be directed to the snmp-trap-group associated with log-id.
A local circular memory log is always maintained for SNMP notifications sent to the specified snmp-trap-group for the log-id.
The source of the data stream must be specified in the from command prior to configuring the destination with the to command.
The to command cannot be modified or re-entered. If the destination or maximum size of an SNMP or memory log needs to be modified, the log ID must be removed and then re-created.
Supported on all 7210 SAS platforms as described in this document
This command also specifies the log ID destination. This parameter is mandatory when configuring a log destination.
This command instructs the alarms and traps to be directed to a specified syslog. To remain consistent with the standards governing syslog, messages to syslog are truncated to 1k bytes.
The source of the data stream must be specified in the from command prior to configuring the destination with the to command.
The to command cannot be modified or re-entered. If the destination or maximum size of an SNMP or memory log needs to be modified, the log ID must be removed and then re-created.
Supported on all 7210 SAS platforms as described in this document
This command specifies whether the time should be displayed in the local or Coordinated Universal Time (UTC) format.
time-format utc
Supported on all 7210 SAS platforms as described in this document
This command enables an access or network accounting policy. An accounting policy defines the accounting records that are created.
Access accounting policies are policies that can be applied to one or more SAPs or access ports.
Changes made to an existing policy, using any of the sub-commands, are applied immediately to all SAPs or access ports where this policy is applied.
If an accounting policy is not specified on a SAP or an access port, accounting records are produced in accordance with the access policy designated as the default. If a default access policy is not specified, no accounting records are collected other than the records for the accounting policies that are explicitly configured.
Network accounting policies can be applied to one or more network ports. Any changes made to an existing policy, using any of the subcommands, will be applied immediately to all network ports where this policy is applied.
If no accounting policy is defined on a network port, accounting records will be produced in accordance with the default network policy as designated with the default command. If no network default policy is created, no accounting records will be collected other than the records for the accounting policies explicitly configured.
A total of 16 accounting records are available on the 7210 SAS-D. A total of 17 accounting records are available on the 7210 SAS-Dxp.
There are three types of accounting policies:
When creating accounting policies, one access, access port, and network accounting policy can be defined as default. If statistics collection is enabled on an accounting object, and no accounting policy is applied, the respective default accounting policy is used. If no default policy is defined, no statistics are collected unless a specifically defined accounting policy is applied.
The no form of this command deletes the policy from the configuration. The accounting policy cannot be removed unless it is removed from all the SAPs, network ports, or channels where the policy is applied.
Supported on all 7210 SAS platforms as described in this document
This command configures the accounting collection interval.
Supported on all 7210 SAS platforms as described in this document
This command configures the default accounting policy to be used with all SAPs that do not have an accounting policy.
If no accounting policy is defined on an access or network object, accounting records are produced in accordance with the default access policy. If no default access policy is created, then no accounting records will be collected other than the records for the accounting policies that are explicitly configured.
When creating accounting policies, one access, one access port, and one network accounting policy can be defined as default.
The record name must be specified prior to assigning an accounting policy as default.
If a policy is configured as the default policy, a no default command must be issued before a new default policy can be configured.
The no form of this command removes the default policy designation from the policy ID. The accounting policy will be removed from all access or network object ports that do not have this policy explicitly defined.
Supported on all 7210 SAS platforms as described in this document
This command adds the accounting record type to the accounting policy to be forwarded to the configured accounting file. A record name can only be used in one accounting policy. To obtain a list of all record types that can be configured, use the show log accounting-records command.
The following is an output sample for the 7210 SAS-D and 7210 SAS-Dxp.
The following is an output sample for 7210 SAS-K 2F1C2T, 7210 SAS-K 2F6C4T, or 7210 SAS-K 3SFP+ 8C.
To configure an accounting policy for access SAPs, select a service record (for example, service-ingress-octets). To change the record name to another service record, enter the record command with the new record name and it will replace the old record name.
To configure an accounting policy for access ports, select access port type records such as access-egress packets. When changing the record name to another access port record, the record command with the new record name can be entered, and it will replace the old record name.
When configuring an accounting policy for network ports, a network record should be selected. When changing the record name to another network record, the record command with the new record name can be entered and it will replace the old record name.
If the change required modifies the record from one type to another, the old record name must be removed using the no form of this command.
Only one record may be configured in a single accounting policy. For example, if an accounting-policy is configured with an access-egress-packets record, to change it to service-ingress-octets, use the no record command under the accounting-policy to remove the old record and enter the service-ingress-octets record.
![]() | Note: Collecting excessive statistics can adversely affect the CPU utilization and take up large amounts of storage space |
The no form of this command removes the record type from the policy.
Supported on all 7210 SAS platforms as described in this document
This command specifies the destination for the accounting records selected for the accounting policy.
The file is generated when the file policy is referenced. This command identifies the type of accounting file to be created. The file definition defines its characteristics.
If the to command is executed while the accounting policy is in operation, it becomes active during the next collection interval.
Supported on all 7210 SAS platforms as described in this document
This command enables the system to allocate some RAM (that is, volatile memory) as a temporary storage to write accounting records every collection-interval. The accounting records are moved from the temporary storage to the accounting file on non-volatile memory (that is, flash), when either the rollover-interval expires or the temporary storage location gets full.
![]() | Note: The accounting records held in the temporary storage is lost on a reboot (either due to loss of power or due to user action). |
Supported on all 7210 SAS platforms as described in this document
This command displays accounting policy information.
The following output is an example of accounting policy information, and Table 56 describes the output fields.
Label | Description |
Policy ID | Displays the identifying value assigned to a specific policy |
Type | Identifies the accounting record type forwarded to the configured accounting file access — Indicates that the policy is an access accounting policy network — Indicates that the policy is a network accounting policy access port — Indicates that the policy is an access port accounting policy which can be used to collect accounting records only for access ports none — Indicates no accounting record types assigned |
Def | Yes — Indicates that the policy is a default access or network policy No — Indicates that the policy is not a default access or network policy |
Admin State | Displays the administrative state of the policy Up — Indicates that the policy is administratively enabled Down — Indicates that the policy is administratively disabled |
Oper State | Displays the operational state of the policy Up — Indicates that the policy is operationally up Down — Indicates that the policy is operationally down |
Intvl | Displays the interval, in minutes, in which statistics are collected and written to their destination The default depends on the record name type |
File ID | Displays the log destination |
Record Name | Displays the accounting record name, which represents the configured record type |
Log-Memory | Yes — Indicates that temporary volatile memory is in use for this accounting policy No — Indicates that temporary volatile memory is not in use for this accounting policy |
Log-Memory Size | Displays the amount of temporary volatile memory in use for this accounting policy |
This policy is applied to | Specifies the entity where the accounting policy is applied |
Supported on all 7210 SAS platforms as described in this document
This command displays accounting policy record names.
The following outputs are examples of accounting record information, and Table 57 describes the output fields.
Label | Description |
Record # | Displays the record ID that uniquely identifies the accounting policy, expressed as a decimal integer |
Record Name | Displays the accounting record name |
Def. Interval | Displays the default interval, in minutes, in which statistics are collected and written to their destination |
Supported on all 7210 SAS platforms as described in this document
This command displays a list of all application names that can be used in event-control and filter commands.
The following output is an example of log application name information.
Supported on all 7210 SAS platforms as described in this document
This command displays event control settings for events including whether the event is suppressed or generated and the severity level for the event.
If no options are specified all events, alarms and traps are listed.
The following output is an example of event control settings information, and Table 58 describes the output fields.
Label | Description |
Application | Displays the application name |
ID# | Displays the event ID number within the application L ID# An “L” in front of an ID represents event types that do not generate an associated SNMP notification Most events do generate a notification, only the exceptions are marked with a preceding “L” |
Event Name | Displays the event name |
P | CL — The event has a cleared severity/priority CR — The event has critical severity/priority IN — The event has indeterminate severity/priority MA — The event has major severity/priority MI — The event has minor severity/priority WA — The event has warning severity/priority |
g/s | gen — The event will be generated/logged by event control sup — The event will be suppressed/dropped by event control thr — Specifies that throttling is enabled |
Logged | Displays the number of events logged/generated |
Dropped | Displays the number of events dropped/suppressed |
Supported on all 7210 SAS platforms as described in this document
This command displays event file log information.
If no command line parameters are specified, a summary output of all event log files is displayed.
Specifying a file ID displays detailed information about the event file log.
The following output is an example of event file log information, and Table 59 describes the output fields.
Label | Description |
file-id | Displays the log file ID |
rollover | Displays the rollover time for the log file, which is how long in between partitioning of the file into a new file |
retention | Displays the retention time for the file in the system, which is how long the file should be retained in the file system |
admin location | The primary flash device specified for the file location none — indicates no specific flash device was specified |
oper location | Displays the actual flash device on which the log file exists |
file-id | Displays the log file ID |
rollover | Displays the rollover time for the log file, which is how long in between partitioning of the file into a new file |
retention | Displays the retention time for the file in the system, which is how long the file should be retained in the file system |
file name | Displays the complete path name of the file associated with the log ID |
expired | Indicates whether or not the retention period for this file has passed |
state | in progress — Indicates the current open log file complete — Indicates the old log file |
Supported on all 7210 SAS platforms as described in this document
This command displays event log filter policy information.
The following outputs are examples of log filter policy information, and the associated tables describe the output fields.
Label | Description |
Filter Id | Displays the event log filter ID |
Applied | no — The event log filter is not currently in use by a log ID yes — The event log filter is currently in use by a log ID |
Default Action | drop — The default action for the event log filter is to drop events not matching filter entries forward — The default action for the event log filter is to forward events not matching filter entries |
Description | Displays the description string for the filter ID |
Label | Description |
Entry-id | Displays the event log filter entry ID |
Action | default — There is no explicit action for the event log filter entry and the filter’s default action is used on matching events drop — The action for the event log filter entry is to drop matching events forward — The action for the event log filter entry is to forward matching events |
Description (Entry-id) | Displays the description string for the event log filter entry |
Application | Displays the event log filter entry application match criterion |
Event Number | Displays the event log filter entry application event ID match criterion |
Severity | cleared — The log event filter entry application event severity cleared match criterion indeterminate — The log event filter entry application event severity indeterminate match criterion critical — The log event filter entry application event severity critical match criterion major — The log event filter entry application event severity cleared match criterion minor — The log event filter entry application event severity minor match criterion warning — The log event filter entry application event severity warning match criterion |
Subject | Displays the event log filter entry application event ID subject string match criterion |
Router | Displays the event log filter entry application event ID router router-instance string match criterion |
Operator | There is an operator field for each match criteria: application, event number, severity, and subject equal — Matches when equal to the match criterion greaterThanOrEqual — Matches when greater than or equal to the match criterion lessThan — Matches when less than the match criterion lessThanOrEqual — Matches when less than or equal to the match criterion notEqual — Matches when not equal to the match criterion off — No operator specified for the match criterion |
Supported on all 7210 SAS platforms as described in this document
This command displays log collector statistics for the main, security, change, and debug log collectors.
The following output is an example of log collector information, and Table 62 describes the output fields.
Label | Description |
<Collector Name> | Main — The main event stream contains the events that are not explicitly directed to any other event stream Security — The security stream contains all events that affect attempts to breach system security such as failed login attempts, attempts to access MIB tables to which the user is not granted access or attempts to enter a branch of the CLI to which access has not been granted Change — The change event stream contains all events that directly affect the configuration or operation of this node Debug — The debug-trace stream contains all messages in the debug stream |
Dest. Log ID | Specifies the event log stream destination |
Filter ID | The value is the index to the entry which defines the filter to be applied to this log's source event stream to limit the events output to this log's destination If the value is 0, then all events in the source log are forwarded to the destination |
Status | Enabled — Logging is enabled Disabled — Logging is disabled |
Dest. Type | Console — A log created with the console type destination displays events to the physical console device Events are displayed to the console screen whether a user is logged in to the console or not A user logged in to the console device or connected to the CLI via a remote telnet or SSH session can also create a log with a destination type of 'session'. Events are displayed to the session device until the user logs off. When the user logs off, the 'session' type log is deleted Syslog — All selected log events are sent to the syslog address SNMP traps — Events defined as SNMP traps are sent to the configured SNMP trap destinations and are logged in NOTIFICATION-LOG-MIB tables File — All selected log events will be directed to a file on one of the compact flash disks Memory — All selected log events will be directed to an in-memory storage area |
Supported on all 7210 SAS platforms as described in this document
This command displays an event log summary with settings and statistics or the contents of a specific log file, SNMP log, or memory log.
If the command is specified with no command line options, a summary of the defined system logs is displayed. The summary includes log settings and statistics.
If the log ID of a memory, SNMP, or file event log is specified, the command displays the contents of the log. Additional command line options control what and how the contents are displayed.
Contents of logs with console, session, or syslog destinations cannot be displayed. The actual events can only be viewed on the receiving syslog or console device.
If the to-seq number is not provided, the log contents to the end of the log is displayed unless the count parameter is present in which case the number of entries displayed is limited by the count.
The following outputs are examples of event log information, and the associated tables describe the output fields.
Label | Description |
Log Id | Displays the event log destination |
Source | no — The event log filter is not currently in use by a log ID yes — The event log filter is currently in use by a log ID |
Filter ID | Displays the index to the entry which defines the filter to be applied to this log's source event stream to limit the events output to this log's destination. If the value is 0, then all events in the source log are forwarded to the destination. |
Admin State | Up — Indicates that the administrative state is up Down — Indicates that the administrative state is down |
Oper State | Up — Indicates that the operational state is up Down — Indicates that the operational state is down |
Logged | Displays the number of events that have been sent to the log source(s) that were forwarded to the log destination |
Dropped | Displays the number of events that have been sent to the log source(s) that were not forwarded to the log destination because they were filtered out by the log filter |
Dest. Type | Console — All selected log events are directed to the system console. If the console is not connected, all entries are dropped. Syslog — All selected log events are sent to the syslog address SNMP traps — Events defined as SNMP traps are sent to the configured SNMP trap destinations and are logged in NOTIFICATION-LOG-MIB tables File — All selected log events will be directed to a file on one of the compact flash disks Memory — All selected log events will be directed to an in-memory storage area |
Dest ID | Displays the event log stream destination |
Size | Displays the allocated memory size for the log |
Time format | Displays the type of timestamp format for events sent to logs where log ID destination is either syslog or file. When the time format is UTC, timestamps are written using the Coordinated Universal Time value. When the time format is local, timestamps are written in the system's local time. |
Supported on all 7210 SAS platforms as described in this document
This command displays SNMP trap group configuration information.
The following output is an example of SNMP trap group configuration information, and Table 64 describes the output fields.
Label | Description |
Log-ID | Displays the log destination ID for an event stream |
Address | Displays the IP address of the trap receiver |
Port | Displays the destination UDP port used for sending traps to the destination, expressed as a decimal integer |
Version | Specifies the SNMP version format to use for traps sent to the trap receiver. Valid values are snmpv1, snmpv2c, snmpv3. |
Community | Displays the community string required by snmpv1 or snmpv2c trap receivers |
Security-Level | Displays the required authentication and privacy levels required to access the views on this node |
Supported on all 7210 SAS platforms as described in this document
This command displays syslog event log destination summary information or detailed information about a specific syslog destination.
The following output is an example of syslog event log destination information, and Table 65 describes the output fields.
Label | Description |
Syslog ID | Displays the syslog ID number for the syslog destination |
IP Address | Displays the IP address of the syslog target host |
Port | Displays the configured UDP port number used when sending syslog messages |
Facility | Displays the facility code for messages sent to the syslog target host |
Severity Level | Displays the syslog message severity level threshold |
Below Level Dropped | Displays a count of messages not sent to the syslog collector target because the severity level of the message was above the configured severity The higher the level, the lower the severity |
Prefix Present | Yes — A log prefix was prepended to the syslog message sent to the syslog host No — A log prefix was not prepended to the syslog message sent to the syslog host |
Description | Displays a text description stored in the configuration file for a configuration context |
LogPrefix | Displays the prefix string prepended to the syslog message |
Log-id | Displays the destination to which events are directed |
Supported on all 7210 SAS platforms as described in this document
This command reinitializes the specified memory/file event log ID. Memory logs are reinitialized and cleared of contents. File logs are manually rolled over by this command.
This command is only applicable to event logs that are directed to file destinations and memory destinations.
SNMP, syslog, and console/session logs are not affected by this command.