Displaying Information on Stack Zero-touch Configuration

  1. Enter the show stack zero-touch ipc command in Privileged EXEC mode to display information on zero-touch IPC statistics.
    device# show stack zero-touch ipc
    V3, , src=cc4e.246d.9e00, max_pkt_size=1468, recv 168, send 204
    Message types have callbacks:
     3: ZTP-probe                         4: ZTP-request                      
     5: unreliable-mail                   6: reliable-mail                    
     7: test ipc packets                  8: cmd-to-new-unit                  
     9: KA-new-unit                      
    
    Send message types:
       [4]=200,          [6]=4,            
    Recv message types:
       [3]=160,          [6]=8,            
    
    Statistics:
       send pkt num          :       204,    send pkt-msg num      :       204,    
       recv pkt num          :       168,    send msg num          :       204,    
       recv msg num          :       168,    pkt buf alloc         :       204,    
    
        Reliable-mail        send  success  receive   duplic  T-ms
        target MAC              2        2        0        0     2
        unrel target MAC        0                 0         
    
    Possible errors:
    
    The show stack zero-touch ipc command displays the following information.

    Output Field Description
    V3 Version number
    src Source MAC address of egress IPC packets (MAC address of this unit)
    max_pkt_size Maximum packet size allowed in network
    recv Total packets received
    send Total packets sent
    Send message types Totals for each type of message sent, displayed in the following format: [ x ] = total, where "x" represents the number of a message type from the Message types have callbacks list in the command output.
    Recv message types Totals for each type of message received, displayed in the format [ x ] = total, where "x" represents the number of a message type from the Message types have callbacks list in the command output.
    Statistics:
    send pkt num Total number of packets sent. One packet may contain multiple messages.
    recv pkt num Total number of packets received. One packet may contain multiple messages
    recv msg num Total number of received messages related to stack zero-touch or interactive-setup (See list of types in output.)
    send pkt-msg num Total number of packets containing stack zero-touch or interactive-setup messages sent
    send msg num Total number of stack zero-touch or interactive-setup messages sent
    pkt buf alloc Packet buffer allocation size
    Reliable mail Reliable-mail messages are used for essential communications, for example, to assign unit IDs or reload the system.

    Reliable-mail message statistics for specified target types:

    • send: number of reliable-mail messages sent
    • success: number of successful reliable-mail messages (sent and acknowledged)
    • receive: number of packets received
    • duplic: number of duplicate packets sent
    • T-ms: Average time in milliseconds between packet transmission and receipt of acknowledgment

    target MAC Number of reliable-mail messages sent using the MAC address as the target address. (Reliable-mail messages are re-transmitted until acknowledgment is received.)
    unrel target MAC Number of unreliable-mail messages using the MAC address as the target address. (Unreliable-mail messages are sent only once.)
    Possible errors: Warnings or errors detected, if any

  2. Enter the show stack zero-touch status command in Privileged EXEC mode to display status information for a new unit.
    In the following example, the unit cannot be discovered because it is not a clean unit (it contains configuration). The output explains that the unit can be configured using stack interactive-setup option 3.
    device# show stack zero-touch status  
    I cannot be discovered by stack zero-touch or interactive-setup option 2. reason: has stack enable configuration
    I can be discovered by stack interactive-setup option 3.
    Will clean up in 89.4 sec. Sent last keep-alive 581.1 sec ago.
    zero-touch-enable and stack enable are configured. Have done 1 probes
    ZTP has converted 0 new units to members.
    *** ZTP is going on for 0m0s. state=start. Will trigger again 3 min after done
    ZTP postponed due to topology changes: 0
    My MAC used in image copy is 748e.f8f9.636e.
    ACL #=0, ind=0
    
  3. Enter the show stack zero-touch log command in Privileged EXEC mode to display the system log for the stack zero-touch and interactive-setup processes.
    device# show stack zero-touch log   
    Note: The logs are shared by Spx and Stack ZTP/interactive-setup.
    
    8m38.7989 init_zero_touch(1) u_off=0, init_T=5178 , 1U 0P A0S0 I1N 5%
    9m41.5928 ZTP mode=1, 6 .5min T, cb_state = 0, diff = 580 s, diff=580 > 90 sec, trigger probe, , 1U 0P A0S0 I1N 3%
    9m41.8670 Send ZTP probes: ports: 1/2/1 to 1/2/6 1/3/1 to 1/3/6 PEs: , 1U 0P A0S0 I1N
    9m53.5723 ZTP 100ms: tk=29, st=1, cb_tk=29 mx_tk=30, pb, wa=2, , 1U 0P A0S0 I1N
    9m53.9720 ZTP 100ms: tk=30, st=1, cb_tk=30 mx_tk=30, ->GET_R, wa=20,, 1U 0P A0S0 I1N
    10m5.5770 ZTP 100ms: tk=50, st=2, cb_tk=19 m_tk=20, pb, wa=5, , 1U 0P A0S0 I1N
    10m5.5779 cb_r_probe. ztp_mode=1, rec#=2, load=162, inv [0] cc4e.2439.3700,  rec#=2, exist mac=cc4e.2439.1a00 <= cc4e.2439.3700, cannot overwrite, 1U 0P A0S0 I1N
    10m5.5781 cb_r_probe. ztp_mode=1, rec#=2, load=162, inv [0] cc4e.2439.1a00,  use old 0,  , 1U 0P A0S0 I1N
    10m5.5782 cb_r_probe_2nd. rec#=2, load=192, tot C=1, ztp_m=1 , 1U 0P A0S0 I1N
    10m5.9765 stk_ztp_send_id_port_acl C0 mac#=4:  636e 1a63 376b 636e , 1U 0P A0S0 I1N
    10m5.9766 C0, dr=0 rin=1 me=1/4
     #1 cc4e.2439.1a00 U3, D0: 2/1 to 2/3, D1: 2/4 mac: me=1u cb=0: mis-m=0 , 1U 0P A0S0 I1N
    10m5.9767 C0, dr=0 rin=1 me=2/4
     #2 cc4e.2439.3700 U2, D0: 2/1, D1: 2/4 mac: me=2u cb=3: mis-m=0 , 1U 0P A0S0 I1N
    10m5.9770 Send C0 len=880, 2U: 1a00 3700 res=1 Z_CMD: CB u1 cc4e.246d.9e00, cmd=0, ack=0 #rec=2, d=0 0 0 0, H=28B 875B, ztp_m=10: m=8ef8 S=28(63843) C=110, *** Err: sta28 + size 63843=63871 > 875, 1U 0P A0S0 I1N
    10m5.9771 chain 0: 
     #1 cc4e.2439.1a00 U3, D0: 2/1 to 2/3, D1: 2/4
     #2 cc4e.2439.3700 U2, D0: 2/1, D1: 2/4
    , 1U 0P A0S0 I1N
    10m5.9771 Send cleanup 20 sec, rel=1, to (chain# res): Send KA 20s rel=1, C0 1, , 1U 0P A0S0 I1N
    10m5.9771  total=2, send clean, set 20s T, , 1U 0P A0S0 I1N
    10m5.9772 ZTP 100ms: tk=51, st=2, cb_tk=20 m_tk=20, f 1 C, unsta=0, , 1U 0P A0S0 I1N
    10m17.2617 Stk ZTP clean T: mode=0 SS running=0, has SS clean-T, reconfig=2, ZTP EN,  reset: free: X C0, deinit_rel: , 1U 0P A0S0 I1N 99%
    12m26.8255 ZTP chg_cb(old=0, new=1): I new-A, ZTP m=1 en, init, , 1U 0P A1S0 I1A 7%
    12m44.3562 topo chg: during ztp reload, abort.
    , 2U 0P A1S0 I1A