User Tools

Site Tools


сервис_snmp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
сервис_snmp [2021/04/20 10:30]
val [Варианты использования snmp консоли в режиме чтения]
сервис_snmp [2021/07/22 14:16]
admin [Варианты использования snmp консоли в режиме чтения]
Line 81: Line 81:
  
 traphandle .1.3.6.1.6.3.1.1.5.3 /​usr/​bin/​traptoemail -s mail.isp.un userX@isp.un traphandle .1.3.6.1.6.3.1.1.5.3 /​usr/​bin/​traptoemail -s mail.isp.un userX@isp.un
 +#traphandle .1.3.6.1.6.3.1.1.5.3 /​usr/​bin/​traptoemail -s localhost student@corpX.un
  
 traphandle .1.3.6.1.4.1.9.9.43* /​root/​cisco-backup-config.sh traphandle .1.3.6.1.4.1.9.9.43* /​root/​cisco-backup-config.sh
Line 107: Line 108:
 cd /srv/tftp/ cd /srv/tftp/
 /​usr/​bin/​git add * /​usr/​bin/​git add *
-/​usr/​bin/​git status | grep '​modified\|deleted\|new file' | /​usr/​bin/​git commit -a -F -+/​usr/​bin/​git ​--no-optional-locks ​status | grep '​modified\|deleted\|new file' | /​usr/​bin/​git commit -a -F -
 </​code>​ </​code>​
 !!! На стенде при первой итерации большие задержки !!! На стенде при первой итерации большие задержки
Line 120: Line 121:
 === Определение имени устройства === === Определение имени устройства ===
 <​code>​ <​code>​
-server# snmpget -c public -v2c router .1.3.6.1.2.1.1.5.0+server# snmpget -c public -v2c router ​     .1.3.6.1.2.1.1.5.0 
 + 
 +server# snmpget -c public -v2c router SNMPv2-SMI::​mib-2.1.5.0
  
 server# snmpget -c public -v2c router SNMPv2-MIB::​sysName.0 server# snmpget -c public -v2c router SNMPv2-MIB::​sysName.0
сервис_snmp.txt · Last modified: 2024/06/19 14:12 by val