1. Step # 1
    1. Command: undebug all
    2. Description: to turn off any debugs currently enabled
  2. Step # 2
    1. Command: set db size 4096
    2. Description: to increase debug buffer
  3. Step # 3
    1. Command: clear db
    2. Description: to clear debug buffer
  4. Step # 4
    1. Command: set sa-filter <ip-address>
    2. Description: where ip-address = remote peer gateway ip address
  5. Step # 5
    1. Command: debug ike detail
    2. Description: Initiate traffic for the remote side peer
  6. Step # 6
    1. Initiate the traffic that you are interested in capturing.
  7. Step # 7
    1. Command: undebug all
    2. Description: to turn off debugs enabled, after the traffic failed
  8. Step # 8
    1. Command: get db stream
    2. Description: to get the output
  9. Source: http://kb.juniper.net/InfoCenter/index?page=content&id=KB9231