Got it

Capturing Packets on a New Rock SBC

Latest reply: Dec 29, 2018 14:16:55 676 1 6 0 0

Capturing Packets on a New Rock SBC

This section uses the SX1000 as an example.

  1. Set the log level of the SBC to 8 in the web management system.
  2. Log in to the SX1000 using Telnet as the root user.

    The default password is voipgateway.

  3. Run the following commands to start packet capture:

    cp /var/bin/tcpdump /tmp/

    cd /tmp/

    chmod 777 tcpdump

    ./tcpdump -i any -s 0 -w sbc.cap

    Here, sbc.cap is a user-defined package name.

  4. Reproduce a fault and press Ctrl+C in the end.

    The sbc.cap file is generated in the /tmp directory.

    icon-note.gif NOTE:

    If you also need SBC logs, run the cp -rf /var/log/ ./ command.

  5. Compress the sbc.cap file and SBC log files.

    tar -cvzf log.tar.gz log/ sbc.cap /var/config/

  6. Use SFTP to download the log.tar.gz package from the SX1000 to the local PC.
  7. Delete the sbc.cap file from the SX1000.

    rm sbc.cap

  8. Set the log level of the SBC to 4 in the web management system.
  9. Use the Wireshark to view the sbc.cap file on the local PC.

    icon-notice.gif NOTICE:

    Use the background packet capture function only when no packet capture environment is available onsite. The packet capture duration shall be controlled within 2 minutes. Long time of packet capture consumes a large amount of device memory and may result in a device restart. During packet capture, you can open another Telnet window and run the free command to monitor the free memory. Ensure that the free memory is not less than 5 MB.

Use the background packet capture function only when no packet capture environment is available onsite
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.