94 Commits
Author SHA1 Message Date
Petr Klíma 61df6df02e Merge branch 'master' into develop 2024-04-24 17:24:31 +02:00
Petr Klima 1e4a53dece bump to version 0.5.1 2024-04-24 16:15:20 +02:00
Petr Klima 7b731c0330 Add support and tests for SG250 2024-04-24 16:09:07 +02:00
Petr Klima b217d9f891 get rid of textFSM templates 2024-04-24 15:01:25 +02:00
Petr Klima 3ee20247a1 get rid of textFSM templates 2024-04-24 14:59:48 +02:00
Petr Klima 6342476312 better obfuscation for fetch command output 2024-04-24 14:58:59 +02:00
Petr Klima bcb1e3094f better obfuscation for fetch command output 2024-04-24 14:47:55 +02:00
83d93de5f0 Merge master changes back to develop (#100)
* Lift version to 0.4.1

* Adapt to napalm 4.1 tests (#90)

* use netmiko_args

* Add changes for 4.1.0 (#89)

* Update requirements.txt

* Typpo in requirements

* _send_command has only two parameters

* Adapt to stricter Unit tests

---------

Co-authored-by: Anton Gridnev <anton@gridnev.pro>

* Remove s350_base_interfaces custom map - it is allready in napalm base

* Adapt Unit tests to canonical_interface_name()

---------

Co-authored-by: Dave <davama@gmail.com>
Co-authored-by: Anton Gridnev <anton@gridnev.pro>

* move version to 0.4.1.1

* Make it napalm 5 compliant  (#92)

* use netmiko_args

* Add changes for 4.1.0 (#89)

* Update requirements.txt

* Typpo in requirements

* _send_command has only two parameters

* Adapt to stricter Unit tests

---------

Co-authored-by: Anton Gridnev <anton@gridnev.pro>

* Remove s350_base_interfaces custom map - it is allready in napalm base

* Adapt Unit tests to canonical_interface_name()

* Add format parameter to get_config()

* Add badges

---------

Co-authored-by: Dave <davama@gmail.com>
Co-authored-by: Anton Gridnev <anton@gridnev.pro>

* move version to 5.0.0

* move to version 0.5.0

---------

Co-authored-by: Dave <davama@gmail.com>
Co-authored-by: Anton Gridnev <anton@gridnev.pro>
2024-04-24 10:09:02 +02:00
Petr Klíma 092f595742 Fetch command output - obfuscations (#99)
* add IP and MAC obfuscation

* Add obfuscate strings
2024-04-24 10:06:31 +02:00
Petr KlímaandPetr Klima 6062084fb9 Set default command timeout (#98)
* adding read_timeout_override netmiko option

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Petr Klima <petr.klima@madeta.cz>
2024-04-23 15:33:39 +02:00
ce7f542df9 fetch_command_output helper (#97)
* fetch_command_output.sh tool

* Update fetch_command_update from develop (#93)

* adding read_timeout_override netmiko option

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Petr Klima <petr.klima@madeta.cz>
Co-authored-by: Dave <davama@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Anton Gridnev <anton@gridnev.pro>
2024-04-23 15:06:20 +02:00
Petr Klíma 112320f5bc Merge CI to develop (#95)
* Simplify CI

* CI update

* CI update

* Update CI from develop (#94)

* Add format parameter to get_config()

* Add badges

* Tests for push are enought

* update CD actions

* add tests for device SG500-52
2024-04-23 12:40:55 +02:00
Petr Klima 08071570d2 add tests for device SG500-52 2024-04-23 09:11:35 +02:00
Petr Klima a906c1b847 update CD actions 2024-04-23 09:10:53 +02:00
Petr Klíma e43b99aae9 move to version 0.5.0 2024-04-22 16:11:43 +02:00
Petr Klíma 8e73262261 move version to 5.0.0 2024-04-22 16:09:50 +02:00
d76fa4cd46 Make it napalm 5 compliant (#92)
* use netmiko_args

* Add changes for 4.1.0 (#89)

* Update requirements.txt

* Typpo in requirements

* _send_command has only two parameters

* Adapt to stricter Unit tests

---------

Co-authored-by: Anton Gridnev <anton@gridnev.pro>

* Remove s350_base_interfaces custom map - it is allready in napalm base

* Adapt Unit tests to canonical_interface_name()

* Add format parameter to get_config()

* Add badges

---------

Co-authored-by: Dave <davama@gmail.com>
Co-authored-by: Anton Gridnev <anton@gridnev.pro>
2024-04-22 16:08:58 +02:00
Petr Klima f1e0aad450 Tests for push are enought 2024-04-22 16:08:43 +02:00
Petr Klima 3f6c8f8314 Add badges 2024-04-22 15:52:22 +02:00
Petr Klima d371559989 Add format parameter to get_config() 2024-04-22 15:52:03 +02:00
Petr Klíma 1efdaaf26b move version to 0.4.1.1 2024-04-05 08:00:16 +02:00
e320121d27 Adapt to napalm 4.1 tests (#90)
* use netmiko_args

* Add changes for 4.1.0 (#89)

* Update requirements.txt

* Typpo in requirements

* _send_command has only two parameters

* Adapt to stricter Unit tests

---------

Co-authored-by: Anton Gridnev <anton@gridnev.pro>

* Remove s350_base_interfaces custom map - it is allready in napalm base

* Adapt Unit tests to canonical_interface_name()

---------

Co-authored-by: Dave <davama@gmail.com>
Co-authored-by: Anton Gridnev <anton@gridnev.pro>
2024-03-29 17:23:46 +01:00
Petr Klima 9d6c4ea88b Lift version to 0.4.1 2024-03-29 17:17:20 +01:00
Petr Klima cf47f5ed1e Adapt Unit tests to canonical_interface_name() 2024-03-29 16:59:16 +01:00
Petr Klima 971310b790 Remove s350_base_interfaces custom map - it is allready in napalm base 2024-03-29 16:58:16 +01:00
Petr KlímaandAnton Gridnev c4a36239f6 Add changes for 4.1.0 (#89)
* Update requirements.txt

* Typpo in requirements

* _send_command has only two parameters

* Adapt to stricter Unit tests

---------

Co-authored-by: Anton Gridnev <anton@gridnev.pro>
2024-03-29 15:51:28 +01:00
Petr Klíma 9b76a86dc0 Use napalm supplied netmiko_args instead of my own
Merge pull request #88 from davama/develop thanks to @davama
2024-03-29 13:16:21 +01:00
Dave 86a7689d6d use netmiko_args 2024-03-27 23:54:55 -04:00
Petr Klíma c3dea8ec10 Update to napalm 4
Merge pull request #87 from napalm-automation-community/develop
2024-03-27 09:25:36 +01:00
Petr Klíma 6e6b38b224 Merge branch 'master' into develop 2024-03-27 09:21:17 +01:00
Petr Klima 3a63056fa8 Check syntax for Py3.12 2024-03-27 09:14:14 +01:00
Petr Klima 08d9a45e77 Shorten name of publish workflow 2024-03-27 09:09:40 +01:00
Petr Klima fc9e83c4bb Updata docs 2024-03-27 09:07:39 +01:00
Petr Klima 9025b0f434 CI renaname job 2024-03-26 17:20:36 +01:00
Petr Klima d6dd81ea81 CI rename legacy jobs 2024-03-26 17:19:12 +01:00
Petr Klima 7a8fbac693 CI FastTest for all other branches. 2024-03-26 17:18:31 +01:00
Petr Klima a4f0473fd2 CI ThoroughTest for branches develop and master 2024-03-26 17:17:47 +01:00
Petr Klima 62f6ab4cc3 Do not test on PyPy, local test with local Py version only 2024-03-26 17:07:14 +01:00
Petr Klima 7009fc9121 Remove Py13 - too early 2024-03-26 16:50:48 +01:00
Petr Klima cfd1169760 Full tox testing on "develop" and "master" branch. 2024-03-26 16:35:18 +01:00
Petr Klima f3d13a5e31 Napalm 4 compatibility, newer dependencies 2024-03-26 16:29:04 +01:00
Petr Klíma 5a9bff81b9 Update PublishToPIP.yml for manual run 2024-03-26 15:42:47 +01:00
Petr Klíma e939d9e73d Update pkg version in setup.py 2024-03-26 15:34:19 +01:00
Petr Klíma b4fd77df46 Merge pull request #86 from napalm-automation-community/develop
Add security changes for black CVE-2024-21503, update test tools
2024-03-26 14:43:07 +01:00
Petr Klima 7e1d345af6 Add scheduled check on develop branch 2024-03-26 14:30:07 +01:00
Petr Klima de857ba48a Update information about required versions to Py3.8+ and napalm 3 2024-03-26 14:22:01 +01:00
Petr Klíma d1b960a407 Merge pull request #85 from napalm-automation-community/dependabot/pip/black-24.3.0
Bump black from 20.8b1 to 24.3.0 to address CVE-2024-21503
2024-03-26 14:14:18 +01:00
Petr Klima 7929c6411c FIX force interface speed as a float 2024-03-26 14:08:17 +01:00
Petr Klima 751126a1f5 FIX add platform name to driver s350 2024-03-26 14:07:10 +01:00
Petr Klima 7a32595838 Allow testing on all supported Py versions 2024-03-26 14:05:20 +01:00
Petr Klima 5049dcdfd6 FIX minor formating fixes raised by pylama 2024-03-26 14:04:04 +01:00
Petr Klima 9787347098 FIX limit napalm and netmiko o version 3.*, soften version requirements 2024-03-26 14:01:31 +01:00
Petr Klima 7023c590e4 FIX minor formating fixes raised by pylama 2024-03-26 14:00:02 +01:00
Petr Klima 593f998376 remove demjson - blocking tests 2024-03-26 12:55:55 +01:00
dependabot[bot] 7206990ee1 Bump black from 20.8b1 to 24.3.0
Bumps [black](https://github.com/psf/black) from 20.8b1 to 24.3.0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/commits/24.3.0)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-20 15:48:51 +00:00
Petr Klíma 5da4d3d784 Merge pull request #84 from davama/develop
adding read_timeout_override and session_log optional_args for netmiko
2023-08-28 09:12:30 +02:00
Dave a0b28c9678 adding netmiko option session_log 2023-02-16 16:19:07 -05:00
Dave c74e972691 adding read_timeout_override netmiko option 2023-01-30 08:48:15 -05:00
Petr Klima f30528f14f Merge branch 'master' into develop 2021-03-09 09:48:09 +01:00
Petr Klíma fbabbe194f Bump version to 0.3.1 2021-03-09 09:27:39 +01:00
Petr Klíma 4011be697f support for CSB350, canonical interface names
initial support for CSB350
2021-03-09 09:25:29 +01:00
Petr Klima fe3458a984 simplier GitHub workflow 2021-03-09 09:13:28 +01:00
Petr Klima e9a315c946 Merge branch 'CSB350-24P-4G' into develop 2021-03-09 08:39:52 +01:00
Petr Klima ab67b55421 Support for CBS350-24P-4G 2021-03-09 08:39:01 +01:00
Petr Klima 6c21879bc4 unit test mocked_data for CSB350-24P-4G 2021-03-08 18:15:47 +01:00
Petr Klima 11b518fd24 do not use abbrv 'show ip int' use 'show ip interfaces' 2021-03-08 18:13:22 +01:00
Petr Klima 8228244ceb add command outputs for CBS350-24P-4G 2021-03-08 17:52:40 +01:00
Petr Klima d203db5eba move command outputs outside of mocked_data dir 2021-03-08 17:51:44 +01:00
Petr Klima 4cee65a279 syntax checks applyed 2021-03-08 15:19:04 +01:00
Petr Klima 484d55867b interface status only in form 'show interfaces status' 2021-03-08 15:07:28 +01:00
Petr Klima 7ca5b3c5b4 Merge branch 'develop' of github.com:napalm-automation-community/napalm-s350 into develop 2021-03-08 14:48:14 +01:00
Petr Klima e24ba606ba syntax repair by 'black' and 'pylama' 2021-03-08 14:38:03 +01:00
Petr Klíma fac504f68a Merge pull request #78 from napalm-automation-community/force_no_enable
Force no enable
2021-03-08 14:33:06 +01:00
Petr Klima 66c79822af Merge branch 'cli' into develop 2021-03-08 13:50:39 +01:00
Petr Klima 7ef13cf947 implementation of cli() method 2021-03-08 13:44:56 +01:00
Petr Klima 4becff86d4 doc correction 2021-02-15 19:47:38 +01:00
Petr Klima 79b913954e change NI to NS 2021-02-15 19:30:23 +01:00
Petr Klíma 2cec6edd2b Full interface names
Solving #74 (lldp neighbors returns short interface names instead of full names) @nniehoff
2021-02-13 21:22:56 +01:00
Petr Klima 88151c4d5c solving pylama lint errors 2021-02-13 21:19:54 +01:00
Petr Klima 9361455cbd adjust tests for canonial names 2021-02-13 21:12:48 +01:00
Petr Klima ca4b3e8a9d make interface names canonical 2021-02-13 21:09:37 +01:00
Petr Klima a096117476 add jsonlint for checking test results 2021-02-13 21:09:06 +01:00
Petr Klima 8a19f72315 Doc - how to add new device 2021-02-13 16:07:15 +01:00
Petr Klíma e03da9ad53 Optional enable (force_no_enable)
can work (partialy) on devices you do not have full enable access (priv 15) #73
2020-11-30 14:26:14 +01:00
laherre 2ab5bd8b16 CLI test with force_no_enable 2020-11-20 13:28:51 +01:00
laherre 82813eb26e driver force_no_enable option 2020-11-20 13:05:04 +01:00
Petr Klíma 7c330c51a0 supported functions completeness matrix 2020-11-19 15:49:41 +01:00
Petr Klima 55ac51230a typo correction 2020-11-19 15:27:36 +01:00
Petr Klima fba3d711ea bold section labels 2020-11-19 15:26:29 +01:00
Petr Klima 090ab3d5dc add all function to table - supported 2020-11-19 15:21:12 +01:00
Petr Klima af612dc752 Merge branch 'release-0.3.0' into develop 2020-11-19 14:10:35 +01:00
Petr Klíma c046145d5e Feature request template 2020-11-18 13:22:15 +01:00
Petr Klíma 6a46be7175 Create feature_request.md 2020-11-18 13:20:59 +01:00
Petr Klíma 2824f60e8f describe not implemented 2020-11-18 13:07:33 +01:00
261 changed files with 6320 additions and 987 deletions

No files matched your search

@@ -0,0 +1,9 @@
---
name: Feature request
about: Tell authors new ideas for 'napalm-s350'
---
<!-- What feature do you miss? -->
### Short description
### Expected Behavior
+36
View File
@@ -0,0 +1,36 @@
# This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
name: Fast Test
on:
push:
branches-ignore:
- develop
- master
jobs:
tox_test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.11" ]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
- name: Test with tox
run: |
tox
@@ -1,11 +1,12 @@
# This workflows will upload a Python Package using Twine when a release is created # This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries # For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
name: Upload Python Package to PyPi.org name: Publish To PyPi.org
on: on:
release: release:
types: [created] types: [created]
workflow_dispatch:
jobs: jobs:
deploy: deploy:
@@ -13,9 +14,9 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v2 uses: actions/setup-python@v5
with: with:
python-version: '3.x' python-version: '3.x'
- name: Install dependencies - name: Install dependencies
-63
View File
@@ -1,63 +0,0 @@
# This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
name: Test before push
on:
push:
branches:
- develop
- master
pull_request:
branches:
- develop
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
- name: Test with tox
run: |
tox
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build
run: |
python setup.py sdist bdist_wheel
- name: Check
run: |
twine check dist/*
- name: Publish
env:
TWINE_USERNAME: ${{ secrets.TWINE_TEST_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_TEST_PASSWORD }}
TWINE_REPOSITORY: ${{ secrets.TWINE_TEST_REPOSITORY }}
run: |
twine upload --repository testpypi --verbose --non-interactive --disable-progress-bar --skip-existing dist/*
+38
View File
@@ -0,0 +1,38 @@
# This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
name: Thorough Test
on:
push:
branches:
- develop
- master
# check every 14 days
schedule:
- cron: '0 6 5,20 * *'
jobs:
tox_test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
- name: Test with tox
run: |
tox
+5
View File
@@ -1,3 +1,8 @@
# cfg for getting cmd outputs
test/unit/fetch_command_output.cfg
# Byte-compiled / optimized / DLL files # Byte-compiled / optimized / DLL files
__pycache__/ __pycache__/
*.py[cod] *.py[cod]
+111 -42
View File
@@ -1,17 +1,18 @@
# Napalm-s350 # Napalm-s350
NAPALM driver for Cisco SMB switches (SF3xx, SF5xx, SG3xx, SG5xx). NAPALM driver for Cisco SMB switches (SF3xx, SF5xx, SG250, SG3xx, SG5xx, CBS35x).
## Status ## Status
Master: ![Build](https://github.com/napalm-automation-community/napalm-s350/workflows/Test%20before%20push/badge.svg?branch=master&event=push)
Develop: ![Build](https://github.com/napalm-automation-community/napalm-s350/workflows/Test%20before%20push/badge.svg?branch=develop&event=push) Master: [![Thorough Test](https://github.com/napalm-automation-community/napalm-s350/actions/workflows/ThoroughTest.yml/badge.svg?branch=master)](https://github.com/napalm-automation-community/napalm-s350/actions/workflows/ThoroughTest.yml)
PyPi: [![Upload](https://github.com/napalm-automation-community/napalm-s350/workflows/Upload%20Python%20Package%20to%20PyPi.org/badge.svg)](https://github.com/napalm-automation-community/napalm-s350/actions?query=workflow%3A%22Upload+Python+Package+to+PyPi.org%22) Develop: [![Thorough Test](https://github.com/napalm-automation-community/napalm-s350/actions/workflows/ThoroughTest.yml/badge.svg?branch=develop)](https://github.com/napalm-automation-community/napalm-s350/actions/workflows/ThoroughTest.yml)
PyPi.org: [![Publish To PyPi.org](https://github.com/napalm-automation-community/napalm-s350/actions/workflows/PublishToPIP.yml/badge.svg?branch=master)](https://github.com/napalm-automation-community/napalm-s350/actions/workflows/PublishToPIP.yml)
## Requirements ## Requirements
Python 3.6+, napalm 3+ Python 3.8+, napalm 4
## Installation ## Installation
@@ -20,9 +21,11 @@ pip3 install napalm_s350
``` ```
## CLI test ## CLI test
Default information (the same as `call get_facts` Default information (the same as `call get_facts`)
```bash ```bash
napalm --user USER --password PASSWORD --vendor s350 HOSTNAME napalm --user USER --password PASSWORD --vendor s350 HOSTNAME
napalm --user USER --password PASSWORD --vendor s350 HOSTNAME --optional_args "force_no_enable=True"
``` ```
Get interfaces Get interfaces
@@ -42,43 +45,109 @@ napalm --user USER --password PASSWORD --vendor s350 --debug HOSTNAME
## Supported devices ## Supported devices
This driver initially targets the Cisco SG350 device though other, similar, devices may This driver initially targets the Cisco SG350 device though other, similar, devices are
be supported. be supported.
| function | SG300 | SG500 | SG350 | SG550 | stack SG500 | stack SG550 | | function | SG250 | SG300 | SG500 | SG350 | SG550 | stack SG500 | stack SG550 | CBS350 |
| :--- | :---: | :---: | :---: | :---: | :---: | :---: | | :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
|get_arp_table | x | x | x | x | | | | **Send commands** |
|get_arp_table (with vrf) | NI | NI | NI | NI | | | | cli | x | x | x | x | x | x | x | x |
|get_bgp_config | | | | | | | | **Config manipulation** |
|get_bgp_neighbors | | | | | | | |get_config | x | x | x | x | x | | | x |
|get_bgp_neighbors_detail | | | | | | | |get_config (filtered) | x | x | x | x | x | | | x |
|get_config | x | x | x | x | | | |get_config (sanitized) | x | x | x | x | x | | | x |
|get_config (filtered) | x | x | x | x | | | |load_merge_candidate | | | | | | | | |
|get_config (sanitized) | x | x | x | x | | | |load_replace_candidate | | | | | | | | |
|get_environment | | | | | | | |compare_config | | | | | | | | |
|get_facts | x | x | x | x | | | |commit_config | | | | | | | | |
|get_firewall_policies | | | | | | | |confirm_commit | | | | | | | | |
|get_interfaces | x | x | x | x | | | |has_pending_commit | | | | | | | | |
|get_interfaces_counters | | | | | | | |rollback | | | | | | | | |
|get_interfaces_ip | x | x | x | x | | | |discard_config | | | | | | | | |
|get_ipv6_neighbors_table | | | | | | | |compliance_report | | | | | | | | |
|get_lldp_neighbors | x | x | x | x | | | |load_template | | | | | | | | |
|get_lldp_neighbors_detail | x | x | x | x | | | | **Get information** |
|get_mac_address_table | | | | | | | |get_arp_table | x | x | x | x | x | | | x |
|get_network_instances | | | | | | | |get_arp_table (with vrf) | NS | NS | NS | NS | NS | | | NS |
|get_ntp_peers | | | | | | | |get_bgp_config | | | | | | | | |
|get_ntp_servers | x | x | x | x | | | |get_bgp_neighbors | | | | | | | | |
|get_ntp_stats | | | | | | | |get_bgp_neighbors_detail | | | | | | | | |
|get_optics | | | | | | | |get_environment | | | | | | | | |
|get_probes_config | | | | | | | |get_facts | x | x | x | x | x | | | x |
|get_probes_results | | | | | | | |get_firewall_policies | | | | | | | | |
|get_route_to | | | | | | | |get_interfaces | x | x | x | x | x | | | x |
|get_snmp_information | | | | | | | |get_interfaces_counters | | | | | | | | |
|get_users | | | | | | | |get_interfaces_ip | x 4 | x 4 | x 4 | x 4 | x 4 | | | x 4 |
|get_vlans | x | x | x | x | | | |get_ipv6_neighbors_table | | | | | | | | |
|is_alive | | | | | | | |get_lldp_neighbors | x | x | x | x | x | | | x |
|ping | | | | | | | |get_lldp_neighbors_detail | x | x | x | x | x | | | x |
|traceroute | | | | | | | |get_mac_address_table | | | | | | | | |
|get_network_instances | | | | | | | | |
|get_ntp_peers | | | | | | | | |
|get_ntp_servers | x | x | x | x | x | | | x |
|get_ntp_stats | | | | | | | | |
|get_optics | | | | | | | | |
|get_probes_config | | | | | | | | |
|get_probes_results | | | | | | | | |
|get_route_to | | | | | | | | |
|get_snmp_information | | | | | | | | |
|get_users | | | | | | | | |
|get_vlans | x | x | x | x | x | | | x |
| **Other actions** |
|is_alive | x | x | x | x | x | x | x | x |
|ping | | | | | | | | |
|traceroute | | | | | | | | |
NS - devices do not have support for that feature NS - not supported - devices do not have support for that feature
4 - IPv4 only ...
## Want to add new device support?
To be sure we can support new device we use test files.
### Fetch command output tool
There is tool for getting necessary infromatin form running switch
```
cd test/unit
# DEVICE_TYPE as PID: in "show inventory" output
# INTERFACE an inteface
# LLDP_INTERFACE inteface for getting LLDP inforation
./fetch_command_output.sh -u USER -p PASSWORD -t DEVICE_TYPE -v s350 \
-d SWITCH_IP_or_FQDN -i INTERFACE -l LLDP_INTERFACE
```
Output files from that tool are in "test/unit/command_output/$DEVICE_TYPE"
### By hand
We need text output of those commands, to add new device:
```
show arp
show startup-config
show version
show system
show inventory
show hosts
show interface status
show running-config
show interfaces status
show interfaces description
show ports jumbo-frame
show ip int
show lldp neighbors
show sntp status
```
Those commands may need parameter change to suit your configuration:
```
show running-config full
show lldp local FastEthernet1
show lldp neighbors FastEthernet0/1
```
Please add each command to separate file - command `show arp` to file named `show_arp.txt`
Make pull request to /napalm-s350/tree/develop/test/unit/mocked_data/`your device type`/
or if you prefer make a Issue and add files as an atachement.
+1 -1
View File
@@ -15,4 +15,4 @@
"""napalm-s350 package.""" """napalm-s350 package."""
from napalm_s350.s350 import S350Driver # noqa from napalm_s350.s350 import S350Driver # noqa
__all__ = ('S350Driver',) __all__ = ("S350Driver",)
+224 -189
View File
@@ -32,8 +32,13 @@ from napalm.base.exceptions import (
CommandErrorException, CommandErrorException,
ConnectionClosedException, ConnectionClosedException,
) )
from napalm.base.helpers import canonical_interface_name
from napalm.base.netmiko_helpers import netmiko_args
import napalm.base.constants as C import napalm.base.constants as C
import napalm.base.helpers import napalm.base.canonical_map
from typing import List
class S350Driver(NetworkDriver): class S350Driver(NetworkDriver):
@@ -50,51 +55,37 @@ class S350Driver(NetworkDriver):
if optional_args is None: if optional_args is None:
optional_args = {} optional_args = {}
self._dest_file_system = optional_args.get('dest_file_system', None) self._dest_file_system = optional_args.get("dest_file_system", None)
# Netmiko possible arguments # Netmiko possible arguments
netmiko_argument_map = { self.netmiko_optional_args = netmiko_args(optional_args)
'port': None,
'secret': '',
'verbose': False,
'keepalive': 30,
'global_delay_factor': 1,
'use_keys': False,
'key_file': None,
'ssh_strict': False,
'system_host_keys': False,
'alt_host_keys': False,
'alt_key_file': '',
'ssh_config_file': None,
'allow_agent': False,
}
# Allow for passing additional Netmiko arguments self.platform = "s350"
self.netmiko_optional_args = {} self.port = optional_args.get("port", 22)
for k, v in netmiko_argument_map.items():
try:
self.netmiko_optional_args[k] = optional_args[k]
except KeyError:
pass
self.port = optional_args.get('port', 22)
self.device = None self.device = None
self.force_no_enable = optional_args.get("force_no_enable", False)
def open(self): def open(self):
"""Open a connection to the device.""" """Open a connection to the device."""
self.device = ConnectHandler(device_type='cisco_s300',
host=self.hostname, self.device = ConnectHandler(
username=self.username, device_type="cisco_s300",
password=self.password, host=self.hostname,
**self.netmiko_optional_args) username=self.username,
self.device.enable() password=self.password,
**self.netmiko_optional_args,
)
if not self.force_no_enable:
self.device.enable()
def _discover_file_system(self): def _discover_file_system(self):
try: try:
return self.device._autodetect_fs() return self.device._autodetect_fs()
except Exception: except Exception:
msg = "Netmiko _autodetect_fs failed (to work around specify " \ msg = (
"dest_file_system in optional_args)." "Netmiko _autodetect_fs failed (to work around specify "
"dest_file_system in optional_args)."
)
raise CommandErrorException(msg) raise CommandErrorException(msg)
def close(self): def close(self):
@@ -109,11 +100,11 @@ class S350Driver(NetworkDriver):
try: try:
if isinstance(command, list): if isinstance(command, list):
for cmd in command: for cmd in command:
output = self.device.send_command(cmd) output = self.device.send_command(cmd, read_timeout=self.timeout)
if "% Invalid" not in output: if "% Invalid" not in output:
break break
else: else:
output = self.device.send_command(command) output = self.device.send_command(command, read_timeout=self.timeout)
return output.strip() return output.strip()
except (socket.error, EOFError) as e: except (socket.error, EOFError) as e:
raise ConnectionClosedException(str(e)) raise ConnectionClosedException(str(e))
@@ -121,9 +112,9 @@ class S350Driver(NetworkDriver):
def _parse_uptime(self, uptime_str): def _parse_uptime(self, uptime_str):
"""Parse an uptime string into number of seconds""" """Parse an uptime string into number of seconds"""
uptime_str = uptime_str.strip() uptime_str = uptime_str.strip()
days, timespec = uptime_str.split(',') days, timespec = uptime_str.split(",")
hours, minutes, seconds = timespec.split(':') hours, minutes, seconds = timespec.split(":")
uptime_sec = (int(days) * 86400) + (int(hours) * 3600) + (int(minutes) * 60) + int(seconds) uptime_sec = (int(days) * 86400) + (int(hours) * 3600) + (int(minutes) * 60) + int(seconds)
return uptime_sec return uptime_sec
@@ -137,11 +128,11 @@ class S350Driver(NetworkDriver):
arp_table = [] arp_table = []
output = self._send_command('show arp') output = self._send_command("show arp")
for line in output.splitlines(): for line in output.splitlines():
# A VLAN may not be set for the entry # A VLAN may not be set for the entry
if 'vlan' not in line: if "vlan" not in line:
continue continue
if len(line.split()) == 4: if len(line.split()) == 4:
interface, ip, mac, _ = line.split() interface, ip, mac, _ = line.split()
@@ -151,40 +142,48 @@ class S350Driver(NetworkDriver):
elif len(line.split()) == 6: elif len(line.split()) == 6:
_, _, interface, ip, mac, _ = line.split() _, _, interface, ip, mac, _ = line.split()
else: else:
raise ValueError('Unexpected output: {}'.format(line.split())) raise ValueError("Unexpected output: {}".format(line.split()))
interface = canonical_interface_name(interface)
entry = { entry = {
'interface': interface, "interface": interface,
'mac': napalm.base.helpers.mac(mac), "mac": napalm.base.helpers.mac(mac),
'ip': ip, "ip": ip,
'age': 0.0, "age": 0.0,
} }
arp_table.append(entry) arp_table.append(entry)
return arp_table return arp_table
def get_config(self, retrieve='all', full=False, sanitized=False): def get_config(
self,
retrieve="all",
full=False,
sanitized=False,
format: str = "text",
):
""" """
get_config for S350. Since this firmware doesn't support a candidate get_config for S350. Since this firmware doesn't support a candidate
configuration we leave it empty. configuration we leave it empty.
""" """
configs = { configs = {
'startup': '', "startup": "",
'running': '', "running": "",
'candidate': '', "candidate": "",
} }
if retrieve in ('all', 'startup'): if retrieve in ("all", "startup"):
startup = self._send_command('show startup-config') startup = self._send_command("show startup-config")
configs['startup'] = self._get_config_filter(startup) configs["startup"] = self._get_config_filter(startup)
if retrieve in ('all', 'running'): if retrieve in ("all", "running"):
# IOS supports "full" only on "show running-config" # IOS supports "full" only on "show running-config"
run_full = " detailed" if full else "" run_full = " detailed" if full else ""
running = self._send_command('show running-config' + run_full) running = self._send_command("show running-config" + run_full)
configs['running'] = self._get_config_filter(running) configs["running"] = self._get_config_filter(running)
if sanitized: if sanitized:
configs = self._get_config_sanitized(configs) configs = self._get_config_sanitized(configs)
@@ -222,84 +221,100 @@ class S350Driver(NetworkDriver):
def get_facts(self): def get_facts(self):
"""Return a set of facts from the device.""" """Return a set of facts from the device."""
serial_number, fqdn, os_version, hostname, domainname = ('Unknown',) * 5 serial_number, fqdn, os_version, hostname, domainname = ("Unknown",) * 5
# Submit commands to the device. # Submit commands to the device.
show_ver = self._send_command('show version') show_ver = self._send_command("show version")
show_sys = self._send_command('show system') show_sys = self._send_command("show system")
show_inv = self._send_command('show inventory') show_inv = self._send_command("show inventory")
show_hosts = self._send_command('show hosts') show_hosts = self._send_command("show hosts")
show_int_st = self._send_command('show interface status') show_int_st = self._send_command("show interfaces status")
os_version = self._get_facts_parse_os_version(show_ver) os_version = self._get_facts_parse_os_version(show_ver)
# hostname # hostname
hostname = self._get_facts_hostname(show_sys) hostname = self._get_facts_hostname(show_sys)
# special case for SG500 fw v1.4.x # special case for SG500 fw v1.4.x
if hostname == 'Unknown': if hostname == "Unknown":
hostname = self._get_facts_hostname_from_config( hostname = self._get_facts_hostname_from_config(
self._send_command('show running-config') self._send_command("show running-config")
) )
# uptime # uptime
uptime_str = self._get_facts_uptime(show_sys) uptime_str = self._get_facts_uptime(show_sys)
uptime = self._parse_uptime(uptime_str) uptime = self._parse_uptime(uptime_str)
# serial_number and model # serial_number and model
inventory = self._get_facts_parse_inventory(show_inv)['1'] # take first device
serial_number = inventory['sn'] inventory = self._get_facts_parse_inventory(show_inv)["1"]
model = inventory['pid'] serial_number = inventory["sn"]
model = inventory["pid"]
# fqdn # fqdn
domainname = napalm.base.helpers.textfsm_extractor(self, 'hosts', # take first domain name
show_hosts)[0] domainname = "Unknown"
domainname = domainname['domain_name'] atDTh = False
if domainname == 'Domain': atDT = False
domainname = 'Unknown' for line in show_hosts.splitlines():
if line.startswith("Default Domain Table"):
atDTh = True
continue
if atDTh and line.startswith("--------"):
atDT = True
continue
if atDT:
fields = line.split(" ")
domainname = fields[0]
break
if domainname == "Domain":
domainname = "Unknown"
if domainname != "Unknown" and hostname != "Unknown": if domainname != "Unknown" and hostname != "Unknown":
fqdn = '{0}.{1}'.format(hostname, domainname) fqdn = "{0}.{1}".format(hostname, domainname)
# interface_list # interface_list
interfaces = []
interfaces: List[str] = []
show_int_st = show_int_st.strip() show_int_st = show_int_st.strip()
# remove the header information # remove the header information
show_int_st = re.sub( show_int_st = re.sub(
r"(^-.*$|^Port .*$|^Ch .*$)|^\s.*$|^.*Flow.*$", "", show_int_st, r"(^-.*$|^Port .*$|^Ch .*$)|^\s.*$|^.*Flow.*$", "", show_int_st, flags=re.M
flags=re.M
) )
for line in show_int_st.splitlines(): for line in show_int_st.splitlines():
if not line: if not line:
continue continue
interface = line.split()[0] interface = line.split()[0]
interface = canonical_interface_name(interface)
interfaces.append(str(interface)) interfaces.append(str(interface))
return { return {
'fqdn': str(fqdn), "fqdn": str(fqdn),
'hostname': str(hostname), "hostname": str(hostname),
'interface_list': interfaces, "interface_list": interfaces,
'model': str(model), "model": str(model),
'os_version': str(os_version), "os_version": str(os_version),
'serial_number': str(serial_number), "serial_number": str(serial_number),
'uptime': uptime, "uptime": float(uptime),
'vendor': u'Cisco', "vendor": "Cisco",
} }
def _get_facts_hostname_from_config(self, show_running): def _get_facts_hostname_from_config(self, show_running):
# special case for SG500 fw v1.4.x # special case for SG500 fw v1.4.x
hostname = 'Unknown' hostname = "Unknown"
for line in show_running.splitlines(): for line in show_running.splitlines():
if line.startswith('hostname '): if line.startswith("hostname "):
_, hostname = line.split('hostname') _, hostname = line.split("hostname")
hostname = hostname.strip() hostname = hostname.strip()
break break
return hostname return hostname
def _get_facts_hostname(self, show_sys): def _get_facts_hostname(self, show_sys):
hostname = 'Unknown' hostname = "Unknown"
for line in show_sys.splitlines(): for line in show_sys.splitlines():
if line.startswith('System Name:'): if line.startswith("System Name:"):
_, hostname = line.split('System Name:') _, hostname = line.split("System Name:")
hostname = hostname.strip() hostname = hostname.strip()
break break
@@ -313,49 +328,53 @@ class S350Driver(NetworkDriver):
uptime_str = None uptime_str = None
for line in show_sys.splitlines(): for line in show_sys.splitlines():
# All models except SG500 fw 1.4.x # All models except SG500 fw 1.4.x
if line.startswith('System Up Time (days,hour:min:sec):'): if line.startswith("System Up Time (days,hour:min:sec):"):
_, uptime_str = line.split('System Up Time (days,hour:min:sec):') _, uptime_str = line.split("System Up Time (days,hour:min:sec):")
break break
line = re.sub(r' *', ' ', line, re.M) line = re.sub(r" *", " ", line, re.M)
line = line.strip() line = line.strip()
fields = line.split(' ') fields = line.split(" ")
syslines.append(fields) syslines.append(fields)
if 'Unit' in syslines[i] and 'time' in syslines[i]: if "Unit" in syslines[i] and "time" in syslines[i]:
uptime_header_lineNo = i uptime_header_lineNo = i
i += 1 i += 1
# SG500 fw 1.4.x # SG500 fw 1.4.x
if not uptime_str: if not uptime_str:
uptime_str = syslines[uptime_header_lineNo+2][1] uptime_str = syslines[uptime_header_lineNo + 2][1]
return uptime_str return uptime_str
def _get_facts_parse_inventory(self, show_inventory): def _get_facts_parse_inventory(self, show_inventory):
""" inventory can list more modules/devices """ """inventory can list more modules/devices"""
# make 1 module 1 line # make 1 module 1 line
show_inventory = re.sub(r'\nPID', ' PID', show_inventory, re.M) show_inventory = re.sub(r"\nPID", " PID", show_inventory, re.M)
# delete empty lines # delete empty lines
show_inventory = re.sub(r'^\n', '', show_inventory, re.M) show_inventory = re.sub(r"^\n", "", show_inventory, re.M)
show_inventory = re.sub(r'\n\n', '', show_inventory, re.M) show_inventory = re.sub(r"\n\n", "", show_inventory, re.M)
show_inventory = re.sub(r'\n\s*\n', r'\n', show_inventory, re.M) show_inventory = re.sub(r"\n\s*\n", r"\n", show_inventory, re.M)
lines = show_inventory.splitlines() lines = show_inventory.splitlines()
modules = {} modules = {}
for line in lines: for line in lines:
match = re.search(r""" match = re.search(
r"""
^ ^
NAME:\s"(?P<name>\S+)"\s* NAME:\s"(?P<name>\S+)"\s*
DESCR:\s"(?P<descr>[^"]+)"\s* DESCR:\s"(?P<descr>[^"]+)"\s*
PID:\s(?P<pid>\S+)\s* PID:\s(?P<pid>\S+)\s*
VID:\s(?P<vid>.+\S)\s* VID:\s(?P<vid>.+\S)\s*
SN:\s(?P<sn>\S+)\s* SN:\s(?P<sn>\S+)\s*
""", line, re.X) """,
line,
re.X,
)
module = match.groupdict() module = match.groupdict()
modules[module['name']] = module modules[module["name"]] = module
if modules: if modules:
return modules return modules
@@ -367,21 +386,21 @@ class S350Driver(NetworkDriver):
for line in show_ver.splitlines(): for line in show_ver.splitlines():
# First version line is the active version # First version line is the active version
if re.search(r"Version:", line): if re.search(r"Version:", line):
_, os_version = line.split('Version: ') _, os_version = line.split("Version: ")
break break
elif re.search(r"^SW version", show_ver): elif re.search(r"^SW version", show_ver):
for line in show_ver.splitlines(): for line in show_ver.splitlines():
if re.search(r"^SW version", line): if re.search(r"^SW version", line):
_, ver = line.split(' ') _, ver = line.split(" ")
os_version, _ = ver.split(' (') os_version, _ = ver.split(" (")
break break
else: else:
# show_ver = re.sub(r'^\n', '', show_ver, re.M) # show_ver = re.sub(r'^\n', '', show_ver, re.M)
for line in show_ver.splitlines(): for line in show_ver.splitlines():
line = re.sub(r' *', ' ', line, re.M) line = re.sub(r" *", " ", line, re.M)
line = line.strip() line = line.strip()
line_comps = line.split(' ') line_comps = line.split(" ")
if line_comps[0] == '1': if line_comps[0] == "1":
os_version = line_comps[1] os_version = line_comps[1]
break break
@@ -393,21 +412,21 @@ class S350Driver(NetworkDriver):
""" """
interfaces = {} interfaces = {}
show_status_output = self._send_command('show interfaces status') show_status_output = self._send_command("show interfaces status")
show_description_output = self._send_command('show interfaces description') show_description_output = self._send_command("show interfaces description")
# by documentation SG350 # by documentation SG350
show_jumbo_frame = self._send_command('show ports jumbo-frame') show_jumbo_frame = self._send_command("show ports jumbo-frame")
match = re.search(r'Jumbo frames are enabled', show_jumbo_frame, re.M) match = re.search(r"Jumbo frames are enabled", show_jumbo_frame, re.M)
if match: if match:
mtu = 9000 mtu = 9000
else: else:
mtu = 1518 mtu = 1518
mac = '0' mac = "0"
for status_line in show_status_output.splitlines(): for status_line in show_status_output.splitlines():
if 'Up' in status_line or 'Down' in status_line: if "Up" in status_line or "Down" in status_line:
if "Po" in status_line: if "Po" in status_line:
interface, _, _, speed, _, _, link_state = status_line.split() interface, _, _, speed, _, _, link_state = status_line.split()
else: else:
@@ -415,36 +434,38 @@ class S350Driver(NetworkDriver):
# Since the MAC address for all the local ports are equal, get the address # Since the MAC address for all the local ports are equal, get the address
# from the first port and use it everywhere. # from the first port and use it everywhere.
if mac == '0': if mac == "0":
show_system_output = self._send_command('show lldp local ' + interface) show_system_output = self._send_command("show lldp local " + interface)
mac = show_system_output.splitlines()[0].split(':', maxsplit=1)[1].strip() mac = show_system_output.splitlines()[0].split(":", maxsplit=1)[1].strip()
if speed == '--': if speed == "--":
is_enabled = False is_enabled = False
speed = 0 speed = 0
else: else:
is_enabled = True is_enabled = True
speed = int(speed) speed = int(speed)
is_up = (link_state == 'Up') is_up = link_state == "Up"
for descr_line in show_description_output.splitlines(): for descr_line in show_description_output.splitlines():
description = 0 description = 0
if descr_line.startswith(interface): if descr_line.startswith(interface):
description = ' '.join(descr_line.split()[1:]) description = " ".join(descr_line.split()[1:])
break break
# last_flapped can not be get - setting to default # last_flapped can not be get - setting to default
entry = { entry = {
'is_up': is_up, "is_up": is_up,
'is_enabled': is_enabled, "is_enabled": is_enabled,
'speed': speed, "speed": float(speed),
'mtu': mtu, "mtu": mtu,
'last_flapped': -1.0, "last_flapped": -1.0,
'description': description, "description": description,
'mac_address': napalm.base.helpers.mac(mac) "mac_address": napalm.base.helpers.mac(mac),
} }
interface = canonical_interface_name(interface)
interfaces[interface] = entry interfaces[interface] = entry
return interfaces return interfaces
@@ -452,47 +473,43 @@ class S350Driver(NetworkDriver):
def get_interfaces_ip(self): def get_interfaces_ip(self):
"""Returns all configured interface IP addresses.""" """Returns all configured interface IP addresses."""
interfaces = {} interfaces = {}
show_ip_int = self._send_command('show ip int') show_ip_int = self._send_command("show ip interface")
header = True # cycle trought header header = True # cycle trought header
for line in show_ip_int.splitlines(): for line in show_ip_int.splitlines():
if header: if header:
# last line of first header # last line of first header
match = re.match(r'^---+ -+ .*$', line) match = re.match(r"^---+ -+ .*$", line)
if match: if match:
header = False header = False
fields_end = self._get_ip_int_fields_end(line) fields_end = self._get_ip_int_fields_end(line)
continue continue
# next header, stop processing text # next header, stop processing text
if re.match(r'^---+ -+ .*$', line): if re.match(r"^---+ -+ .*$", line):
break break
line_elems = self._get_ip_int_line_to_fields(line, fields_end) line_elems = self._get_ip_int_line_to_fields(line, fields_end)
# only valid interfaces # only valid interfaces
# in diferent firmwares there is 'Status' field allwais on last place # in diferent firmwares there is 'Status' field allwais on last place
if line_elems[len(line_elems) - 1] != 'Valid': if line_elems[len(line_elems) - 1] != "Valid":
continue continue
cidr = line_elems[0] cidr = line_elems[0]
interface = line_elems[1] interface = line_elems[1]
ip = netaddr.IPNetwork(cidr) ip = netaddr.IPNetwork(cidr)
family = 'ipv{0}'.format(ip.version) family = "ipv{0}".format(ip.version)
interfaces[interface] = { interface = canonical_interface_name(interface)
family: {
str(ip.ip): { interfaces[interface] = {family: {str(ip.ip): {"prefix_length": ip.prefixlen}}}
'prefix_length': ip.prefixlen
}
}
}
return interfaces return interfaces
def _get_ip_int_line_to_fields(self, line, fields_end): def _get_ip_int_line_to_fields(self, line, fields_end):
""" dynamic fields lenghts """ """dynamic fields lenghts"""
line_elems = {} line_elems = {}
index = 0 index = 0
f_start = 0 f_start = 0
@@ -503,9 +520,9 @@ class S350Driver(NetworkDriver):
return line_elems return line_elems
def _get_ip_int_fields_end(self, dashline): def _get_ip_int_fields_end(self, dashline):
""" fields length are diferent device to device, detect them on horizontal lin """ """fields length are diferent device to device, detect them on horizontal line"""
fields_end = [m.start() for m in re.finditer(' ', dashline.strip())] fields_end = [m.start() for m in re.finditer(" ", dashline.strip())]
# fields_position.insert(0,0) # fields_position.insert(0,0)
fields_end.append(len(dashline)) fields_end.append(len(dashline))
@@ -514,16 +531,16 @@ class S350Driver(NetworkDriver):
def get_lldp_neighbors(self): def get_lldp_neighbors(self):
"""get_lldp_neighbors implementation for s350""" """get_lldp_neighbors implementation for s350"""
neighbors = {} neighbors = {}
output = self._send_command('show lldp neighbors') output = self._send_command("show lldp neighbors")
header = True # cycle trought header header = True # cycle trought header
local_port = '' # keep previous context - multiline syname local_port = "" # keep previous context - multiline syname
remote_port = '' remote_port = ""
remote_name = '' remote_name = ""
for line in output.splitlines(): for line in output.splitlines():
if header: if header:
# last line of header # last line of header
match = re.match(r'^--------- -+ .*$', line) match = re.match(r"^--------- -+ .*$", line)
if match: if match:
header = False header = False
fields_end = self._get_lldp_neighbors_fields_end(line) fields_end = self._get_lldp_neighbors_fields_end(line)
@@ -532,7 +549,7 @@ class S350Driver(NetworkDriver):
line_elems = self._get_lldp_neighbors_line_to_fields(line, fields_end) line_elems = self._get_lldp_neighbors_line_to_fields(line, fields_end)
# info owerflow to the other line # info owerflow to the other line
if line_elems[0] == '' or line_elems[4] == '' or line_elems[5] == '' : if line_elems[0] == "" or line_elems[4] == "" or line_elems[5] == "":
# complete owerflown fields # complete owerflown fields
local_port = local_port + line_elems[0] local_port = local_port + line_elems[0]
remote_port = remote_port + line_elems[2] remote_port = remote_port + line_elems[2]
@@ -543,17 +560,21 @@ class S350Driver(NetworkDriver):
remote_port = line_elems[2] remote_port = line_elems[2]
remote_name = line_elems[3] remote_name = line_elems[3]
local_port = canonical_interface_name(local_port)
neighbor = { neighbor = {
'hostname': remote_name, "hostname": remote_name,
'port': remote_port, "port": remote_port,
} }
neighbor_list = [neighbor, ] neighbor_list = [
neighbor,
]
neighbors[local_port] = neighbor_list neighbors[local_port] = neighbor_list
return neighbors return neighbors
def _get_lldp_neighbors_line_to_fields(self, line, fields_end): def _get_lldp_neighbors_line_to_fields(self, line, fields_end):
""" dynamic fields lenghts """ """dynamic fields lenghts"""
line_elems = {} line_elems = {}
index = 0 index = 0
f_start = 0 f_start = 0
@@ -564,9 +585,9 @@ class S350Driver(NetworkDriver):
return line_elems return line_elems
def _get_lldp_neighbors_fields_end(self, dashline): def _get_lldp_neighbors_fields_end(self, dashline):
""" fields length are diferent device to device, detect them on horizontal lin """ """fields length are diferent device to device, detect them on horizontal line"""
fields_end = [m.start() for m in re.finditer(' ', dashline)] fields_end = [m.start() for m in re.finditer(" ", dashline)]
fields_end.append(len(dashline)) fields_end.append(len(dashline))
return fields_end return fields_end
@@ -576,9 +597,9 @@ class S350Driver(NetworkDriver):
Safe-ish method to get the value from an 'lldp neighbors $IF' line. Safe-ish method to get the value from an 'lldp neighbors $IF' line.
""" """
try: try:
value = line.split(':')[1:][0].strip() value = line.split(":")[1:][0].strip()
except KeyError: except KeyError:
value = u'N/A' value = "N/A"
return value return value
@@ -593,45 +614,59 @@ class S350Driver(NetworkDriver):
if interface: if interface:
if interface == local_port: if interface == local_port:
entry = self._get_lldp_neighbors_detail_parse(local_port) entry = self._get_lldp_neighbors_detail_parse(local_port)
details[local_port] = [entry, ] local_port = canonical_interface_name(local_port)
details[local_port] = [
entry,
]
else: else:
entry = self._get_lldp_neighbors_detail_parse(local_port) entry = self._get_lldp_neighbors_detail_parse(local_port)
details[local_port] = [entry, ] local_port = canonical_interface_name(local_port)
details[local_port] = [
entry,
]
return details return details
def _get_lldp_neighbors_detail_parse(self, local_port): def _get_lldp_neighbors_detail_parse(self, local_port):
# Set defaults, just in case the remote fails to provide a field. # Set defaults, just in case the remote fails to provide a field.
remote_port_id, remote_port_description, remote_chassis_id, \ (
remote_system_name, remote_system_description, \ remote_port_id,
remote_system_capab, remote_system_enable_capab = (u'N/A',) * 7 remote_port_description,
remote_chassis_id,
remote_system_name,
remote_system_description,
remote_system_capab,
remote_system_enable_capab,
) = ("N/A",) * 7
output = self._send_command('show lldp neighbors {}'.format(local_port)) output = self._send_command("show lldp neighbors {}".format(local_port))
for line in output.splitlines(): for line in output.splitlines():
if line.startswith('Port ID'): if line.startswith("Port ID"):
remote_port_id = line.split()[-1] remote_port_id = line.split()[-1]
elif line.startswith('Device ID'): elif line.startswith("Device ID"):
remote_chassis_id = line.split()[-1] remote_chassis_id = line.split()[-1]
elif line.startswith('Port description'): elif line.startswith("Port description"):
remote_port_description = self._get_lldp_line_value(line) remote_port_description = self._get_lldp_line_value(line)
elif line.startswith('System Name'): elif line.startswith("System Name"):
remote_system_name = self._get_lldp_line_value(line) remote_system_name = self._get_lldp_line_value(line)
elif line.startswith('System description'): elif line.startswith("System description"):
remote_system_description = self._get_lldp_line_value(line) remote_system_description = self._get_lldp_line_value(line)
elif line.startswith('Capabilities'): elif line.startswith("Capabilities"):
caps = self._get_lldp_neighbors_detail_capabilities_parse(line) caps = self._get_lldp_neighbors_detail_capabilities_parse(line)
remote_port_id = canonical_interface_name(remote_port_id)
entry = { entry = {
'parent_interface': u'N/A', "parent_interface": "N/A",
'remote_port': remote_port_id, "remote_port": remote_port_id,
'remote_port_description': remote_port_description, "remote_port_description": remote_port_description,
'remote_chassis_id': remote_chassis_id, "remote_chassis_id": remote_chassis_id,
'remote_system_name': remote_system_name, "remote_system_name": remote_system_name,
'remote_system_description': remote_system_description, "remote_system_description": remote_system_description,
'remote_system_capab': caps, "remote_system_capab": caps,
'remote_system_enable_capab': caps, "remote_system_enable_capab": caps,
} }
return entry return entry
@@ -640,7 +675,7 @@ class S350Driver(NetworkDriver):
# Only the enabled capabilities are displayed. # Only the enabled capabilities are displayed.
try: try:
# Split a line like 'Capabilities: Bridge, Router, Wlan-Access-Point' # Split a line like 'Capabilities: Bridge, Router, Wlan-Access-Point'
capabilities = line.split(':')[1:][0].split(',') capabilities = line.split(":")[1:][0].split(",")
except KeyError: except KeyError:
capabilities = [] capabilities = []
@@ -649,8 +684,8 @@ class S350Driver(NetworkDriver):
# is the first character. # is the first character.
for cap in capabilities: for cap in capabilities:
cap = cap.strip() cap = cap.strip()
if cap == 'Repeater': if cap == "Repeater":
caps.append('r') caps.append("r")
else: else:
caps.append(cap[0]) caps.append(cap[0])
@@ -659,9 +694,9 @@ class S350Driver(NetworkDriver):
def get_ntp_servers(self): def get_ntp_servers(self):
"""Returns NTP servers.""" """Returns NTP servers."""
ntp_servers = {} ntp_servers = {}
output = self._send_command('show sntp status') output = self._send_command("show sntp status")
servers = re.findall(r'^Server\s*:\s*(\S+)\s*.*$', output, re.M) servers = re.findall(r"^Server\s*:\s*(\S+)\s*.*$", output, re.M)
for server in servers: for server in servers:
ntp_servers[server] = {} ntp_servers[server] = {}
@@ -673,18 +708,18 @@ class S350Driver(NetworkDriver):
null = chr(0) null = chr(0)
if self.device is None: if self.device is None:
return {'is_alive': False} return {"is_alive": False}
# Send a NUL byte to keep the connection alive. # Send a NUL byte to keep the connection alive.
try: try:
self.device.write_channel(null) self.device.write_channel(null)
return {'is_alive': self.device.remote_conn.transport.is_active()} return {"is_alive": self.device.remote_conn.transport.is_active()}
except (socket.error, EOFError): except (socket.error, EOFError):
# If we couldn't send it, the connection is not available. # If we couldn't send it, the connection is not available.
return {'is_alive': False} return {"is_alive": False}
# If we made it here, assume the worst. # If we made it here, assume the worst.
return {'is_alive': False} return {"is_alive": False}
@property @property
def dest_file_system(self): def dest_file_system(self):
-1
View File
@@ -1 +0,0 @@
"""napalm.utils package."""
@@ -1,8 +0,0 @@
Value DOMAIN_NAME ([\w+.]+)
Start
^\s+Domain\s+Source\s+Interface\s+Preference -> Domains
^\s+Source\s+Interface\s+Preference\s+Domain -> Domains
Domains
^${DOMAIN_NAME} -> Record End
+14 -11
View File
@@ -1,11 +1,14 @@
black==20.8b1 napalm>=4.0.0
coveralls==2.1.2 netmiko>=4.0.0
ddt==1.4.1 black>=24.3.0 # CVE-2024-21503
flake8-import-order==0.18.1 coveralls
pytest==5.4.3 ddt
pytest-cov==2.10.1 flake8-import-order
pytest-json==0.4.0 pytest
pytest-pythonpath==0.7.3 pytest-cov
pylama==7.7.1 pytest-json
mock==4.0.2 pytest-pythonpath
tox==3.20.1 pylama
pyflakes
mock
tox
+3 -3
View File
@@ -1,3 +1,3 @@
napalm>=3.0.0 napalm>=4.0.0
netmiko>=3.1.0 netmiko>=4.0.0
netaddr netaddr>=1.2.1
+14 -11
View File
@@ -2,7 +2,7 @@
from setuptools import setup, find_packages from setuptools import setup, find_packages
__author__ = 'Jasper Lievisse Adriaanse <j@jasper.la>' __author__ = "Jasper Lievisse Adriaanse <j@jasper.la>"
with open("requirements.txt", "r") as fs: with open("requirements.txt", "r") as fs:
reqs = [r for r in fs.read().splitlines() if (len(r) > 0 and not r.startswith("#"))] reqs = [r for r in fs.read().splitlines() if (len(r) > 0 and not r.startswith("#"))]
@@ -12,7 +12,7 @@ with open("README.md", "r") as fs:
setup( setup(
name="napalm-s350", name="napalm-s350",
version="0.3.0", version="0.5.1",
packages=find_packages(exclude=("test*",)), packages=find_packages(exclude=("test*",)),
author="Jasper Lievisse Adriaanse, Petr Klíma, Daniel Bacher", author="Jasper Lievisse Adriaanse, Petr Klíma, Daniel Bacher",
author_email="j@jasper.la, qaxi@seznam.cz, mail@phill93.de", author_email="j@jasper.la, qaxi@seznam.cz, mail@phill93.de",
@@ -21,15 +21,18 @@ setup(
long_description=long_description, long_description=long_description,
long_description_content_type="text/markdown", long_description_content_type="text/markdown",
classifiers=[ classifiers=[
'Topic :: Utilities', "Topic :: Utilities",
'License :: OSI Approved :: Apache Software License', "License :: OSI Approved :: Apache Software License",
'Programming Language :: Python', "Programming Language :: Python",
'Programming Language :: Python :: 3', "Programming Language :: Python :: 3",
'Programming Language :: Python :: 3.6', "Programming Language :: Python :: 3.8",
'Programming Language :: Python :: 3.7', "Programming Language :: Python :: 3.9",
'Programming Language :: Python :: 3.8', "Programming Language :: Python :: 3.10",
'Operating System :: POSIX :: Linux', "Programming Language :: Python :: 3.11",
'Operating System :: MacOS', "Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
], ],
url="https://github.com/napalm-automation-community/napalm-s350", url="https://github.com/napalm-automation-community/napalm-s350",
include_package_data=True, include_package_data=True,
@@ -0,0 +1,6 @@
Total number of entries: 1
VLAN Interface IP address HW address status
--------------------- --------------- ------------------- ---------------
vlan 11 gi19 10.7.3.5 00:2d:b9:58:4e:1d dynamic
@@ -0,0 +1,43 @@
Name/address lookup is enabled
Domain Timeout: 2 seconds
Domain Retry: 1 times
Domain Polling Interval: 8 seconds
Default Domain Table
Domain Source Interface Preference
-------------------------------------------- ------- --------- ----------
abnam.example.com static
Name Server Table
IP Address Source Interface Preference
-------------------------------------------- ------- --------- ----------
fe80::1%vlan1 DHCPv6 vlan 1 1
Cache Table
Flags: (STA/DYN, OK/NE/??)
STA - Static, DYN - Dynamic
OK - Okay, NE - Negative Cache, ?? - No Response
Remaining
Host Addresses Type State TTL
------------------------- ------------------------ ---- ------ ----------
pool.ntp.org no resolution IPv4 DYN,??
time-pnp.cisco.com no resolution IPv6 DYN,??
time-pnp.cisco.com no resolution IPv4 DYN,??
time-a.timefreq.bldrdoc.g no resolution IPv6 DYN,??
ov
time-a.timefreq.bldrdoc.g no resolution IPv4 DYN,??
ov
time-b.timefreq.bldrdoc.g no resolution IPv6 DYN,??
ov
time-b.timefreq.bldrdoc.g no resolution IPv4 DYN,??
ov
time-c.timefreq.bldrdoc.g no resolution IPv6 DYN,??
ov
time-c.timefreq.bldrdoc.g no resolution IPv4 DYN,??
ov
@@ -0,0 +1,33 @@
S-VLAN Ethernet Type: 0x8100 (802.1q)
VLAN Mapping Tunnel L2 protocols Global CoS: 5
Name: gi8
Switchport: enable
Administrative Mode: access
Operational Mode: up
Access Mode VLAN: 80
Access Multicast TV VLAN: none
Trunking Native Mode VLAN: 1
Trunking VLANs: 1,11,90
2-10,12-89,81-4094 (Inactive)
General PVID: 1
General VLANs: none
General Egress Tagged VLANs: none
General Forbidden VLANs: none
General Ingress Filtering: enabled
General Acceptable Frame Type: all
General GVRP status: disabled
Customer Mode VLAN: none
Customer Multicast TV VLANs: none
Private-vlan promiscuous-association primary VLAN: none
Private-vlan promiscuous-association Secondary VLANs: none
Private-vlan host-association primary VLAN: none
Private-vlan host-association Secondary VLAN: none
VLAN Mapping Tunnel - no resources
VLAN Mapping One-To-One - no resources
Classification rules:
Classification type Group ID VLAN ID
------------------- -------- -------
@@ -0,0 +1,41 @@
Port Description
------- -----------
gi1
gi2
gi3
gi4
gi5 server
gi6
gi7
gi8
gi9
gi10
gi11
gi12
gi13
gi14
gi15
gi16
gi17
gi18
gi19
gi20
gi21
gi22
gi23
gi24
gi25
gi26
gi27
gi28
Ch Description
------- -----------
Po1
Po2
Po3
Po4
Po5
Po6
Po7
Po8
@@ -0,0 +1,43 @@
Flow Link Back Mdix
Port Type Duplex Speed Neg ctrl State Pressure Mode
-------- ------------ ------ ----- -------- ---- ----------- -------- -------
gi1 1G-Copper Full 100 Enabled Off Up Disabled Off
gi2 1G-Copper -- -- -- -- Down -- --
gi3 1G-Copper Full 100 Enabled Off Up Disabled Off
gi4 1G-Copper Full 100 Enabled Off Up Disabled Off
gi5 1G-Copper Full 100 Enabled Off Up Disabled Off
gi6 1G-Copper -- -- -- -- Down -- --
gi7 1G-Copper -- -- -- -- Down -- --
gi8 1G-Copper Full 1000 Enabled Off Up Disabled On
gi9 1G-Copper Full 1000 Enabled Off Up Disabled Off
gi10 1G-Copper Full 1000 Enabled Off Up Disabled On
gi11 1G-Copper -- -- -- -- Down -- --
gi12 1G-Copper Full 1000 Enabled Off Up Disabled Off
gi13 1G-Copper -- -- -- -- Down -- --
gi14 1G-Copper Full 1000 Enabled Off Up Disabled Off
gi15 1G-Copper -- -- -- -- Down -- --
gi16 1G-Copper Full 1000 Enabled Off Up Disabled On
gi17 1G-Copper -- -- -- -- Down -- --
gi18 1G-Copper Full 1000 Enabled Off Up Disabled On
gi19 1G-Copper Full 1000 Enabled Off Up Disabled On
gi20 1G-Copper -- -- -- -- Down -- --
gi21 1G-Copper -- -- -- -- Down -- --
gi22 1G-Copper -- -- -- -- Down -- --
gi23 1G-Copper -- -- -- -- Down -- --
gi24 1G-Copper -- -- -- -- Down -- --
gi25 1G-Fiber -- -- -- -- Down -- --
gi26 1G-Fiber -- -- -- -- Down -- --
gi27 1G-Fiber -- -- -- -- Down -- --
gi28 1G-Fiber -- -- -- -- Down -- --
Flow Link
Ch Type Duplex Speed Neg control State
-------- ------- ------ ----- -------- ------- -----------
Po1 -- -- -- -- -- Not Present
Po2 -- -- -- -- -- Not Present
Po3 -- -- -- -- -- Not Present
Po4 -- -- -- -- -- Not Present
Po5 -- -- -- -- -- Not Present
Po6 -- -- -- -- -- Not Present
Po7 -- -- -- -- -- Not Present
Po8 -- -- -- -- -- Not Present
@@ -0,0 +1,2 @@
NAME: "1" DESCR: "CBS350-24P-4G 24-Port Gigabit PoE Managed Switch"
PID: CBS350-24P-4G VID: V01 SN: FOC5732A91L
@@ -0,0 +1,6 @@
IP Address I/F I/F Status Type Directed Prec Redirect Status
admin/oper Broadcast
------------------ --------- ---------- ------- --------- ---- -------- ------
10.0.0.150/24 vlan 80 UP/UP Static disable No enable Valid
10.1.2.2/24 vlan 10 UP/UP Static disable No enable Valid
@@ -0,0 +1,5 @@
Interface Interface IPv6 Link Local MLD Number of
State State IPv6 Address Version Global Addresses
---------- --------- --------- ------------------------- ------- ----------------
vlan 1 up/down enabled fe80::a6b2:39ff:fee4:6b8f 2 0
@@ -0,0 +1,30 @@
Device ID: a4:b2:d9:a4:4b:6f
Port ID: a4:b2:d9:a4:4b:97
Capabilities: Bridge, Router
System Name: sw-abnam-cde-q
Management address: 11.2.5.245
802.3 Power Via Mdi:
MDI Power support Port Class: PSE
PSE MDI Power Support: Supported
PSE MDI Power State: Enabled
PSE power pair control ability: Not supported
PSE Power Pair: Spare
PSE Power class: 0
Power Type: Type 2 PSE
Power Source: Primary Power Source
Power Priority: low
PSE Allocated Power Value: 13.0
802.3 EEE:
Local Tx: 17 uSec
Local Rx: 17 uSec
Local Tx Echo: 17 uSec
Local Rx Echo: 17 uSec
802.1 PVID: 80
802.1 PPVID:
802.1 VLAN:
802.1 Protocol:
@@ -0,0 +1,13 @@
System capability legend:
B - Bridge; R - Router; W - Wlan Access Point; T - telephone;
D - DOCSIS Cable Device; H - Host; r - Repeater;
TP - Two Ports MAC Relay; S - S-VLAN; C - C-VLAN; O - Other
Port Device ID Port ID System Name Capabilities TTL
--------- ----------------- ----------------- ----------------- ------------ -----
gi8 78:b2:b9:95:56:2a 78:b2:b9:95:56:2a APLobby B, W 97
gi9 78:b2:b9:95:56:49 78:b2:b9:95:56:49 APlut B, W 138
gi13 78:b2:b9:b5:4a:9c 78:b2:b9:b5:4a:9c APModr B, W 135
gi12 78:b2:b9:95:57:3a 78:b2:b9:95:57:3a APZelen B, W 117
gi14 dc:4a:5e:56:8f:36 dc:4a:5e:56:8f:36 O 5586
gi16 e3:65:da:32:be:43 e3:65:da:32:be:43 APerven B, W 98
@@ -0,0 +1,46 @@
Device ID: 75:e6:b9:83:56:2a
Port ID: 75:e6:b9:83:56:2a
Capabilities: Bridge, Wlan-Access-Point
System Name: APLobby
System description: AP-UF, 5.2.28.18361
Port description: bri0
Management Address: 11.2.6.7
Management Address: 2a00:1028:96d4:b546:768c:b97f:fe93:562a
Time To Live: 95
802.3 MAC/PHY Configuration/Status
Auto-negotiation support: Not supported
Auto-negotiation status: Disabled
Auto-negotiation Advertised Capabilities:
Operational MAU type: Unknown
802.3 Link Aggregation
Aggregation capability: Capable of being aggregated
Aggregation status: Currently not in aggregation
802.3 EEE:
Remote Tx: 17 uSec
Remote Rx: 17 uSec
Remote Tx Echo: 17 uSec
Remote Rx Echo: 17 uSec
802.1 PVID: None
802.1 PPVID:
802.1 VLAN:
802.1 Protocol:
LLDP-MED capabilities: Capabilities, Network Policy, Location, POE-PSE, POE-PD, Inventory
LLDP-MED Device Type: Network Connectivity
Hardware revision:
Firmware revision:
Software revision: 5.2.28.18361
Serial number:
Manufacturer name:
Model name:
Asset ID:
@@ -0,0 +1,2 @@
Jumbo frames are disabled
Jumbo frames will be disabled after reset
@@ -0,0 +1,125 @@
config-file-header
sw-naam-1
v3.0.0.61 / RCBS3.0_930_770_007
CLI v1.0
file SSD indicator encrypted
@
ssd-control-start
ssd config
ssd file passphrase control unrestricted
no ssd file integrity control
ssd-control-end cb0a3fdb1f3a1af4e4430033719968c0
!
!
unit-type-control-start
unit-type unit 1 network gi uplink none
unit-type-control-end
!
vlan database
vlan 11,90
exit
voice vlan oui-table add 0001e3 Siemens_AG_phone
voice vlan oui-table add 00036b Cisco_phone
voice vlan oui-table add 00096e Avaya
voice vlan oui-table add 000fe2 H3C_Aolynk
voice vlan oui-table add 0060b9 Philips_and_NEC_AG_phone
voice vlan oui-table add 00d01e Pingtel_phone
voice vlan oui-table add 00e075 Polycom/Veritel_phone
voice vlan oui-table add 00e0bb 3Com_phone
bonjour interface range vlan 1
hostname sw-naam-1
passwords complexity min-classes 1
passwords aging 0
username asrnm password encrypted $15$hOXXXXXxxxxxtmvz$sGZ57FXMuPRKztgPwpiW4p3c2YQLX1BSr3B5mYiBowArSTInvxasXF1umt+b2zU71rN5ghTlqmJOK9lcFBN7Qw== privilege 15
username alima password encrypted $15$y3XXXXXxxxxxzE8o3$1QPeSz4ZkQwpv+TTFr8AFivLAEqLbuIbA6Zi47sUAjWsjT3ZgH83/d2zIkbZorN/ycex1Q+6omIfCuE5e3jQTw== privilege 15
ip ssh server
ip ssh password-auth
ip ssh pubkey-auth
ip domain name iab.example.com
ip telnet server
!
interface vlan 1
no ip address dhcp
!
interface vlan 11
name LAN-Madeta
ip address 11.5.8.9 255.255.255.0
!
interface vlan 90
name LAN-Internet
ip address 12.9.8.254 255.255.255.0
!
interface GigabitEthernet1
switchport access vlan 90
!
interface GigabitEthernet2
switchport access vlan 90
!
interface GigabitEthernet3
switchport access vlan 90
!
interface GigabitEthernet4
switchport access vlan 90
!
interface GigabitEthernet5
switchport access vlan 90
!
interface GigabitEthernet6
switchport access vlan 90
!
interface GigabitEthernet7
switchport access vlan 90
!
interface GigabitEthernet8
switchport access vlan 90
!
interface GigabitEthernet9
switchport access vlan 90
!
interface GigabitEthernet10
switchport access vlan 90
!
interface GigabitEthernet11
switchport access vlan 90
!
interface GigabitEthernet12
switchport access vlan 90
!
interface GigabitEthernet13
switchport access vlan 90
!
interface GigabitEthernet14
switchport access vlan 90
!
interface GigabitEthernet15
switchport access vlan 90
!
interface GigabitEthernet16
switchport access vlan 90
!
interface GigabitEthernet17
switchport access vlan 90
!
interface GigabitEthernet18
switchport access vlan 90
!
interface GigabitEthernet19
switchport access vlan 11
!
interface GigabitEthernet20
switchport access vlan 11
!
interface GigabitEthernet21
switchport access vlan 11
!
interface GigabitEthernet22
switchport access vlan 11
!
interface GigabitEthernet23
switchport access vlan 11
!
interface GigabitEthernet24
switchport access vlan 11
!
exit
ip default-gateway 11.5.8.1
@@ -0,0 +1,396 @@
config-file-header
sw-aaanam-1
v3.0.0.61 / RCBS3.0_930_770_007
CLI v1.0
file SSD indicator encrypted
@
ssd-control-start
ssd config
ssd file passphrase control unrestricted
no ssd file integrity control
ssd-control-end cb0a3fdb1f3a1af4e4430033719968c0
!
!
unit-type-control-start
unit-type unit 1 network gi uplink none
unit-type-control-end
!
vlan database
vlan 11,90
exit
voice vlan oui-table add 0001e3 Siemens_AG_phone
voice vlan oui-table add 00036b Cisco_phone
voice vlan oui-table add 00096e Avaya
voice vlan oui-table add 000fe2 H3C_Aolynk
voice vlan oui-table add 0060b9 Philips_and_NEC_AG_phone
voice vlan oui-table add 00d01e Pingtel_phone
voice vlan oui-table add 00e075 Polycom/Veritel_phone
voice vlan oui-table add 00e0bb 3Com_phone
bonjour interface range vlan 1
hostname sw-aaanam-1
passwords complexity min-classes 1
passwords aging 0
username asrdn password encrypted $15$hOzXQXXXXXxxxxxz$sGZ57FXMuPRKztgPwpiW4p3c2YQLX1BSr3B5mYiBowArSTInvxasXF1umt+b2zU71rN5ghTlqmJOK9lcFBN7Qw== privilege 15
username alima password encrypted $15$y3ZXXXXXxxxxx8o3$1QPeSz4ZkQwpv+TTFr8AFivLAEqLbuIbA6Zi47sUAjWsjT3ZgH83/d2zIkbZorN/ycex1Q+6omIfCuE5e3jQTw== privilege 15
ip ssh server
ip ssh password-auth
ip ssh pubkey-auth
ip domain name aaanam.example.com
ip telnet server
!
interface vlan 1
no ip address dhcp
!
interface vlan 11
name LAN-Madeta
ip address 11.7.6.2 255.255.255.0
!
interface vlan 90
name LAN-Internet
ip address 12.5.8.254 255.255.255.0
!
interface GigabitEthernet1
switchport access vlan 90
!
interface GigabitEthernet2
switchport access vlan 90
!
interface GigabitEthernet3
switchport access vlan 90
!
interface GigabitEthernet4
switchport access vlan 90
!
interface GigabitEthernet5
switchport access vlan 90
!
interface GigabitEthernet6
switchport access vlan 90
!
interface GigabitEthernet7
switchport access vlan 90
!
interface GigabitEthernet8
switchport access vlan 90
!
interface GigabitEthernet9
switchport access vlan 90
!
interface GigabitEthernet10
switchport access vlan 90
!
interface GigabitEthernet11
switchport access vlan 90
!
interface GigabitEthernet12
switchport access vlan 90
!
interface GigabitEthernet13
switchport access vlan 90
!
interface GigabitEthernet14
switchport access vlan 90
!
interface GigabitEthernet15
switchport access vlan 90
!
interface GigabitEthernet16
switchport access vlan 90
!
interface GigabitEthernet17
switchport access vlan 90
!
interface GigabitEthernet18
switchport access vlan 90
!
interface GigabitEthernet19
switchport access vlan 11
!
interface GigabitEthernet20
switchport access vlan 11
!
interface GigabitEthernet21
switchport access vlan 11
!
interface GigabitEthernet22
switchport access vlan 11
!
interface GigabitEthernet23
switchport access vlan 11
!
interface GigabitEthernet24
switchport access vlan 11
!
exit
ip default-gateway 11.7.6.1
encrypted ip ssh-client key rsa key-pair
---- BEGIN SSH2 ENCRYPTED PRIVATE KEY ----
Comment: RSA Private Key
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
---- END SSH2 PRIVATE KEY ----
---- BEGIN SSH2 PUBLIC KEY ----
Comment: RSA Public Key
AAAAB3NzaC1yc2EAAAADAQABAAABAQDHbAMRTeA7PnweI4t1AGl5jFWqw8dFGVVpFmygnz
aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD
aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD
TwGD/i22JOWR14Ka46YzxtJMV8aHSYh/wGAEhaae3rCpDzm9Dy9Pq623Tqa6GZVFxVtp6U
aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD
aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD
x5D2iCf32VWmXQVvyRLb1P
---- END SSH2 PUBLIC KEY ----
.
encrypted ip ssh-client key dsa key-pair
---- BEGIN SSH2 ENCRYPTED PRIVATE KEY ----
Comment: DSA Private Key
b9F76lXM867lGwXasfZiqWloCE23zJND5qW/48AibvqF/JYHd0Bvennlt56Vll7tphjh0I
aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD
n9YDWfAVakuF7qXgeaPGrDKf4APj+wjSJ6tqBHmPLWxmy+7563Vc1z6WciCIPUii1TLsHW
y+epTzR7BO7EOmOi3a5CdYtrBSz5PnPdjA6A6MiQHGxd7o074+E9nYp4oj4Ge74x6yWegO
aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD
tN+GZZ4iQvikojD2KRk8OKg8JtCouMTYtep/5b65ddM/sA2blJhSjgIaPk48MejraFww+Z
SN2IvyKSKqTfe8/K0af7+Pq53KOMvDPJJzTPEYVM3JCapk+zO8F+yo11hcJVK1gjiq921R
aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD
YY3o+Okx/RdLXumHc4MQ1SunCyM1udY5eMpX5J2yYybGczlDeXwHrq7CQZQWi2X6YJdqvP
aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD
6FYp7NT0WDtrNenb9kaxpzozQqv0xMfPVFAqHeFGiYaH233yYZz+9EmaIoyXm4A1siWVPh
KXPvOYV/o3llDhQL2+1sOZ+TDSbfK8mPHT2s5vKl6bvMMbmr/aKsbm6l9n5BlX
---- END SSH2 PRIVATE KEY ----
---- BEGIN SSH2 PUBLIC KEY ----
Comment: DSA Public Key
AAAAB3NzaC1kc3MAAACBAL6bfj98tuqZD4TNqa7U5qUZT73Seks4Zf9Ui1SytAkwp7iTNS
aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD
zK4QhOS2kJ8Ra4lVUFLN2gFAn7sP4mH0MkRXp5QVXT3feCK8N+KrTdahZrUFeK+/Phyi4l
aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD
YVRBO0Tijyww/UGWWCS1kg92kpviKFhpGxsTJXIQg6wmEuj5sfD5AAAAFQD4zfyZn49DWS
aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD
wCCHWgB7lf+uwvgQAAAIBw2CJzwH+1SBlqdhz/Y6NWqcea3shXIB2hgZBJF3WB2kI1BKf4
aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD
6hDuxAgld0ErrLR5aMk=
---- END SSH2 PUBLIC KEY ----
.
encrypted crypto key import rsa
---- BEGIN SSH2 ENCRYPTED PRIVATE KEY ----
Comment: RSA Private Key
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
---- END SSH2 PRIVATE KEY ----
---- BEGIN SSH2 PUBLIC KEY ----
Comment: RSA Public Key
AAAAB3NzaC1yc2EAAAADAQABAAABAQDFgFS81W02NtPMFaNJAiKmEd5K6R9sKbu5Y3DkAv
aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD
aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD
eNg8ZBl57rvHT+5YeEkgBg10bE10JbtHGshTEJ+Zsw1eO+uZIc9HampeJXZ8mjbbGq8adY
2QGOc3YZlPXVRdmsVXQizwnAHMgJNaYl1DOxXnXVT4Q0g1TdwPSjorT84+hXXqQVqviJ5Z
bkKJigP58dzaavJvxVftHH
---- END SSH2 PUBLIC KEY ----
.
encrypted crypto key import dsa
---- BEGIN SSH2 ENCRYPTED PRIVATE KEY ----
Comment: DSA Private Key
Uw2f+cWbGpEZgy+01zv5nM5Rf5j6QKdKc7taOtPwAl4KmmT9ePuHMnRFq78KBMmSYJA9ED
aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD
nacBKVSRsNRJotrUC6LhdwtfluTATiNO/98vuc5G23Cg2Ngj5vgoLPr6Soi5/mD/LQnTLd
dgne9gNCd5SJo1rUU3k27WT1nLnQP7Zh+wdnYHyYjGz6DSx4g5pGa3PTORT4O/2Ae/v9r7
aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD
aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD
X03j8r61fs6WZbf4jv0m5jWWV/+ecLP/4cIJcDL9K6naQT9WneFaoMQA6Tjb3WOQzqhC3X
KeS13OJ0Yt8TUHhEZc5zPlbcYTWQfVio/U5bEQrkS/jTULISsZO4jJ2LaX4fJ8hR+9ztGk
ZhCkCQmWc/8sGPY8LvrjIEbJhv6Ffrz/oADvW6/zbD4rebwS5h2Lf1SrLTvjfvneWJx1Jm
aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD
W+fyzggadRJBwDvT9l9Wf5pH8WJ7WOV8hAJ4t5BBMol0wjpVi5DIPQ8+EZbrPRthhq9vpv
DReyeaQVlz4+o7jGqNKHOMpTu9PNth5fvDh3FwE2FvxDcAFrEFKyGLiPlwrXI+
---- END SSH2 PRIVATE KEY ----
---- BEGIN SSH2 PUBLIC KEY ----
Comment: DSA Public Key
AAAAB3NzaC1kc3MAAACBAMpS4LqdDFtb2rCMreOwrE2v5pIgJjYe1wAxopu1DNuWZGvUe8
fKYr9etW49/G8h7SoRrYZxS7zVraV5GlOtoak3YGpCvt6QAM9hGHkMcH+YzCzA5t6Gi+vs
aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD
PD2MC4YIvgLNyYSpP/NqFq0G9S/ckiLzlP75mjrkn4GWlXp6XghxAAAAFQCVLvfzHmNpyc
1w5n0/mMfLOEYBUQAAAIBAJx3813/J8BTsJZ+yBYSM+/c1JSx8j04Uvp0jCy4ndya0p2VO
aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD
hOJN7+Bvyxzs0yUXMamzjDse9tkRsi/mQSSmGKIbpM6Kl3wedS7uirqDSNHLgEPUbc7cpX
VzYt9WlxEZokN+gQLSXmSxyatknNyUB1I8S55Ljow7q0J0t2E/+QNSzCIterVNHW18Ca2U
6F0PWFzFQ9mjpb/2Oxs=
---- END SSH2 PUBLIC KEY ----
.
encrypted crypto certificate 1 import
-----BEGIN RSA ENCRYPTED PRIVATE KEY-----
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
-----END RSA PRIVATE KEY-----
-----BEGIN RSA PUBLIC KEY-----
MIIBCgKCAQEApGzYKCV12CNtDdkGHrFCjr2Ic5MklyXf9W3DmJuzQbdDIib/0QiwKK3gx4
aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD
aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD
KVDB+QPVwzT+j9+4J2UICf2jQYJs3Aypol10OEHphHsJ3PjxlhgXSFydUTetC14SYlqZMt
lokroXWhoIGv/sj7al/DHCKr33uPNF3yoOD/8NyYjJDcUOZpQebqQcXLnhHIo0NCCjR0ID
l6twIDAQAB
-----END RSA PUBLIC KEY-----
-----BEGIN CERTIFICATE-----
MIIDJzCCAg8CEGRF05GRhjAxsiFws76YAC4wDQYJKoZIhvcNAQELBQAwUjELMAkG
aaaaaaaaaaBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD
A1UEBhMCICAxCjAIBgNVBAgMASAxCjAIBgNVBAcMASAxEzARBgNVBAMMCjEwLjAu
aaaaaaaaaaBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD
MjIwNjE4MDgzMzU3WjBSMQswCQYDVQQGEwIgIDEKMAgGA1UECAwBIDEKMAgGA1UE
aaaaaaaaaaBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD
IDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKRs2CglddgjbQ3ZBh6x
CM4yOcMoZ+ws9KIDUOmIWVmDujj7fL+JG94G79z1bQK0joyrX2p8uzExEpnpaGEK
ItVsxDVwSI28SFHbPD0eJnIDb3Lrt9QGQaACeF1dqOBLGWLq0QFilQwfkD1cM0/o
/fuCdlCAn9o0GCbNwMqaJddDhB6YR7Cdz48ZYYF0hcnVE3rQteEmJamTLZaJK6F1
oaCBr/7I+2pfwxwiq997jzRd8qDg//DcmIyQ3FDmaUHm6kHFy54RyKNDQgo0dCA5
ercCAwEAATANBgkqhkiG9w0BAQsFAAOCAQEABd2z/OzvNSB3Vl2piK20ESpDAmab
so4C51pU+odY+HyoA3VDv7oeST90EunzK9/Yju7/4EFLJa4zbOGppFtvn34TOIRq
6Yk7CCbeXPwf4B3vtJq0iCB1UID2lHToH/lQaeBS6bBNkNyKgzQAvnG1cPu7yMPW
yiO1uAYD1tLFHcTqHWgAVvm+GbG2JAC50ECNWAgz5lUuVHz4CXNBSsyUDeWxUEJS
HFFrB9cYv+OHTwNqQQElZZI8so9rGdf3LfGBUxmgwfF12prMfx83+1P7JzZdQhXr
iPNH5pknzHTX4oDnLrChNKbXslWq/BKZGg6DCT9kvN2zOhzlvIzPjXE5VQ==
-----END CERTIFICATE-----
.
encrypted crypto certificate 2 import
-----BEGIN RSA ENCRYPTED PRIVATE KEY-----
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
-----END RSA PRIVATE KEY-----
-----BEGIN RSA PUBLIC KEY-----
MIIBCgKCAQEA4QLFVAz9B2i1sX2HkNCEWOp/Olkx+7RgYWhJ5JdU8QANFz1Udoai4fP2Dx
aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD
aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD
DfpN0abkXqp5Fs/CmjAlYP75RtIm/MAipUG6y4iK9bK2zb7+d9HqztEntzNTcfO4SI0dyv
wpH0TzwuHkFz7PcKufJasawvCJ5WilOp+B51tIzCBGsLratmvXnAh5QUavORZEWs9CkEB1
BDYQIDAQAB
-----END RSA PUBLIC KEY-----
-----BEGIN CERTIFICATE-----
MIIDJzCCAg8CEENj0ARxBb6Sh9YrA4UVfWkwDQYJKoZIhvcNAQELBQAwUjELMAkG
aaaaaaaaaaBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD
A1UEBhMCICAxCjAIBgNVBAgMASAxCjAIBgNVBAcMASAxEzARBgNVBAMMCjEwLjAu
MC4xNTAxCjAIBgNVBAoMASAxCjAIBgNVBAsMASAwHhcNMjAwNjE4MDgzNDEyWhcN
aaaaaaaaaaBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD
aaaaaaaaaaBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD
MjIwNjE4MDgzNDEyWjBSMQswCQYDVQQGEwIgIDEKMAgGA1UECAwBIDEKMAgGA1UE
jtM3bSHzUXMe/30eGC7dXfC9r/4Ta5F5ravxwHC4SdfhTnElIsid6XFRfmT848Tl
aaaaaaaaaaBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD
aaaaaaaaaaBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD
Lh5Bc+z3CrnyWrGsLwieVopTqfgedbSMwgRrC62rZr15wIeUFGrzkWRFrPQpBAdQ
Q2ECAwEAATANBgkqhkiG9w0BAQsFAAOCAQEAKqTlR8mexSEC939LNq4VX4xoTXg6
le9hVdkWY6f+nqMXAjEBuTo4JMjbQJHczwK9iTQJ091Fhk+Z0u6/xiYY5kCoXkqJ
ZMyxuKpptGTHP+gRuG7uHLCvhS0j3OUogqbjkoE6JIIyfi4fdGUw0D/c9sL+TPLR
MHW1p3eIr4mQba/6m0LRzm0niiMVpVv4ZUu6ytP/24ljq/Wf82XZpm4R1PaVFeFk
fpWLXEb3jDr7eOtp2n2Hn2K99ygnCrMG++49KwRsBBcukuguei72EKFbPX8NHuDL
ymJWED5qX2ERAuem1/fDI5w56EEWq0hAOJf5GIAuEyJU+WSC5Tg7XDZFxQ==
-----END CERTIFICATE-----
.
@@ -0,0 +1,56 @@
Clock is synchronized, stratum 3, reference is time-pnp.cisco.com, unicast
Unicast servers:
Server : pool.ntp.org
Source : Static
Status : down
Last Response : 00:00:00.0 Jan 1 1900
Last Request : 12:34:59.0 UTC Mar 8 2021
Stratum Level : 255
Offset : 0.0000000 mSec
Delay : 0 mSec
Server : time-a.timefreq.bldrdoc.gov
Source : Static
Status : down
Last Response : 00:00:00.0 Jan 1 1900
Last Request : 12:34:59.0 UTC Mar 8 2021
Stratum Level : 255
Offset : 0.0000000 mSec
Delay : 0 mSec
Server : time-b.timefreq.bldrdoc.gov
Source : Static
Status : down
Last Response : 00:00:00.0 Jan 1 1900
Last Request : 12:34:59.0 UTC Mar 8 2021
Stratum Level : 255
Offset : 0.0000000 mSec
Delay : 0 mSec
Server : time-c.timefreq.bldrdoc.gov
Source : Static
Status : down
Last Response : 00:00:00.0 Jan 1 1900
Last Request : 12:34:59.0 UTC Mar 8 2021
Stratum Level : 255
Offset : 0.0000000 mSec
Delay : 0 mSec
Server : time-pnp.cisco.com
Source : Static
Status : down
Last Response : 09:04:55.0 UTC Feb 2 2021
Last Request : 12:34:59.0 UTC Mar 8 2021
Stratum Level : 3
Offset : 1071.7822163 mSec
Delay : 0 mSec
Anycast server:
Broadcast:
@@ -0,0 +1,125 @@
config-file-header
sw-aanam-1
v3.0.0.61 / RCBS3.0_930_770_007
CLI v1.0
file SSD indicator encrypted
@
ssd-control-start
ssd config
ssd file passphrase control unrestricted
no ssd file integrity control
ssd-control-end cb0a3fdb1f3a1af4e4430033719968c0
!
!
unit-type-control-start
unit-type unit 1 network gi uplink none
unit-type-control-end
!
vlan database
vlan 11,90
exit
voice vlan oui-table add 0001e3 Siemens_AG_phone
voice vlan oui-table add 00036b Cisco_phone
voice vlan oui-table add 00096e Avaya
voice vlan oui-table add 000fe2 H3C_Aolynk
voice vlan oui-table add 0060b9 Philips_and_NEC_AG_phone
voice vlan oui-table add 00d01e Pingtel_phone
voice vlan oui-table add 00e075 Polycom/Veritel_phone
voice vlan oui-table add 00e0bb 3Com_phone
bonjour interface range vlan 1
hostname sw-aaam-1
passwords complexity min-classes 1
passwords aging 0
username admin password encrypted $15$hOzXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxxxxxxxxxxxxxSr3B5mYiBowArSTInvxasXF1umt+b2zU71rN5ghTlqmJOK9lcFBN7Qw== privilege 15
username klima password encrypted $15$y3ZXXXXXXXXXXXXXXXXXXXXXXXXXXXXccccccccccccccccccccci47sUAjWsjT3ZgH83/d2zIkbZorN/ycex1Q+6omIfCuE5e3jQTw== privilege 15
ip ssh server
ip ssh password-auth
ip ssh pubkey-auth
ip domain name aanam.example.com
ip telnet server
!
interface vlan 1
no ip address dhcp
!
interface vlan 11
name LAN-Madeta
ip address 11.7.6.2 255.255.255.0
!
interface vlan 90
name LAN-Internet
ip address 12.9.7.254 255.255.255.0
!
interface GigabitEthernet1
switchport access vlan 90
!
interface GigabitEthernet2
switchport access vlan 90
!
interface GigabitEthernet3
switchport access vlan 90
!
interface GigabitEthernet4
switchport access vlan 90
!
interface GigabitEthernet5
switchport access vlan 90
!
interface GigabitEthernet6
switchport access vlan 90
!
interface GigabitEthernet7
switchport access vlan 90
!
interface GigabitEthernet8
switchport access vlan 90
!
interface GigabitEthernet9
switchport access vlan 90
!
interface GigabitEthernet10
switchport access vlan 90
!
interface GigabitEthernet11
switchport access vlan 90
!
interface GigabitEthernet12
switchport access vlan 90
!
interface GigabitEthernet13
switchport access vlan 90
!
interface GigabitEthernet14
switchport access vlan 90
!
interface GigabitEthernet15
switchport access vlan 90
!
interface GigabitEthernet16
switchport access vlan 90
!
interface GigabitEthernet17
switchport access vlan 90
!
interface GigabitEthernet18
switchport access vlan 90
!
interface GigabitEthernet19
switchport access vlan 11
!
interface GigabitEthernet20
switchport access vlan 11
!
interface GigabitEthernet21
switchport access vlan 11
!
interface GigabitEthernet22
switchport access vlan 11
!
interface GigabitEthernet23
switchport access vlan 11
!
interface GigabitEthernet24
switchport access vlan 11
!
exit
ip default-gateway 11.7.6.1
@@ -0,0 +1,20 @@
System Description: CBS350-24P-4G 24-Port Gigabit PoE Managed Switch
System Up Time (days,hour:min:sec): 34,03:58:31
System Contact:
System Name: sw-aanam-1
System Location:
System MAC Address: e4:e2:49:e8:6b:8f
System Object ID: 1.3.6.1.4.1.9.6.1.1004.28.5
Unit Type
---- ----------------------
1 CBS350-24P-4G
Unit Fans Status
---- -------------------------------------
1 Fans status is N/A
Unit Temperature (Celsius) Status
---- --------------------- ----------
1 63 OK
@@ -0,0 +1,10 @@
Active-image: flash://system/images/image1.bin
Version: 3.0.0.61
MD5 Digest: 9703a2dea9e4c07c5cb22bc6c0235bcf
Date: 18-Jun-2020
Time: 20:38:40
Inactive-image: flash://system/images/_image1.bin
Version: 3.0.0.61
MD5 Digest: 9703a2dea9e4c07c5cb22bc6c0235bcf
Date: 18-Jun-2020
Time: 20:38:40
@@ -0,0 +1,10 @@
Total number of entries: 5
VLAN Interface IP address HW address status
--------------------- --------------- ------------------- ---------------
vlan 1 gi10 30.70.0.3 00:00:0a:0a:aa:02 dynamic
vlan 1 gi10 30.70.0.3 a0:02:aa:aa:fa:aa dynamic
vlan 1 gi10 30.70.0.3 a0:02:aa:aa:fa:aa dynamic
vlan 1 gi10 30.70.3.33 00:a0:a2:a2:2f:a2 dynamic
vlan 1 gi10 30.70.33.3 aa:a2:a2:aa:fa:2a dynamic
@@ -0,0 +1,38 @@
Name/address lookup is enabled
Domain Timeout: 2 seconds
Domain Retry: 1 times
Domain Polling Interval: 8 seconds
Default Domain Table
Domain Source Interface Preference
-------------------------------------------- ------- --------- ----------
Domain name is not configured
Name Server Table
IP Address Source Interface Preference
-------------------------------------------- ------- --------- ----------
30.70.3.33 static 1
Cache Table
Flags: (STA/DYN, OK/NE/??)
STA - Static, DYN - Dynamic
OK - Okay, NE - Negative Cache, ?? - No Response
Remaining
Host Addresses Type State TTL
------------------------- ------------------------ ---- ------ ----------
tftp 30.70.3.33 IPv4 STA,OK
ntp.examples.com 30.70.3.33 IPv4 DYN,OK 0003:38:43
ntp.examples.com no resolution IPv6 DYN,??
ntp.ph.examp.com 30.30.3.33 IPv4 DYN,OK 0003:38:43
ntp.ph.examp.com no resolution IPv6 DYN,??
pnpserver.qqq.aa no resolution IPv6 DYN,NE 0020:55:13
pnpserver.qqq.aa no resolution IPv4 DYN,NE 0020:55:13
pingu.examples.com 30.70.3.33 IPv4 DYN,OK 0003:38:43
ns-cb-1.examples.com 30.70.3.300 IPv4 DYN,OK 0003:38:43
ns-cb-2.examples.com 30.70.3.300 IPv4 DYN,OK 0003:38:43
@@ -0,0 +1,23 @@
Gathering information...
Name: gi1
Switchport: enable
Administrative Mode: access
Operational Mode: up
Access Mode VLAN: 1
Trunking Native Mode VLAN: 1
Trunking VLANs: 1,7-8,10-11,30-31,100,200,480,490-491,1000-1001
2-6,9,12-29,32-99,101-199,201-479,481-489,492-999,
1002-4094 (Inactive)
General PVID: 1
General VLANs: none
General Egress Tagged VLANs: none
General Forbidden VLANs: none
General Ingress Filtering: enabled
General Acceptable Frame Type: all
General GVRP status: disabled
Customer Mode VLAN: none
Classification rules:
@@ -0,0 +1,19 @@
Port Description
------- -----------
gi1
gi2
gi3
gi4
gi5
gi6
gi7
gi8
gi9
gi10 Trunk to switchkuch-1
Ch Description
------- -----------
Po1
Po2
Po3
Po4
@@ -0,0 +1,21 @@
Flow Link Back Mdix
Port Type Duplex Speed Neg ctrl State Pressure Mode
-------- ------------ ------ ----- -------- ---- ----------- -------- -------
gi1 1G-Copper Half 10 Enabled Off Up Disabled On
gi2 1G-Copper Half 10 Enabled Off Up Disabled On
gi3 1G-Copper Full 1000 Enabled Off Up Disabled Off
gi4 1G-Copper Full 100 Enabled Off Up Disabled On
gi5 1G-Copper Full 100 Enabled Off Up Disabled On
gi6 1G-Copper Full 100 Enabled Off Up Disabled On
gi7 1G-Copper Half 10 Enabled Off Up Disabled On
gi8 1G-Copper Full 100 Enabled Off Up Disabled Off
gi9 1G-Combo-C -- -- -- -- Down -- --
gi10 1G-Combo-C Full 100 Enabled Off Up Disabled Off
Flow Link
Ch Type Duplex Speed Neg control State
-------- ------- ------ ----- -------- ------- -----------
Po1 -- -- -- -- -- Not Present
Po2 -- -- -- -- -- Not Present
Po3 -- -- -- -- -- Not Present
Po4 -- -- -- -- -- Not Present
@@ -0,0 +1,2 @@
NAME: "1" DESCR: "SG250-10P 10-Port Gigabit PoE Smart Switch"
PID: SG250-10P-K9 VID: V04 SN: ABC12234XYZ
@@ -0,0 +1,4 @@
IP Address I/F I/F Status Type Directed Prec Redirect Status
admin/oper Broadcast
------------------ --------- ---------- ------- --------- ---- -------- ------
30.70.0.37/17 vlan 1 UP/UP Static disable No enable Valid
@@ -0,0 +1,4 @@
Interface Interface IPv6 Link Local MLD Number of
State State IPv6 Address Version Global Addresses
---------- --------- --------- ------------------------- ------- ----------------
vlan 1 up/up enabled fe80::c644:a0ff:fe3b:17d2 2 0
@@ -0,0 +1,28 @@
Device ID: aa:aa:a0:22:2a:a2
Port ID: gi10
Capabilities: Bridge, Router
System Name: switch-no-2548-1
Management address: 30.70.0.37
Management address: fe80::c644:a0ff:fe3b:17d2%vlan1
802.3 Power Via Mdi:
MDI Power support Port Class: PSE
PSE MDI Power Support: Not supported
PSE MDI Power State: Not enabled
PSE power pair control ability: Not supported
PSE Power Pair: Signal
PSE Power class: 1
Power Type: Type 2 PD
Power Source: Unknown Power Source
Power Priority: unknown
PSE Allocated Power Value: 0.0
4-Pair POE supported: No
Spare Pair Detection/Classification required: No
PD Spare Pair Desired State: Disabled
802.1 PVID: 1
802.1 PPVID:
802.1 VLAN:
802.1 Protocol:
@@ -0,0 +1,9 @@
System capability legend:
B - Bridge; R - Router; W - Wlan Access Point; T - telephone;
D - DOCSIS Cable Device; H - Host; r - Repeater;
TP - Two Ports MAC Relay; S - S-VLAN; C - C-VLAN; O - Other
Port Device ID Port ID System Name Capabilities TTL
--------- ----------------- ----------------- ----------------- ------------ -----
gi3 aa:aa:22:a2:22:2a aa:aa:22:a2:22:2a O 2938
gi10 00:2a:aa:a2:2a:20 Fa0/22 switchkuch-1 B 102
@@ -0,0 +1,22 @@
Device ID: 00:2a:aa:a2:2a:20
Port ID: Fa0/22
Capabilities: Bridge
System Name: switchkuch-1
System description: Cisco IOS Software, C2960 Software (C2960-LANBASEK9-M), Version 15.0(2)SE11, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyrigh
Port description: FastEthernet0/22
Management Address: 30.70.0.33
Time To Live: 91
802.3 MAC/PHY Configuration/Status
Auto-negotiation support: Supported
Auto-negotiation status: Enabled
Auto-negotiation Advertised Capabilities: 100BASE-TX full duplex mode, 100BASE-TX half duplex mode, 10BASE-T full duplex mode, 10BASE-T half duplex mode
Operational MAU type: 100BaseTXFD
802.1 PVID: 1
802.1 PPVID:
802.1 VLAN:
802.1 Protocol:
@@ -0,0 +1,2 @@
Jumbo frames are enabled
Jumbo frames will be enabled after reset
@@ -0,0 +1,136 @@
config-file-header
switch-no-2548-1
v2.4.5.71 / RTESLA2.4.5_930_181_144
CLI v1.0
file SSD indicator encrypted
@
ssd-control-start
ssd config
ssd file passphrase control unrestricted
no ssd file integrity control
ssd-control-end ABCD1234abcdABCD1234abcdABCD12c0
!
!
unit-type-control-start
unit-type unit 1 network gi uplink none
unit-type-control-end
!
cdp device-id format hostname
spanning-tree mode mst
spanning-tree loopback-guard
port jumbo-frame
vlan database
vlan 7-8,10-11,30-31,100,200,480,490-491,1000-1001
exit
voice vlan id 7
voice vlan state disabled
voice vlan oui-table add 0001e3 Siemens_AG_phone________
voice vlan oui-table add 00036b Cisco_phone_____________
voice vlan oui-table add 00096e Avaya___________________
voice vlan oui-table add 000fe2 H3C_Aolynk______________
voice vlan oui-table add 0060b9 Philips_and_NEC_AG_phone
voice vlan oui-table add 00d01e Pingtel_phone___________
voice vlan oui-table add 00e075 Polycom/Veritel_phone___
voice vlan oui-table add 00e0bb 3Com_phone______________
no eee enable
link-flap prevention disable
bonjour interface range vlan 1
hostname switch-no-2548-1
logging host 30.70.3.33
logging host 30.73.3.30 port 50001
logging buffered notifications
logging origin-id hostname
logging console errors
no passwords complexity enable
passwords aging 0
username admin password encrypted ABCD1234abcdABCD1234abcdABCD122f0222aa2a privilege 15
username cisco password encrypted ABCD1234abcdABCD1234abcdABCD122f0222aa2a privilege 15
ip ssh server
ip ssh password-auth
ip ssh pubkey-auth auto-login
crypto key pubkey-chain ssh
user-key admin rsa
key-string row ABCD1234abcdABCD1234abcdABCD12Mdfpc6NU0L
key-string row ABCD1234abcdABCD1234abcdABCD12IK2g3BQGlB
key-string row ABCD1234abcdABCD1234abcdABCD12RQDtU8sgav
key-string row ABCD1234abcdABCD1234abcdABCD12dS
key-string row ABCD1234abcdABCD1234abcdABCD12clVSXW+VS9
key-string row ABCD1234abcdABCD1234abcdABCD121yWQ/dirg7
key-string row ABCD1234abcdABCD1234abcdABCD126+oTfMZRDF
key-string row ABCD1234abcdABCD1234abcdABCD121OnMyls0Cv
key-string row ABCD1234abcdABCD1234abcdABCD12xIINJVB3mV
key-string row SWtO0EiL2pTczbwxGw==
exit
exit
snmp-server server
snmp-server location "Something;Somewhere;Somestreet;othersatnice;0;vratnice"
snmp-server community Abcdef rw view DefaultSuper
clock timezone CET +1
clock summer-time CEST recurring last sun mar 02:00 last sun oct 03:00
sntp server 30.30.3.33 poll
sntp server 30.70.3.33 poll
sntp server ntp.examples.com poll
sntp server ntp.ph.examp.com poll
no sntp server time-a.timefreq.bldrdoc.gov
no sntp server time-b.timefreq.bldrdoc.gov
no sntp server time-c.timefreq.bldrdoc.gov
ip name-server 30.70.3.33
ip host tftp 30.70.3.33
!
interface vlan 1
name default
ip address 30.70.0.37 333.333.337.0
no ip address dhcp
!
interface vlan 7
name VoIP-Phones
!
interface vlan 8
name INET_DMZ
!
interface vlan 10
name AD-Clients
!
interface vlan 11
name VOIP_VoiceTrunk
!
interface vlan 30
name Alantis_DMZ
!
interface vlan 31
name Abcdef_DMZ
!
interface vlan 100
name RAW_Inet_Abcdef
!
interface vlan 200
name ABC-ADS
!
interface vlan 480
name ABC-ITMGMT
!
interface vlan 490
name HOSTNET
!
interface vlan 491
name TECHNET
!
interface vlan 1000
name ABC-IT
!
interface vlan 1001
name CES-MAR
!
interface GigabitEthernet8
no eee enable
no eee lldp enable
power inline priority critical
!
interface GigabitEthernet9
switchport trunk native vlan none
!
interface GigabitEthernet10
description "Trunk to switchkuch-1"
!
exit
ip default-gateway 30.70.0.3
@@ -0,0 +1,344 @@
config-file-header
switch-no-2548-1
v2.4.5.71 / RTESLA2.4.5_930_181_144
CLI v1.0
file SSD indicator encrypted
@
ssd-control-start
ssd config
ssd file passphrase control unrestricted
no ssd file integrity control
ssd-control-end ABCD1234abcdABCD1234abcdABCD12c0
!
!
unit-type-control-start
unit-type unit 1 network gi uplink none
unit-type-control-end
!
cdp device-id format hostname
spanning-tree mode mst
spanning-tree loopback-guard
port jumbo-frame
vlan database
vlan 7-8,10-11,30-31,100,200,480,490-491,1000-1001
exit
voice vlan id 7
voice vlan state disabled
voice vlan oui-table add 0001e3 Siemens_AG_phone________
voice vlan oui-table add 00036b Cisco_phone_____________
voice vlan oui-table add 00096e Avaya___________________
voice vlan oui-table add 000fe2 H3C_Aolynk______________
voice vlan oui-table add 0060b9 Philips_and_NEC_AG_phone
voice vlan oui-table add 00d01e Pingtel_phone___________
voice vlan oui-table add 00e075 Polycom/Veritel_phone___
voice vlan oui-table add 00e0bb 3Com_phone______________
no eee enable
link-flap prevention disable
bonjour interface range vlan 1
hostname switch-no-2548-1
logging host 30.70.3.33
logging host 30.73.3.30 port 50001
logging buffered notifications
logging origin-id hostname
logging console errors
no passwords complexity enable
passwords aging 0
username admin password encrypted ABCD1234abcdABCD1234abcdABCD122f0222aa2a privilege 15
username cisco password encrypted ABCD1234abcdABCD1234abcdABCD122f0222aa2a privilege 15
ip ssh server
ip ssh password-auth
ip ssh pubkey-auth auto-login
crypto key pubkey-chain ssh
user-key admin rsa
key-string row ABCD1234abcdABCD1234abcdABCD12Mdfpc6NU0L
key-string row ABCD1234abcdABCD1234abcdABCD12IK2g3BQGlB
key-string row ABCD1234abcdABCD1234abcdABCD12RQDtU8sgav
key-string row ABCD1234abcdABCD1234abcdABCD12dS
key-string row ABCD1234abcdABCD1234abcdABCD12clVSXW+VS9
key-string row ABCD1234abcdABCD1234abcdABCD121yWQ/dirg7
key-string row ABCD1234abcdABCD1234abcdABCD126+oTfMZRDF
key-string row ABCD1234abcdABCD1234abcdABCD121OnMyls0Cv
key-string row ABCD1234abcdABCD1234abcdABCD12xIINJVB3mV
key-string row SWtO0EiL2pTczbwxGw==
exit
exit
snmp-server server
snmp-server location "Something;Somewhere;Somestreet;othersatnice;0;vratnice"
snmp-server community Abcdef rw view DefaultSuper
clock timezone CET +1
clock summer-time CEST recurring last sun mar 02:00 last sun oct 03:00
sntp server 30.30.3.33 poll
sntp server 30.70.3.33 poll
sntp server ntp.examples.com poll
sntp server ntp.ph.examp.com poll
no sntp server time-a.timefreq.bldrdoc.gov
no sntp server time-b.timefreq.bldrdoc.gov
no sntp server time-c.timefreq.bldrdoc.gov
ip name-server 30.70.3.33
ip host tftp 30.70.3.33
!
interface vlan 1
name default
ip address 30.70.0.37 333.333.337.0
no ip address dhcp
!
interface vlan 7
name VoIP-Phones
!
interface vlan 8
name INET_DMZ
!
interface vlan 10
name AD-Clients
!
interface vlan 11
name VOIP_VoiceTrunk
!
interface vlan 30
name Alantis_DMZ
!
interface vlan 31
name Abcdef_DMZ
!
interface vlan 100
name RAW_Inet_Abcdef
!
interface vlan 200
name ABC-ADS
!
interface vlan 480
name ABC-ITMGMT
!
interface vlan 490
name HOSTNET
!
interface vlan 491
name TECHNET
!
interface vlan 1000
name ABC-IT
!
interface vlan 1001
name CES-MAR
!
interface GigabitEthernet8
no eee enable
no eee lldp enable
power inline priority critical
!
interface GigabitEthernet9
switchport trunk native vlan none
!
interface GigabitEthernet10
description "Trunk to switchkuch-1"
!
exit
ip default-gateway 30.70.0.3
encrypted ip ssh-client key rsa key-pair
---- BEGIN SSH2 ENCRYPTED PRIVATE KEY ----
Comment: RSA Private Key
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12u/LrfNpsC+
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12nGmfnMiTzL
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD123BLQIyiTXh
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD128sfN3HfTcT
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD122JkvT8qdYc
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD127RLGCjKRGg
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12DUHsuYRcp4
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12ecNyEd+yKG
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD129xA6s+kaKr
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD123iQURrQLpf
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12qaNplfEtQQ
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12Fzg1zCmKmm
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12XbJtiivB9P
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12qybAVD6G7N
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12u+epBMcIsl
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12==
---- END SSH2 PRIVATE KEY ----
---- BEGIN SSH2 PUBLIC KEY ----
Comment: RSA Public Key
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12LOFaFaMAP/
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12X/gDrfYHCu
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12Uw==
---- END SSH2 PUBLIC KEY ----
.
encrypted ip ssh-client key dsa key-pair
---- BEGIN SSH2 ENCRYPTED PRIVATE KEY ----
Comment: DSA Private Key
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12EQTG4SHh6Z
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12FNfTUMF6C6
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12i4B02/IZGI
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12yX7nY+AOPD
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12pL8r4cXujS
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12a6Ut3tCQVy
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12FsYD/d5xWs
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12lzxObeJ7Z1
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12mOCGodNRAf
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12LpzOPWsz6N
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD1248vEoC1X0n
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12SV
---- END SSH2 PRIVATE KEY ----
---- BEGIN SSH2 PUBLIC KEY ----
Comment: DSA Public Key
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12cHQnMuaXDn
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12qvE1vMH5xv
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12lc4rWWCO6b
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12TVuouFfgdF
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12wj/WAxB4Op
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12lSIoIAfpkY
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12RqD0MS/9X5
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12m52u4/cBjY
qCqdkBI+B+YqB1jT8w==
---- END SSH2 PUBLIC KEY ----
.
encrypted crypto key import rsa
---- BEGIN SSH2 ENCRYPTED PRIVATE KEY ----
Comment: RSA Private Key
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12HfFN/t6mrn
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12leUuQRAE3r
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12ph+BMV+zoK
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12owcM8eMQc4
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12j0GdaIYymI
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12mBERWZS9yn
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12FfZ61pGA0E
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12nFblQwqlLz
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12NFgqqd/Ovu
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12/UyO9GZdrl
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12Er8rZ3KXd/
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12OLlaZgNBmp
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12rf6LnXW9zu
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD1254f+8C0+RJ
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD126zrXbeUmMy
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12bzpZs3ULkB
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12/wc1tCCcS1
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12BZPI/Ia/+b
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12WEtqDZEZHR
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12d6P2D2+Lyo
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12EXXQVexC6l
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12HiX7SNPQUP
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12ru1XZNqfTb
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12vkcGzLNRsy
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12LnjG1C1TC6
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12VJ5QZM7QjA
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12J9hmCQiBBX
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD120IndIWlcr5
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12ObpNMgjA+5
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD123Y8m38ZXel
ABCD1234abcdABCD1234abcdABCD12iblPSFnmTkUjmn0F66SXkYr9c=
---- END SSH2 PRIVATE KEY ----
---- BEGIN SSH2 PUBLIC KEY ----
Comment: RSA Public Key
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12T7spyGafHq
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12LZ8NmwUWsX
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD128FXj/KyM8Y
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12dVNDDKQ7b7
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD1289PePpB2hK
wWsR3o31jieUDPuJHiF9ct
---- END SSH2 PUBLIC KEY ----
.
encrypted crypto key import dsa
---- BEGIN SSH2 ENCRYPTED PRIVATE KEY ----
Comment: DSA Private Key
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12sJyscnEiqF
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12nz8l/mDHr6
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12stuvbpxf67
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12fUn1luijBA
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12wOfCv2HS8g
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12GFU0/MT5pi
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12RQKxzDD8e3
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD127ShMpjuj+A
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD125gcEo/V3bj
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD120CdOvLaMpp
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12VkLQkD8V5E
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12w5
---- END SSH2 PRIVATE KEY ----
---- BEGIN SSH2 PUBLIC KEY ----
Comment: DSA Public Key
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12bGalP3WyZb
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12uNBpFHaUM/
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD1243Gjb39POS
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD123d1y590sjp
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12l49MjUVJMZ
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12v5LMRh17hn
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12k7o9FluzLB
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12EMHIERXIpn
+law1StDs94htBVGduq5
---- END SSH2 PUBLIC KEY ----
.
encrypted crypto certificate 1 import
-----BEGIN RSA ENCRYPTED PRIVATE KEY-----
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12PqlROt9PbC
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12lW2vL9PIdp
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12SCgXBfu2w7
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12mtF5wPhRBn
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12d/tiwCoUbh
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12A0mFgJW/OH
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12FC8GAkNDiT
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD123VJ2gc5zqj
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12DaXI+i1sRC
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD127rTLOW2GAH
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12XX7rpCPD1l
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD128a3GWquAdS
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12wdjTaOSU2y
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12flkR1VgZE8
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD124hlkl3MyfK
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12==
-----END RSA PRIVATE KEY-----
-----BEGIN RSA PUBLIC KEY-----
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD120lipcLf63E
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD129F8Z6WQyVZ
ABCD1234abcdABCD1234abcdABCD12OR5RC9PeyXAgMBAAE=
-----END RSA PUBLIC KEY-----
-----BEGIN CERTIFICATE-----
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12MAkG
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12LjYw
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12WhcN
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12A1UE
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12CwwB
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12SvHJ
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12U92A
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12Onhj
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12KnGK
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12B5A/
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12jSMG
ABCD1234abcdABCD1234abcdABCD12==
-----END CERTIFICATE-----
.
encrypted crypto certificate 2 import
-----BEGIN RSA ENCRYPTED PRIVATE KEY-----
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12qwoM0cJ1ur
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12EWAGogUbim
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12ngr2AFknSH
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12br7QMii/P5
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12WLR7/S951D
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12i8ND7P1D7q
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD1218fUMea+zA
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12+d0a6XJpGq
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12zVcHjtEC1W
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12hCkZzUM/as
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12x3z52g9S9W
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12W1na5HHzNC
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD125ABC+SovX0
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12fvO3F5QqGa
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD126o5mCqPRXU
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12==
-----END RSA PRIVATE KEY-----
-----BEGIN RSA PUBLIC KEY-----
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12YP1syYapXL
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12VbXCsJSAa5
ABCD1234abcdABCD1234abcdABCD123MSe/TxVSdAgMBAAE=
-----END RSA PUBLIC KEY-----
-----BEGIN CERTIFICATE-----
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12MAkG
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12LjYw
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12WhcN
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12A1UE
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12CwwB
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12QcPE
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12onIQ
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12AUCT
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12JqOm
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD125Cjl
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD121ySf
ABCD1234abcdABCD1234abcdABCD12==
-----END CERTIFICATE-----
.
@@ -0,0 +1,43 @@
Clock is synchronized, stratum 2, reference is 30.70.3.33, unicast
Unicast servers:
Server : 30.30.3.33
Source : Static
Stratum : 2
Status : up
Last Response : 14:45:42.0 CEST Apr 4 2024
Offset : 1094.3411020 mSec
Delay : 0 mSec
Server : 30.70.3.33
Source : Static
Stratum : 2
Status : up
Last Response : 14:18:57.0 CEST Apr 24 2024
Offset : 1088.6150517 mSec
Delay : 0 mSec
Server : ntp.examples.com
Source : Static
Stratum : 255
Status : down
Last Response : 00:00:00.0 Jan 1 1900
Offset : 0.0000000 mSec
Delay : 0 mSec
Server : ntp.ph.examp.com
Source : Static
Stratum : 255
Status : down
Last Response : 00:00:00.0 Jan 1 1900
Offset : 0.0000000 mSec
Delay : 0 mSec
Anycast server:
Broadcast:
@@ -0,0 +1,192 @@
config-file-header
switch-no-2548-1
v2.4.5.71 / RTESLA2.4.5_930_181_144
CLI v1.0
file SSD indicator encrypted
@
ssd-control-start
ssd config
ssd file passphrase control unrestricted
no ssd file integrity control
ssd-control-end ABCD1234abcdABCD1234abcdABCD12c0
!
!
unit-type-control-start
unit-type unit 1 network gi uplink none
unit-type-control-end
!
cdp device-id format hostname
spanning-tree mode mst
spanning-tree loopback-guard
port jumbo-frame
vlan database
vlan 7-8,10-11,30-31,100,200,480,490-491,1000-1001
exit
voice vlan id 7
voice vlan state disabled
voice vlan oui-table add 0001e3 Siemens_AG_phone________
voice vlan oui-table add 00036b Cisco_phone_____________
voice vlan oui-table add 00096e Avaya___________________
voice vlan oui-table add 000fe2 H3C_Aolynk______________
voice vlan oui-table add 0060b9 Philips_and_NEC_AG_phone
voice vlan oui-table add 00d01e Pingtel_phone___________
voice vlan oui-table add 00e075 Polycom/Veritel_phone___
voice vlan oui-table add 00e0bb 3Com_phone______________
no eee enable
link-flap prevention disable
bonjour interface range vlan 1
hostname switch-no-2548-1
logging host 30.70.3.33
logging host 30.73.3.30 port 50001
logging buffered notifications
logging origin-id hostname
logging console errors
no passwords complexity enable
passwords aging 0
username admin password encrypted ABCD1234abcdABCD1234abcdABCD122f0222aa2a privilege 15
username cisco password encrypted ABCD1234abcdABCD1234abcdABCD122f0222aa2a privilege 15
ip ssh server
ip ssh password-auth
ip ssh pubkey-auth auto-login
crypto key pubkey-chain ssh
user-key admin rsa
key-string row ABCD1234abcdABCD1234abcdABCD12Mdfpc6NU0L
key-string row ABCD1234abcdABCD1234abcdABCD12IK2g3BQGlB
key-string row ABCD1234abcdABCD1234abcdABCD12RQDtU8sgav
key-string row ABCD1234abcdABCD1234abcdABCD12dS
key-string row ABCD1234abcdABCD1234abcdABCD12clVSXW+VS9
key-string row ABCD1234abcdABCD1234abcdABCD121yWQ/dirg7
key-string row ABCD1234abcdABCD1234abcdABCD126+oTfMZRDF
key-string row ABCD1234abcdABCD1234abcdABCD121OnMyls0Cv
key-string row ABCD1234abcdABCD1234abcdABCD12xIINJVB3mV
key-string row SWtO0EiL2pTczbwxGw==
exit
exit
snmp-server server
snmp-server location "Something;Somewhere;Somestreet;othersatnice;0;vratnice"
snmp-server community Abcdef rw view DefaultSuper
clock timezone CET +1
clock summer-time CEST recurring last sun mar 02:00 last sun oct 03:00
sntp server 30.30.3.33 poll
sntp server 30.70.3.33 poll
sntp server ntp.examples.com poll
sntp server ntp.ph.examp.com poll
no sntp server time-a.timefreq.bldrdoc.gov
no sntp server time-b.timefreq.bldrdoc.gov
no sntp server time-c.timefreq.bldrdoc.gov
ip name-server 30.70.3.33
ip host tftp 30.70.3.33
!
interface vlan 1
name default
ip address 30.70.0.37 333.333.337.0
no ip address dhcp
!
interface vlan 7
name VoIP-Phones
!
interface vlan 8
name INET_DMZ
!
interface vlan 10
name AD-Clients
!
interface vlan 11
name VOIP_VoiceTrunk
!
interface vlan 30
name Alantis_DMZ
!
interface vlan 31
name Abcdef_DMZ
!
interface vlan 100
name RAW_Inet_Abcdef
!
interface vlan 200
name ABC-ADS
!
interface vlan 480
name ABC-ITMGMT
!
interface vlan 490
name HOSTNET
!
interface vlan 491
name TECHNET
!
interface vlan 1000
name ABC-IT
!
interface vlan 1001
name CES-MAR
!
interface GigabitEthernet8
no eee enable
no eee lldp enable
power inline priority critical
!
interface GigabitEthernet9
switchport trunk native vlan none
!
interface GigabitEthernet10
description "Trunk to switchkuch-1"
!
exit
ip default-gateway 30.70.0.3
encrypted ip ssh-client key rsa key-pair
---- BEGIN SSH2 ENCRYPTED PRIVATE KEY ----
Comment: RSA Private Key
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12u/LrfNpsC+
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12nGmfnMiTzL
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD123BLQIyiTXh
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD128sfN3HfTcT
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD122JkvT8qdYc
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD127RLGCjKRGg
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12DUHsuYRcp4
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12ecNyEd+yKG
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD129xA6s+kaKr
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD123iQURrQLpf
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12qaNplfEtQQ
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12Fzg1zCmKmm
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12XbJtiivB9P
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12qybAVD6G7N
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12u+epBMcIsl
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12==
---- END SSH2 PRIVATE KEY ----
---- BEGIN SSH2 PUBLIC KEY ----
Comment: RSA Public Key
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12LOFaFaMAP/
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12X/gDrfYHCu
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12Uw==
---- END SSH2 PUBLIC KEY ----
.
encrypted ip ssh-client key dsa key-pair
---- BEGIN SSH2 ENCRYPTED PRIVATE KEY ----
Comment: DSA Private Key
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12EQTG4SHh6Z
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12FNfTUMF6C6
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12i4B02/IZGI
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12yX7nY+AOPD
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12pL8r4cXujS
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12a6Ut3tCQVy
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12FsYD/d5xWs
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12lzxObeJ7Z1
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12mOCGodNRAf
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12LpzOPWsz6N
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD1248vEoC1X0n
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12SV
---- END SSH2 PRIVATE KEY ----
---- BEGIN SSH2 PUBLIC KEY ----
Comment: DSA Public Key
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12cHQnMuaXDn
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12qvE1vMH5xv
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12lc4rWWCO6b
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12TVuouFfgdF
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12wj/WAxB4Op
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12lSIoIAfpkY
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12RqD0MS/9X5
ABCD1234abcdABCD1234abcdABCD12ABCD1234abcdABCD1234abcdABCD12m52u4/cBjY
qCqdkBI+B+YqB1jT8w==
---- END SSH2 PUBLIC KEY ----
.
@@ -0,0 +1,21 @@
System Description: SG250-10P 10-Port Gigabit PoE Smart Switch
System Up Time (days,hour:min:sec): 123,16:39:27
System Contact:
System Name: switch-no-2548-1
System Location: Something;Somewhere;Somestreet;others
atnice;0;vratnice
System MAC Address: aa:aa:a0:22:2a:a2
System Object ID: 2.2.8.4.4.1.9.6.1.97.10.5
Unit Type
---- ----------------------
1 SG250-10P
Unit Fans Status
---- -------------------------------------
1 Fans status is N/A
Unit Temperature (Celsius) Status
---- --------------------- ----------
1 65 OK
@@ -0,0 +1,10 @@
Active-image: flash://system/images/sg250_image_tesla_250_2.4.5.71.bin
Version: 2.4.5.71
MD5 Digest: ABCD1234abcdABCD1234abcdABCD121c
Date: 04-Nov-2018
Time: 19:46:16
Inactive-image: flash://system/images/image1.bin
Version: 2.2.8.4
MD5 Digest: ABCD1234abcdABCD1234abcdABCD12f1
Date: 21-Dec-2016
Time: 22:03:09
Loaded 100 of 261 files, more files were not shown because too many files have changed in this diff. Show more