Cisco Stealthwatch Hardware Deployment And Configuration Manual page 38

Table of Contents

Advertisement

Resource
Response Code
Response Body
See the
Stealthwatch Enterprise REST API documentation
the REST API.
The following procedure provides curl syntax for updating the flow interface statistics
data retention period:
Update the flow interface statistics retention period:
Before You Begin
Log into the console of a Linux-based appliance with curl installed.
l
Procedure
1.
Copy the following command and paste it into a plaintext editor:
curl -c cookies.txt -d "username=[username]&password=
[password]" https://[smc-eth0-ip]/token/v2/authenticate
2.
Replace
[username]
3.
Replace
[password]
4.
Replace
[smc-eth0-ip]
5.
Copy the updated command, paste it into the command line, and press Enter to
authenticate on the SMC for REST API use.
Your session is valid for 20 minutes.
6.
Copy the following command and paste it into a plaintext editor:
curl -X GET -b cookies.txt https://[smc-eth0-ip]/smc-
configuration/rest/v1/cds/retentionsettings
7.
Replace
[smc-eth0-ip]
8.
Copy the updated command, paste it into the command line, and press Enter to
retrieve the current retention settings.
© 2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
Description
204 - Success (No Content)
The response body contains no content.
with an SMC admin username.
with the SMC admin password.
with the SMC's
with the SMC's
Flow Interface Statistics Retention Configuration
for more information about
IP address.
eth0
IP address.
eth0
- 38 -

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents