监控机箱群集性能
本主题提供有关可用于监控机箱组件(如 FPC、PIC 和路由引擎)以获取运行状态、CPU 和内存等数据的选项的信息。
群集模式下的 SRX 系列分支设备不支持 jnx 机箱 MIB。但是,独立 SRX 系列分支设备支持此功能。因此,我们建议使用 SNMP 以外的选项对 SRX 系列分支设备进行机箱监控。
表 1 中提供了用于监控机箱组件的仪器。
Junos OS XML RPC |
SNMP MIB |
---|---|
|
user@host> |
会计资料 |
|
|
监控机箱群集性能
表 2 中的信息介绍了如何测量和监控集群运行状况,包括控制平面和数据平面统计信息。
Junos OS XML RPC |
SNMP MIB |
---|---|
|
不可用。实用程序 MIB 可用于通过 Junos OS 操作脚本提供此数据。有关操作脚本的详细信息。 |
冗余组监控
确保在监视组状态之前发现冗余组。获取冗余组监控信息的方法如 表3 所示。
Junos OS XML RPC |
SNMP MIB |
---|---|
RPC:<获取机箱群集状态> <rpc> <get-chassis-cluster-status> <redundancy-group>1</redundancy-group> </get-chassis-cluster-status> </rpc> |
不可用。实用程序 MIB 可用于通过 Junos OS 操作脚本提供此数据。有关操作脚本的详细信息。 |
接口统计信息
您可以使用 表 4 中列出的方法来获取接口统计信息,包括 reth 和结构接口。请注意,您可以轮询 reth 接口统计信息,然后使用该信息来确定冗余组状态,因为非活动 reth 链路每秒显示 0 个输出数据包 (output-pps)。
Junos OS XML RPC |
SNMP MIB |
---|---|
|
|
会计资料 |
|
|
服务处理单元监控
SRX3000 系列 和 SRX5000 线路具有一个或多个在服务处理卡 (SPC) 上运行的服务处理单元 (SPU)。所有基于流的服务都在 SPU 上运行。SPU 监控可跟踪 SPU 和中央点的运行状况。架构中的中心点 (CP) 具有两个基本的流量功能:负载平衡和流量识别(全局会话匹配)。中央点在会话匹配时将数据包转发到其 SPU,或者在数据包与任何现有会话不匹配时将流量分发到 SPU 进行安全处理。每个 SPC 上的机箱管理器监控 SPU 和中心点,并通过路由引擎机箱维护检测信号。在此分层监控系统中,机箱进程(机箱)是硬件故障检测的中心。默认情况下,SPU 监控处于启用状态。
使用 Junos OS XML RPC 检测进行 SPU 监控 和 SNMP MIB 检测进行 SPU 监控 中列出的方法获取用于监控数据的 SPU。
我们建议管理系统在 SPU CPU 利用率超过 85% 时设置警报,因为这会增加处理延迟。如果 CPU 利用率超过 95%,则会丢弃数据包。
用于 SPU 监控的 Junos OS XML RPC 仪器
get-flow-session-information
使用远程过程调用 (RPC) 让 SPU 监控数据,例如会话总数、当前会话数和每个节点的最大会话数。<rpc> <get-flow-session-information> <summary/> </get-flow-session-information> </rpc> <rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:junos="http://xml.juniper.net/junos/10.4D0/junos"> <multi-routing-engine-results> <multi-routing-engine-item> <re-name>node0</re-name> <flow-session-information xmlns="http://xml.juniper.net/ junos/10.4D0/junos-flow"> <flow-fpc-pic-id> on FPC4 PIC0:</flow-fpc-pic-id> </flow-session-information> <flow-session-summary-information xmlns="http:// xml.juniper.net/junos/10.4D0/junos-flow"> <active-unicast-sessions>0</active-unicast-sessions> <active-multicast-sessions>0</active-multicast-sessions> <failed-sessions>0</failed-sessions> <active-sessions>0</active-sessions> <active-session-valid>0</active-session-valid> <active-session-pending>0</active-session-pending> <active-session-invalidated>0</active-session-invalidated> <active-session-other>0</active-session-other> <max-sessions>524288</max-sessions> </flow-session-summary-information> <flow-session-information xmlns="http://xml.juniper.net/ junos/10.4D0/junos-flow"></flow-session-information> <flow-session-information xmlns="http://xml.juniper.net/ junos/10.4D0/junos-flow"> <flow-fpc-pic-id> on FPC4 PIC1:</flow-fpc-pic-id> </flow-session-information> <flow-session-summary-information xmlns="http:// xml.juniper.net/junos/10.4D0/junos-flow"> <active-unicast-sessions>0</active-unicast-sessions> <active-multicast-sessions>0</active-multicast-sessions> <failed-sessions>0</failed-sessions> <active-sessions>0</active-sessions> <active-session-valid>0</active-session-valid> <active-session-pending>0</active-session-pending> <active-session-invalidated>0</active-session-invalidated> <active-session-other>0</active-session-other> <max-sessions>1048576</max-sessions> </flow-session-summary-information> <flow-session-information xmlns="http:// xml.juniper.net/junos/10.4D0/junos-flow"> </flow-session-information> </multi-routing-engine-item> <multi-routing-engine-item> <re-name>node1</re-name> <flow-session-information xmlns="http://xml.juniper.net /junos/10.4D0/junos-flow"> <flow-fpc-pic-id> on FPC4 PIC0:</flow-fpc-pic-id> </flow-session-information> <flow-session-summary-information xmlns="http:// xml.juniper.net/junos/10.4D0/junos-flow"> <active-unicast-sessions>0</active-unicast-sessions> <active-multicast-sessions>0</active-multicast-sessions> <failed-sessions>0</failed-sessions> <active-sessions>0</active-sessions> <active-session-valid>0</active-session-valid> <active-session-pending>0</active-session-pending> <active-session-invalidated>0</active-session-invalidated> <active-session-other>0</active-session-other> <max-sessions>524288</max-sessions> </flow-session-summary-information> <flow-session-information xmlns="http:// xml.juniper.net/junos/10.4D0/junos-flow"> </flow-session-information> <flow-session-information xmlns="http:// xml.juniper.net/junos/10.4D0/junos-flow"> <flow-fpc-pic-id> on FPC4 PIC1:</flow-fpc-pic-id> </flow-session-information> <flow-session-summary-information xmlns="http:// xml.juniper.net/junos/10.4D0/junos-flow"> <active-unicast-sessions>0</active-unicast-sessions> <active-multicast-sessions>0</active-multicast-sessions> <failed-sessions>0</failed-sessions> <active-sessions>0</active-sessions> <active-session-valid>0</active-session-valid> <active-session-pending>0</active-session-pending> <active-session-invalidated>0</active-session-invalidated> <active-session-other>0</active-session-other> <max-sessions>1048576</max-sessions> </flow-session-summary-information> <flow-session-information xmlns="http://xml.juniper. net/junos/10.4D0/junos-flow"></flow-session-information> </multi-routing-engine-item> </multi-routing-engine-results> </rpc-reply>
get-performance-session-information
使用 RPC 获取 SPU 会话性能。get-spu-monitoring-information
使用 RPC 监控 SPU CPU 利用率、内存利用率、最大流会话数等。
用于 SPU 监控的 SNMP MIB 仪器
使用 jnxJsSPUM onitoring MIB 监控 SPU 数据:
jnxJsSPUMonitoringCurrentTotalSession – 返回系统级当前会话总数。
jnxJsSPUMonitoringMaxTotalSession – 返回可能的系统级最大会话数。
jnxJsSPUMonitoringObjectsTable – 返回每个节点的 SPU 利用率统计信息。
样本漫步
user@host>
show snmp mib walk
jnxJsSPUMonitoringMIB jnxJsSPUMonitoringFPCIndex.16 = 4 jnxJsSPUMonitoringFPCIndex.17 = 4 jnxJsSPUMonitoringFPCIndex.40 = 4 jnxJsSPUMonitoringFPCIndex.41 = 4 jnxJsSPUMonitoringSPUIndex.16 = 0 jnxJsSPUMonitoringSPUIndex.17 = 1 jnxJsSPUMonitoringSPUIndex.40 = 0 jnxJsSPUMonitoringSPUIndex.41 = 1 jnxJsSPUMonitoringCPUUsage.16 = 0 jnxJsSPUMonitoringCPUUsage.17 = 0 jnxJsSPUMonitoringCPUUsage.40 = 0 jnxJsSPUMonitoringCPUUsage.41 = 0 jnxJsSPUMonitoringMemoryUsage.16 = 70 jnxJsSPUMonitoringMemoryUsage.17 = 73 jnxJsSPUMonitoringMemoryUsage.40 = 70 jnxJsSPUMonitoringMemoryUsage.41 = 73 jnxJsSPUMonitoringCurrentFlowSession.16 = 0 jnxJsSPUMonitoringCurrentFlowSession.17 = 0 jnxJsSPUMonitoringCurrentFlowSession.40 = 0 jnxJsSPUMonitoringCurrentFlowSession.41 = 0 jnxJsSPUMonitoringMaxFlowSession.16 = 524288 jnxJsSPUMonitoringMaxFlowSession.17 = 1048576 jnxJsSPUMonitoringMaxFlowSession.40 = 524288 jnxJsSPUMonitoringMaxFlowSession.41 = 1048576 jnxJsSPUMonitoringCurrentCPSession.16 = 0 jnxJsSPUMonitoringCurrentCPSession.17 = 0 jnxJsSPUMonitoringCurrentCPSession.40 = 0 jnxJsSPUMonitoringCurrentCPSession.41 = 0 jnxJsSPUMonitoringMaxCPSession.16 = 2359296 jnxJsSPUMonitoringMaxCPSession.17 = 0 jnxJsSPUMonitoringMaxCPSession.40 = 2359296 jnxJsSPUMonitoringMaxCPSession.41 = 0 jnxJsSPUMonitoringNodeIndex.16 = 0 jnxJsSPUMonitoringNodeIndex.17 = 0 jnxJsSPUMonitoringNodeIndex.40 = 1 jnxJsSPUMonitoringNodeIndex.41 = 1 jnxJsSPUMonitoringNodeDescr.16 = node0 jnxJsSPUMonitoringNodeDescr.17 = node0 jnxJsSPUMonitoringNodeDescr.40 = node1 jnxJsSPUMonitoringNodeDescr.41 = node1 jnxJsSPUMonitoringCurrentTotalSession.0 = jnxJsSPUMonitoringMaxTotalSession.0 = 1572864注意:Junos OS 9.6 版之前的 Junos OS 版本仅返回此 MIB 的本地节点数据。要支持机箱群集,Junos OS 9.6 版及更高版本支持表中的 jnxJsSPUMonitoringNodeIndex 索引和 jnxJsSPUMonitoringNodeDescr 字段。因此,在机箱群集模式下,Junos OS 9.6 及更高版本将返回主节点和辅助节点的 SPU 监控数据。
SRX 系列分支机构设备具有跨群集数据核心的虚拟化数据平面。因此,它们被报告为一个索引为 0 的 SPU。
jnxJsSPUMonitoringMaxFlowSession MIB 对象显示每个节点的最大会话数。
安全功能
以下是与 SRX 系列设备上支持的安全功能相关的 Junos OS XML 远程过程调用 (RPC) 和 SNMP MIB 的摘要。
RPC 和 MIB 可能无法直接相互比较。一个可能比另一个提供更多或更少的信息。使用以下信息确定要使用的检测。
特性和功能 |
Junos OS XML RPC |
SNMP MIB |
---|---|---|
Ipsec |
|
JNX-IPSEC-MONITOR-MIB JUNIPER-JS-IPSEC-VPN JUNIPER-IPSEC-FLOW-MONITOR |
Nat |
|
JNX-JS-NAT-MIB |
筛选 |
|
JNX-JS-SCREENING-MIB |
防火墙 |
|
瞻博网络防火墙-MIB |
安全策略 |
|
JUNIPER-JS-POLICY-MIB |
Aaa |
|
JUNIPER-USER-AAA-MIB |
国内流离失所者 |
|
JUNIPER-JS-IDP-MIB |
其他统计和MIBS
SRX 系列设备还支持其他 MIB,例如 OSPF MIB 和 IP 转发 MIB。有关 SRX 系列设备上支持的其他 MIB 的详细信息,请参阅 网络管理和监控指南、 SRX1400、SRX3400和 SRX3600 服务网关的 MIB 参考以及 SRX5600和SRX5800服务网关的 MIB 参考 。
马龙
Junos OS 支持远程监控 (RMON) MIB (RFC 2819)。RMON 可用于在超过上限和下限阈值时发送 MIB 变量警报。这可用于各种 MIB 变量。一些很好的例子是接口统计信息监控和路由引擎 CPU 监控。
以下配置片段显示了用于监控群集节点 0 上的路由引擎和用于监控接口索引 2000 外的八位位组的 RMON 配置:
rmon { alarm 100 { interval 5; variable jnxOperatingCPU.9.1.0.0; sample-type absolute-value; request-type get-request; rising-threshold 90; falling-threshold 80; rising-event-index 100; falling-event-index 100; } event 100 { type log-and-trap; community petblr; } alarm 10 { interval 60; variable ifHCInOctets.2000; sample-type delta-value; request-type get-request; startup-alarm rising-alarm; rising-threshold 100000; falling-threshold 0; rising-event-index 10; falling-event-index 10; } event 10 { type log-and-trap; community test; } }
机箱群集设备运行状况监控
在瞻博网络路由器上,RMON 报警和事件提供了减少网络管理系统 (NMS) 轮询开销所需的大部分基础设施。但是,使用此方法时,您必须设置 NMS 以将特定 MIB 对象配置为 RMON 警报。这通常需要特定于设备的专业知识和监控应用程序的定制。此外,某些需要监控的MIB对象实例仅在初始化时设置或在运行时更改,无法提前配置。为了解决这些问题,运行状况监视器扩展了 RMON 报警基础架构,以便为一组选定的对象实例(针对文件系统使用情况、CPU 使用情况和内存使用情况)提供预定义的监控,并支持未知或动态对象实例(例如 Junos OS 进程)。