是否可以在瞻博网络设备中按给定的开始时间到结束时间查询接口统计字节?

网络工程 转变 联网
2022-03-02 05:45:27

我可以查询一个接口细节:

admin@Juniper-EX# run show interfaces ge-0/0/1 detail
Physical interface: ge-0/0/1, Enabled, Physical link is Down
  Interface index: 131, SNMP ifIndex: 504, Generation: 134
  Link-level type: Ethernet, MTU: 1514, MRU: 0, Speed: Auto, Duplex: Auto,
  BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled,
  Source filtering: Disabled, Flow control: Enabled, Auto-negotiation: Enabled,
  Remote fault: Online, Media type: Copper,
  IEEE 802.3az Energy Efficient Ethernet: Disabled
  Device flags   : Present Running Down
  Interface flags: Hardware-Down SNMP-Traps Internal: 0x4000
  Link flags     : None
  CoS queues     : 8 supported, 8 maximum usable queues
  Hold-times     : Up 0 ms, Down 0 ms
  Current address: ec:13:db:25:e3:44, Hardware address: ec:13:db:25:e3:44
  Last flapped   : 2019-06-05 00:45:40 CST (18w5d 17:46 ago)
  Statistics last cleared: Never
  Traffic statistics:
   Input  bytes  :          54149759267                    0 bps
   Output bytes  :           6951255777                    0 bps
   Input  packets:             51845731                    0 pps
   Output packets:             36329994                    0 pps
   IPv6 transit statistics:
    Input  bytes  :                   0
    Output bytes  :                   0
    Input  packets:                   0
    Output packets:                   0
  Egress queues: 8 supported, 4 in use
  Queue counters:       Queued packets  Transmitted packets      Dropped packets
    0                                0             36329994                    0
    1                                0                    0                    0
    5                                0                    0                    0
    7                                0                    0                    0
  Queue number:         Mapped forwarding classes
    0                   best-effort
    1                   assured-forwarding
    5                   expedited-forwarding
    7                   network-control
  Active alarms  : LINK
  Active defects : LINK
  Interface transmit statistics: Disabled

  Logical interface ge-0/0/1.0 (Index 75) (SNMP ifIndex 505) (Generation 141)
    Flags: Device-Down SNMP-Traps 0x4000 Encapsulation: ENET2
    Traffic statistics:
     Input  bytes  :                    0
     Output bytes  :                    0
     Input  packets:                    0
     Output packets:                    0
    Local statistics:
     Input  bytes  :                    0
     Output bytes  :                    0
     Input  packets:                    0
     Output packets:                    0
    Transit statistics:
     Input  bytes  :                    0                    0 bps
     Output bytes  :                    0                    0 bps
     Input  packets:                    0                    0 pps
     Output packets:                    0                    0 pps
    Protocol eth-switch, Generation: 160, Route table: 0
      Flags: None

您会看到那里记录了流量统计信息:

Traffic statistics:
   Input  bytes  :          54149759267                    0 bps
   Output bytes  :           6951255777                    0 bps
   Input  packets:             51845731                    0 pps
   Output packets:             36329994                    0 pps

是否可以查询从开始时间到结束时间的接口统计字节数?

1个回答

这不是(瞻博网络)路由器或几乎任何(企业)路由器所具有的功能。它可以生成一般统计数据,但对于更详细的统计数据,例如给定时间范围内的信息,您应该部署一些专门用于此功能的软件。

不幸的是,这里的软件推荐不是主题,所以如果您正在寻找特定的软件来执行此操作,您应该在https://softwarerecs.stackexchange.com上询问它,或者您可以尝试在聊天中询问。