forked from NETWAYS/check_cisco_health
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (33 loc) · 986 Bytes
/
sim.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: SNMPSIM CI
on:
pull_request:
branches: ["*"]
jobs:
check_funktion:
runs-on: ubuntu-latest
env:
CFLAGS: "-Wall -Wextra -Werror"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: pip
- name: Install pip packages
run: pip install -r .github/requirements.txt
- name: Install dependencies
run: |
sudo .github/prepare_ubuntu.sh
- name: Make
run: make
- name: Start simmulation
run: |
setup-snmpsim-data /tmp/data
/opt/hostedtoolcache/Python/3.10.14/x64/bin/snmpsim-command-responder --daemonize --pid-file /tmp/snmp --data-dir=/tmp/data/network/switch/ --agent-udpv4-endpoint=127.0.0.1:1611
- name: Sleep
run: sleep 120s
shell: bash
- name: check_cisco_health
run: |
chmod 0755 check_cisco_health
./check_cisco_health -h 127.0.0.1:1611 -c cisco-c3560 -t 30000