Skip to content

Commit 1fe2562

Browse files
Merge pull request #6 from jkraenzle/main
Capacity Report Example
2 parents 5663a3b + db61ec5 commit 1fe2562

18 files changed

+1413
-57
lines changed

examples/capacity_reports/README.rst

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
Example Capacity Reports
2+
==============================
3+
4+
**Capacity Reports** is an example Python script using the SteelScript libraries along with Python pandas and matplotlib libraries to pull utilization metrics for interfaces from NetIM, analyze them, and graph them.
5+
6+
Quick start
7+
-----------
8+
9+
.. code:: shell
10+
11+
# To execute the command
12+
cd <SteelScript-NetIM installation path>/examples/capacity_reports
13+
pip3 install -r requirements.txt
14+
python3 report.py --sites_yml sites.yml --config_yml config.yml
15+
16+
- sites_example.yml is an example of what needs to be included for each site and interface
17+
- config_example.yml is where the NetIM authentication information is provided, along with reporting period and other parameters
18+
- The output/ directory shows an example output from a lab environment
19+
20+
Contribute
21+
-----------
22+
23+
Feel free to use, enhance and contribute by creating issues, sendind pull requests (PR), ...
24+
25+
Links
26+
-----
27+
28+
- `SteelScript main code repository on GitHub <https://github.com/riverbed/steelscript>`__
29+
30+
- `SteelScript complete guide <https://support.riverbed.com/apis/steelscript>`__
31+
32+
License
33+
=======
34+
35+
Copyright (c) 2021 Riverbed Technology, Inc.
36+
37+
SteelScript is licensed under the terms and conditions of the MIT License
38+
accompanying the software ("License"). SteelScript is distributed "AS
39+
IS" as set forth in the License. SteelScript also includes certain third
40+
party code. All such third party code is also distributed "AS IS" and is
41+
licensed by the respective copyright holders under the applicable terms and
42+
conditions (including, without limitation, warranty and liability disclaimers)
43+
identified in the license notices accompanying the software.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Specify the authentication information for the NetIM source instance
2+
netim_hostname: 10.1.1.1
3+
netim_username: admin
4+
netim_password: admin
5+
6+
# Provide reporting period, with time in format M-D-Y H:M:S
7+
start_time: 01-01-2021 00:00:00
8+
end_time: 12-31-2021 11:59:59
9+
10+
# Provide granularity as one of RAW, HOURLY, DAILY, WEEKLY
11+
granularity: WEEKLY
12+
13+
# Provide rollup as one of 'maximum', 'average', '95th percentile', '98th percentile'
14+
rollup: 95th percentile

0 commit comments

Comments
 (0)