Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving captured packets #78

Open
sumitsinha01 opened this issue Nov 27, 2023 · 3 comments
Open

Saving captured packets #78

sumitsinha01 opened this issue Nov 27, 2023 · 3 comments

Comments

@sumitsinha01
Copy link

Hi,

Is there a way to save the captured packets and download the pcap file?

Don't see any method in capture.py file to do that.

@dhruvinsh
Copy link

@sumitsinha01 were you able to find the answer for this?

@1201110211
Copy link

1201110211 commented Jun 7, 2024

""" Method Ixnetwork.SaveCapture

Executes the saveCapture operation on the server.
This command saves the current capture data to the specified directory.
The IxNetwork model allows for multiple method Signatures with the same name while python does not.

DEPRECATED saveCapture(Arg1=string, async_operation=bool)
---------------------------------------------------------
- Arg1 (str): Directory for saving the captures
- async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete.

DEPRECATED saveCapture(Arg1=string, Arg2=string, async_operation=bool)
----------------------------------------------------------------------
- Arg1 (str): Directory for saving the captures
- Arg2 (str): Suffix used for naming the capture files
- async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete.

Raises
------
- NotFoundError: The requested resource does not exist on the server
- ServerError: The server has encountered an uncategorized error condition
"""
# This auto generated sample is based on the following assumptions:
# - there is at least one session active
# - the session configuration contains at least one resource for every class present in the sample
from ixnetwork_restpy import TestPlatform


ixnetwork = TestPlatform('127.0.0.1') \
	.Sessions.find() \
	.Ixnetwork
ixnetwork.SaveCapture(*args, **kwargs)

@1201110211
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants