This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
сервис_snmp [2024/06/19 12:43] val [Настройка snmptrapd сервиса] |
сервис_snmp [2024/06/19 14:12] (current) val [Настройка snmptrapd сервиса] |
||
---|---|---|---|
Line 78: | Line 78: | ||
=== Debian/Ubuntu === | === Debian/Ubuntu === | ||
- | Срабатывает более точный traphandle | + | * Срабатывает более точный traphandle |
+ | * !!! В Ubuntu24 snmptrapd работает с правами Debian-snmp, надо использовать [[Пакет sudo]] | ||
<code> | <code> | ||
Line 90: | Line 91: | ||
traphandle SNMPv2-SMI::enterprises.9.9.43.* /root/cisco-backup-config.sh | traphandle SNMPv2-SMI::enterprises.9.9.43.* /root/cisco-backup-config.sh | ||
+ | #traphandle SNMPv2-SMI::enterprises.9.9.43.* sudo /root/cisco-backup-config.sh | ||
#router RMON | #router RMON | ||
Line 115: | Line 117: | ||
/usr/bin/sshpass -p cisco /usr/bin/scp ${cisco_name}:running-config /srv/tftp/${cisco_name}-running-config | /usr/bin/sshpass -p cisco /usr/bin/scp ${cisco_name}:running-config /srv/tftp/${cisco_name}-running-config | ||
+ | #/usr/bin/sshpass -p cisco /usr/bin/scp -O ${cisco_name}:running-config /srv/tftp/${cisco_name}-running-config | ||
cd /srv/tftp/ | cd /srv/tftp/ | ||
/usr/bin/git add * | /usr/bin/git add * |