When PIM-SM runs abnormally, you can run the commands described in this section in the user view to debug PIM, then view the debugging information and locate the fault.
Before enabling the debugging, you must run the terminal monitor command and the terminal debugging command in the user view to enable the information display and debugging display functions of the terminal, so that debugging information is displayed on the terminal.
Enable the debugging affects the system performance. When the debugging is complete, run the undo debugging all command immediately to disable the debugging.
Table 1 shows how to debug PIM-SM.
| Operation | Command |
|---|---|
Enable all the debuggings of PIM. |
debugging pim [ vpn-instance vpn-instance-name | all-instance ] all |
Enable the debugging of the PIM Assert. |
debugging pim [ vpn-instance vpn-instance-name | all-instance ] assert [ { send | receive } | advanced-acl-number ] * |
Enable the debugging of PIM events. |
debugging pim [ vpn-instance vpn-instance-name | all-instance ] event [ advanced-acl-number ] |
Enable the debugging of the PIM Join/Prune message. |
debugging pim [ vpn-instance vpn-instance-name | all-instance ] join-prune [ { send | receive } | advanced-acl-number ] * |
Enable the debugging of the information exchanged between PIM and MSDP. |
debugging pim [ vpn-instance vpn-instance-name | all-instance ] msdp [ advanced-acl-number ] |
Enable the debugging of the PIM neighbor. |
debugging pim [ vpn-instance vpn-instance-name | all-instance ] neighbor [ { send | receive } | basic-acl-number ] * |
Enable the debugging of the PIM register. |
debugging pim [ vpn-instance vpn-instance-name | all-instance ] register [ advanced-acl-number ] |
Enable the debugging of the PIM routing table. |
debugging pim [ vpn-instance vpn-instance-name | all-instance ] routing-table [ advanced-acl-number ] |
Enable the debugging of the PIM BSR and the debugging of PIM RP. |
debugging pim [ vpn-instance vpn-instance-name | all-instance ] rp [ send | receive ] |
Enable the debugging of the PIM State-Refresh. |
debugging pim [ vpn-instance vpn-instance-name | all-instance ] state-refresh [ { receive | send } | advanced-acl-number ] * |