Prashanth Katti | 081b3d9 | 2018-06-15 05:13:11 -0500 | [diff] [blame] | 1 | *** Variables *** |
| 2 | |
| 3 | # SNMP related parameters. |
| 4 | |
| 5 | # 10.x.x.x series is a private IP address range and does not exist in |
| 6 | # our network, so this is chosen to avoid any adversary effect. |
| 7 | # It can be overridden by command line arguments. |
| 8 | ${SNMP_MGR1_IP} 10.6.6.6 |
| 9 | ${SNMP_MGR2_IP} 10.6.6.7 |
| 10 | ${SNMP_MGR3_IP} 10.6.6.8 |
| 11 | ${out_of_range_ip} 10.6.6.256 |
| 12 | ${alpha_ip} xx.xx.xx.xx |
| 13 | |
| 14 | # Valid and invalid IP and ports. Valid port range is 0-65535. |
| 15 | # Default port is 162. |
| 16 | ${SNMP_DEFAULT_PORT} ${162} |
| 17 | ${NON_DEFAULT_PORT1} ${186} |
| 18 | ${NON_DEFAULT_PORT2} ${196} |
| 19 | ${out_of_range_port} ${65536} |
| 20 | # non numeric value |
| 21 | ${alpha_port} ab |
| 22 | ${negative_port} ${-12} |
| 23 | ${empty_port} ${EMPTY} |
Naman Navin Hegde | bf18133 | 2019-06-26 02:08:18 -0500 | [diff] [blame] | 24 | |
| 25 | # User Name Password |
| 26 | ${SNMP_MGR1_USERNAME} ${EMPTY} |
| 27 | ${SNMP_MGR1_PASSWORD} ${EMPTY} |
| 28 | |
| 29 | # SNMP Command |
| 30 | ${SNMP_TRAPD_CMD} snmptrapd -f -c |
| 31 | ... /usr/local/etc/snmp/snmptrapd.conf -Lo |
| 32 | ${SNMP_TRAP_BMC_ERROR} example.xyz.openbmc_project.Example.Elog.AutoTestSimple |