================================================================================
JUNIPER JUNOS TEST OUTPUT
Models: MX, EX, QFX, SRX series
================================================================================

user@router> show interfaces terse
Interface               Admin Link Proto    Local                 Remote
ge-0/0/0                up    up
ge-0/0/0.0              up    up   inet     192.168.1.1/24
                                   inet6    2001:db8::1/64
                                            fe80::1/64
ge-0/0/1                up    down
ge-0/0/1.0              up    down inet     10.0.0.1/30
xe-0/1/0                up    up
xe-0/1/0.0              up    up   inet     172.16.0.1/24
et-0/0/0                up    up
et-0/0/0.0              up    up   inet     100.64.0.1/31
mge-0/0/0               up    up
ae0                     up    up
ae0.0                   up    up   inet     10.255.0.1/30
ae1                     down  down
lo0                     up    up
lo0.0                   up    up   inet     1.1.1.1         --> 0/0
irb                     up    up
irb.100                 up    up   inet     192.168.100.1/24
vcp-255/0/0             up    up

user@router> show interfaces extensive ge-0/0/0
Physical interface: ge-0/0/0, Enabled, Physical link is Up
  Interface index: 148, SNMP ifIndex: 507
  Link-level type: Ethernet, MTU: 1514, MRU: 1522, Speed: 1000mbps, BPDU Error: None
  Device flags   : Present Running
  Interface flags: SNMP-Traps Internal: 0x4000
  Link flags     : None
  CoS queues     : 8 supported, 8 maximum usable queues
  Current address: 00:1f:12:34:56:78, Hardware address: 00:1f:12:34:56:78
  Last flapped   : 2024-12-10 14:23:45 PST (00:23:15 ago)
  Input rate     : 1234567890 bps (1234567 pps)
  Output rate    : 987654321 bps (987654 pps)
  Active alarms  : None
  Active defects : None
  Interface transmit statistics: Enabled
  Logical interface ge-0/0/0.0 (Index 329) (SNMP ifIndex 508)
    Flags: Up SNMP-Traps 0x4000 Encapsulation: ENET2
    Input packets : 42
    Output packets: 1234567890123
    Input bytes   : 0
    Output bytes  : 9876543210987654321

user@router> show interfaces diagnostics optics ge-0/0/0
Physical interface: ge-0/0/0
    Laser bias current                        :  6.520 mA
    Laser output power                        :  0.6620 mW / -1.79 dBm
    Module temperature                        :  42 degrees C / 107 degrees F
    Module voltage                            :  3.2950 V
    Receiver signal average optical power     :  0.7200 mW / -1.43 dBm

# Optics with various signal levels for testing
user@router> show interfaces diagnostics optics xe-0/0/1
Physical interface: xe-0/0/1
    Laser bias current                        :  8.200 mA
    Laser output power                        :  0.5000 mW / -3.01 dBm
    Module temperature                        :  38 degrees C / 100 degrees F
    Module voltage                            :  3.3100 V
    Receiver signal average optical power     :  0.1000 mW / -10.00 dBm

# Optics with weak signal (warning level)
user@router> show interfaces diagnostics optics xe-0/0/2
Physical interface: xe-0/0/2
    Laser bias current                        :  12.100 mA
    Laser output power                        :  0.3000 mW / -5.23 dBm
    Module temperature                        :  45 degrees C / 113 degrees F
    Module voltage                            :  3.2800 V
    Receiver signal average optical power     :  0.0100 mW / -20.00 dBm

# Optics with critical signal (failing)
user@router> show interfaces diagnostics optics xe-0/0/3
Physical interface: xe-0/0/3
    Laser bias current                        :  25.500 mA
    Laser output power                        :  0.2000 mW / -6.99 dBm
    Module temperature                        :  65 degrees C / 149 degrees F
    Module voltage                            :  3.0500 V
    Receiver signal average optical power     :  0.0010 mW / -30.00 dBm

user@router> show bgp summary
Groups: 2 Peers: 4 Down peers: 1
Table          Tot Paths  Act Paths Suppressed    History Damp State    Pending
inet.0               
                 1234567    1234567          0          0          0          0
Peer                     AS      InPkt     OutPkt    OutQ   Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...
10.0.0.1              65001     123456     123456       0       2     2:15:23 Establ
  inet.0: 512000/524288/524288/0
192.168.1.1           65002          0          0       0       5        never Idle
172.16.0.1            65003      98765      98765       0       0    15:42:11 Establ
  inet.0: 712000/712000/712000/0
10.255.0.2            65001          5         10       0       0       14:55 Active

user@router> show ospf neighbor
Address          Interface              State     ID               Pri  Dead
192.168.1.2      ge-0/0/0.0             Full      2.2.2.2          128    38
10.0.0.2         ge-0/0/1.0             Down      3.3.3.3          128     0
172.16.0.2       xe-0/1/0.0             Full      4.4.4.4          128    35
10.255.0.2       ae0.0                  Init      5.5.5.5          128    40

user@router> show spanning-tree interface
Spanning tree interface parameters for instance 0

Interface    Port ID    Designated         Designated         Port    State  Role
                        port ID            bridge ID          Cost
ge-0/0/0.0      128:1      128:1       32768.001122334455      20000  FWD    DESG  
ge-0/0/1.0      128:2      128:5       8192.aabbccddeeff       20000  BLK    DIS   
xe-0/1/0.0      128:3      128:3       32768.001122334455      2000   FWD    DESG  
ae0.0           128:10     128:10      32768.001122334455      10    FWD    ROOT  

user@router> show ethernet-switching interfaces
Interface    State  VLAN members        Tag   Tagging  Blocking
ge-0/0/10.0  up     default             1     untagged unblocked
ge-0/0/11.0  up     vlan100             100   tagged   unblocked
xe-1/0/0.0   down   vlan200             200   tagged   blocked

user@router> show ethernet-switching table
MAC flags (S - static MAC, D - dynamic MAC, L - locally learned)

Ethernet switching table : 5 entries, 5 learned
Routing instance : default-switch
    Vlan                MAC                 MAC         Age   Logical                NH
    name                address             flags             interface              Index
    default             00:25:90:35:bb:00   D             -   ae0.0                  0
    default             ae:6e:6f:92:92:a9   D             -   xe-0/1/1.0             0
    default             48:b0:2d:00:20:61   D             -   xe-0/1/1.0             0
    default             94:2a:6f:44:74:10   D             -   xe-0/1/1.0             0
    default             fe:ed:be:ef:ca:fe   D             -   ge-0/0/0.0             0

user@router> show chassis alarms
2 alarms currently active
Alarm time               Class  Description
2024-12-11 09:15:23 PST  Major  FPC 0 PIC 0 Unresponsive
2024-12-11 09:20:45 PST  Minor  Rescue configuration is not set

user@router> show system uptime
Current time: 2024-12-11 10:30:00 PST
Time Source: LOCAL CLOCK
System booted: 2024-11-15 08:23:17 PST (3w6d 02:06 ago)
Protocols started: 2024-11-15 08:25:42 PST (3w6d 02:04 ago)
Last configured: 2024-12-11 09:45:22 PST (00:44:38 ago) by admin

user@router> show configuration interfaces ge-0/0/0 | display set
set interfaces ge-0/0/0 description "Uplink to Core"
set interfaces ge-0/0/0 mtu 9000
set interfaces ge-0/0/0 unit 0 family inet address 192.168.1.1/24

user@router> show configuration | compare rollback 1
[edit interfaces ge-0/0/0]
+   mtu 9000;
[edit protocols bgp group EXTERNAL]
-   neighbor 192.168.1.1 {
-       peer-as 65002;
-   }
!   neighbor 172.16.0.1 {
!       peer-as 65003;
!   }

user@router> show log messages | last 10
Dec 11 10:15:23  router rpd[1234]: RPD_OSPF_NBRDOWN: OSPF neighbor 10.0.0.2 (realm ospf-v2 ge-0/0/1.0 area 0.0.0.0) state changed from Full to Down due to InactivityTimer (event reason: inactivity timer expired)
Dec 11 10:16:45  router chassisd[5678]: CHASSISD_SNMP_TRAP10: SNMP trap generated: FPC 0 PIC 0 Unresponsive (Minor)
Dec 11 10:18:32  router mib2d[9012]: SNMP_TRAP_LINK_DOWN: ifIndex 508, ifAdminStatus up(1), ifOperStatus down(2), ifName ge-0/0/1
Dec 11 10:20:15  router rpd[1234]: RPD_BGP_NEIGHBOR_STATE_CHANGED: BGP peer 192.168.1.1 (External AS 65002) changed state from OpenConfirm to Established (event RecvKeepAlive)
Dec 11 10:22:00  router kernel: %KERN-3-SYSTEM_CRIT: Critical temperature threshold exceeded on CPU
Dec 11 10:23:11  router mgd[3456]: UI_COMMIT: User 'admin' requested 'commit' operation
Dec 11 10:25:08  router alarmd[7890]: Alarm set: FPC 0 offline
Dec 11 10:27:30  router eswd[2345]: ESWD_STP_STATE_CHANGE_INFO: STP state for interface ge-0/0/1.0 context id 0 changed from FORWARDING to BLOCKING
Dec 11 10:29:18  router mgd[3456]: UI_CONFIGURATION_ERROR: Commit check failed: [interfaces ge-0/0/0 unit 0]
Dec 11 10:30:00  router chassisd[5678]: CHASSISD_SNMP_TRAP_CLEAR: SNMP trap cleared: FPC 0 back online (Info)

user@router> show route protocol bgp terse
inet.0: 524288 destinations, 1234567 routes (524288 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

A Destination        P Prf   Metric 1   Metric 2  Next hop         AS path
* 0.0.0.0/0          B 170        100            >10.0.0.2         65001 I
* 8.8.8.8/32         B 170        100            >192.168.1.2      65002 65003 I
  10.10.0.0/16       B 170        200            >172.16.0.2       65003 65004 65005 I

user@router> show interfaces ge-0/0/0 | match "link|duplex|speed"
  Physical link is Up
  Link-level type: Ethernet, MTU: 9000, Speed: 1000mbps, Duplex: Full-Duplex, BPDU Error: None

user@router> show interfaces ge-0/0/1 | match "link|duplex|speed"
  Physical link is Down
  Link-level type: Ethernet, MTU: 1514, Speed: 1000mbps, Duplex: Half-Duplex, BPDU Error: None

================================================================================
SEMANTIC COLORING EXAMPLES - Context-aware rules in action
================================================================================

# Interface terse output: same words, different meanings
# up down = Problem (admin up but link down) - RED
# down down = Intentional (admin disabled) - YELLOW
# up up = Healthy - GREEN
user@router> show interfaces terse | match "ge-0/0/2|ge-0/0/3|ge-0/0/4"
ge-0/0/2                up    up              # Healthy
ge-0/0/3                up    down            # Problem! Port enabled but no link
ge-0/0/4                down  down            # Intentional - admin disabled

# BGP states with semantic meaning
# Established = good, Idle = down, Active/Connect/OpenSent = trying
user@router> show bgp summary | match "State|10\."
10.1.1.1              65001     123456     123456       0       0     2:15:23 Established
10.1.1.2              65002          0          0       0       5        never Idle
10.1.1.3              65003         50         60       0       0        1:30 Active
10.1.1.4              65004         10         12       0       0        0:45 Connect
10.1.1.5              65005         25         30       0       0        0:10 OpenSent
10.1.1.6              65006         30         35       0       0        0:05 OpenConfirm

# Error counters: context matters!
# Errors on UP interface = RED (active problem)
# Errors on DOWN interface = YELLOW (historical, less urgent)

user@router> show interfaces extensive ge-0/0/5
Physical interface: ge-0/0/5, Enabled, Physical link is Up
  Device flags   : Present Running
  Input errors:  1234
  Output errors: 567
  CRC errors:    89
  Framing errors: 12
  Drops: 456

user@router> show interfaces extensive ge-0/0/6
Physical interface: ge-0/0/6, Disabled, Physical link is Down
  Device flags   : Present
  Input errors:  9999
  Output errors: 8888
  CRC errors:    7777
  Framing errors: 6666
  Drops: 5555

# Zero errors - healthy state (gray label + green 0)
user@router> show interfaces extensive ge-0/0/9
Physical interface: ge-0/0/9, Enabled, Physical link is Up
  Device flags   : Present Running
  Input errors:  0
  Output errors: 0
  CRC errors:    0
  Framing errors: 0
  Drops: 0

# Zero traffic: suspicious on UP interface, expected on DOWN
user@router> show interfaces extensive ge-0/0/7
Physical interface: ge-0/0/7, Enabled, Physical link is Up
  Device flags   : Present Running
  Input bytes   : 0
  Output bytes  : 0
  Input packets : 0
  Output packets: 0

user@router> show interfaces extensive ge-0/0/8
Physical interface: ge-0/0/8, Disabled, Physical link is Down
  Device flags   : Present
  Input bytes   : 0
  Output bytes  : 0
  Input packets : 0
  Output packets: 0

================================================================================
UPTIME/STABILITY SPECTRUM - Bell curve coloring
Short = neutral, Medium = healthy (green peak), Too long = concerning
================================================================================

# Uptime bell curve: starts neutral, peaks green at weeks, then warns about age
user@router> show system uptime
Current time: 2024-12-11 10:30:00 PST
Time Source: LOCAL CLOCK
System booted: 2024-11-15 08:23:17 PST (3w6d 02:06 ago)
Protocols started: 2024-11-15 08:25:42 PST (3w6d 02:04 ago)
Last configured: 2024-12-11 09:45:22 PST (00:44:38 ago) by admin

# Various uptime ranges for spectrum testing:
# DARK GRAY - Just rebooted (seconds only, 00:00:XX)
Last flapped   : 2024-12-11 10:29:45 PST (00:00:15 ago)

# GRAY - Just started (minutes only, 00:XX:XX)
Last flapped   : 2024-12-11 10:25:00 PST (00:05:00 ago)
Last flapped   : 2024-12-11 09:45:00 PST (00:45:00 ago)

# LIGHT GREEN - Hours (getting stable, 01-23:XX:XX)
Last flapped   : 2024-12-11 04:30:00 PST (06:00:00 ago)
Last flapped   : 2024-12-10 12:30:00 PST (22:00:00 ago)

# GREEN - Days (stable)
Last flapped   : 2024-12-09 10:30:00 PST (2d 00:00 ago)

# DEEP GREEN - Weeks (healthy, peak of bell curve)
Last flapped   : 2024-11-27 10:30:00 PST (2w0d 00:00 ago)
System booted: 2024-11-13 08:00:00 PST (4w0d 02:30 ago)

# GREENISH-YELLOW - Months (getting long, 5-51 weeks)
System booted: 2024-09-01 08:00:00 PST (14w5d 02:30 ago)
System booted: 2024-06-15 08:00:00 PST (26w0d 02:30 ago)
System booted: 2024-01-15 08:00:00 PST (47w6d 02:30 ago)

# ORANGE - ~1 year (concerning, 52-99 weeks)
System booted: 2023-12-11 08:00:00 PST (52w0d 02:30 ago)
System booted: 2023-06-15 08:00:00 PST (78w3d 02:30 ago)

# RED - 2+ years (needs maintenance, 100+ weeks)
System booted: 2022-12-11 08:00:00 PST (104w0d 02:30 ago)
System booted: 2021-06-15 08:00:00 PST (182w3d 02:30 ago)

# BGP uptime examples
user@router> show bgp summary
Peer                     AS      InPkt     OutPkt    OutQ   Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...
10.0.0.1              65001     123456     123456       0       2     2:15:23 Establ
192.168.1.1           65002          0          0       0       5        never Idle
172.16.0.1            65003      98765      98765       0       0    15:42:11 Establ

# Dates and timestamps (informational coloring)
# Dates = cyan (informational)
# Times = spectrum coloring (hours by period, minutes/seconds by interval)
Dec 11 10:15:23  router rpd[1234]: Example syslog with date and time
2024-12-11 09:15:23 PST  Major  Alarm with ISO date

================================================================================
TIME SPECTRUM - Visual parsing of HH:MM:SS
Hours: 24 distinct colors (midnight indigo → noon yellow → evening purple)
Minutes/Seconds: 0X slate, 1X purple, 2X blue, 3X emerald, 4X amber, 5X red
================================================================================

# All 24 hours - each with unique color
00:30:00  Midnight - deep indigo
01:30:00  1am - indigo
02:30:00  2am - violet-indigo
03:30:00  3am - violet
04:30:00  4am - light violet
05:30:00  5am - lavender
06:30:00  6am (dawn) - cyan
07:30:00  7am - teal
08:30:00  8am - emerald
09:30:00  9am - green
10:30:00  10am - lime
11:30:00  11am - bright lime
12:30:00  Noon - yellow (peak)
13:30:00  1pm - amber
14:30:00  2pm - orange-amber
15:30:00  3pm - orange
16:30:00  4pm - dark orange
17:30:00  5pm - red
18:30:00  6pm - pink
19:30:00  7pm - fuchsia
20:30:00  8pm - purple
21:30:00  9pm - deep purple
22:30:00  10pm - dark purple
23:30:00  11pm - very dark purple

# Minute intervals test (all same hour 10:XX:00)
10:05:00  Minutes :05 (0X slate)
10:15:00  Minutes :15 (1X purple)
10:25:00  Minutes :25 (2X blue)
10:35:00  Minutes :35 (3X emerald)
10:45:00  Minutes :45 (4X amber)
10:55:00  Minutes :55 (5X red)

# Second intervals test (all same hour:minute 10:00:XX)
10:00:05  Seconds :05 (0X slate)
10:00:15  Seconds :15 (1X purple)
10:00:25  Seconds :25 (2X blue)
10:00:35  Seconds :35 (3X emerald)
10:00:45  Seconds :45 (4X amber)
10:00:55  Seconds :55 (5X red)
