Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
vnf-onboarding
OSM Packages
Commits
d0f0c9e1
Commit
d0f0c9e1
authored
Sep 30, 2021
by
bravof
Browse files
bugfix(SNMP): snmp_generator install script update
parent
b3058eae
Pipeline
#2398
passed with stage
in 2 minutes and 55 seconds
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
10 deletions
+18
-10
snmp_ee_vnf/helm-charts/eechart/source/install.sh
snmp_ee_vnf/helm-charts/eechart/source/install.sh
+13
-5
snmp_setcomm_ee_vnf/helm-charts/eechart/source/install.sh
snmp_setcomm_ee_vnf/helm-charts/eechart/source/install.sh
+5
-5
No files found.
snmp_ee_vnf/helm-charts/eechart/source/install.sh
View file @
d0f0c9e1
...
...
@@ -18,15 +18,23 @@ echo "installing libraries for snmp generator"
#apt-get install -y ...
apt-get update
# Install ansible libraries
apt-get
install
-y
software-properties-common
apt-add-repository
--yes
--update
ppa:ansible/ansible
apt
install
-y
ansible
# Set host checking to false
echo
"host_key_checking = False"
>>
/etc/ansible/ansible.cfg
apt-get
install
-y
python3-pip unzip build-essential libsnmp-dev wget curl
curl
-s
https://storage.googleapis.com/golang/go1.1
1.8
.linux-amd64.tar.gz |
tar
-v
-C
/usr/local
-xz
curl
-s
https://storage.googleapis.com/golang/go1.1
7.1
.linux-amd64.tar.gz |
tar
-v
-C
/usr/local
-xz
export
PATH
=
$PATH
:/usr/local/go/bin
export
GOPATH
=
/go
go get github.com/go-logfmt/logfmt
&&
go get github.com/go-kit/kit/log
wget
-q
https://github.com/prometheus/snmp_exporter/archive/v0.
17
.0.tar.gz
-P
/tmp/
\
&&
tar
-C
/tmp
-xf
/tmp/v0.
17
.0.tar.gz
\
&&
(
cd
/tmp/snmp_exporter-0.
17
.0/generator
&&
go build
)
\
&&
cp
/tmp/snmp_exporter-0.
17
.0/generator/generator /usr/local/bin/snmp_generator
wget
-q
https://github.com/prometheus/snmp_exporter/archive/v0.
20
.0.tar.gz
-P
/tmp/
\
&&
tar
-C
/tmp
-xf
/tmp/v0.
20
.0.tar.gz
\
&&
(
cd
/tmp/snmp_exporter-0.
20
.0/generator
&&
go build
)
\
&&
cp
/tmp/snmp_exporter-0.
20
.0/generator/generator /usr/local/bin/snmp_generator
snmp_setcomm_ee_vnf/helm-charts/eechart/source/install.sh
View file @
d0f0c9e1
...
...
@@ -27,15 +27,15 @@ apt install -y ansible
echo
"host_key_checking = False"
>>
/etc/ansible/ansible.cfg
apt-get
install
-y
python3-pip unzip build-essential libsnmp-dev wget curl
curl
-s
https://storage.googleapis.com/golang/go1.1
1.8
.linux-amd64.tar.gz |
tar
-v
-C
/usr/local
-xz
curl
-s
https://storage.googleapis.com/golang/go1.1
7.1
.linux-amd64.tar.gz |
tar
-v
-C
/usr/local
-xz
export
PATH
=
$PATH
:/usr/local/go/bin
export
GOPATH
=
/go
go get github.com/go-logfmt/logfmt
&&
go get github.com/go-kit/kit/log
wget
-q
https://github.com/prometheus/snmp_exporter/archive/v0.
17
.0.tar.gz
-P
/tmp/
\
&&
tar
-C
/tmp
-xf
/tmp/v0.
17
.0.tar.gz
\
&&
(
cd
/tmp/snmp_exporter-0.
17
.0/generator
&&
go build
)
\
&&
cp
/tmp/snmp_exporter-0.
17
.0/generator/generator /usr/local/bin/snmp_generator
wget
-q
https://github.com/prometheus/snmp_exporter/archive/v0.
20
.0.tar.gz
-P
/tmp/
\
&&
tar
-C
/tmp
-xf
/tmp/v0.
20
.0.tar.gz
\
&&
(
cd
/tmp/snmp_exporter-0.
20
.0/generator
&&
go build
)
\
&&
cp
/tmp/snmp_exporter-0.
20
.0/generator/generator /usr/local/bin/snmp_generator
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment