2017-05-08 17:43:31 -05:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
mkdir -p /etc/ssw
|
2017-09-12 16:13:27 -05:00
|
|
|
sonic-cfggen -d -y /etc/sonic/sonic_version.yml -t /usr/share/sonic/templates/sysDescription.j2 > /etc/ssw/sysDescription
|
2017-05-08 17:43:31 -05:00
|
|
|
|
|
|
|
mkdir -p /etc/snmp
|
2017-09-12 16:13:27 -05:00
|
|
|
sonic-cfggen -d -y /etc/sonic/snmp.yml -t /usr/share/sonic/templates/snmpd.conf.j2 > /etc/snmp/snmpd.conf
|
2017-05-08 17:43:31 -05:00
|
|
|
|
|
|
|
mkdir -p /var/sonic
|
|
|
|
echo "# Config files managed by sonic-config-engine" > /var/sonic/config_status
|
|
|
|
|
|
|
|
rm -f /var/run/rsyslogd.pid
|
|
|
|
|
|
|
|
supervisorctl start rsyslogd
|
2018-02-12 13:10:01 -06:00
|
|
|
supervisorctl start snmpd-config-updater
|
2017-05-08 17:43:31 -05:00
|
|
|
supervisorctl start snmpd
|
|
|
|
supervisorctl start snmp-subagent
|