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 |
Prashanth Katti | 2320c0d | 2021-10-12 07:31:27 -0500 | [diff] [blame^] | 13 | ${less_octet_ip} 10.5.5 |
Prashanth Katti | 081b3d9 | 2018-06-15 05:13:11 -0500 | [diff] [blame] | 14 | |
| 15 | # Valid and invalid IP and ports. Valid port range is 0-65535. |
| 16 | # Default port is 162. |
| 17 | ${SNMP_DEFAULT_PORT} ${162} |
| 18 | ${NON_DEFAULT_PORT1} ${186} |
| 19 | ${NON_DEFAULT_PORT2} ${196} |
| 20 | ${out_of_range_port} ${65536} |
| 21 | # non numeric value |
| 22 | ${alpha_port} ab |
| 23 | ${negative_port} ${-12} |
| 24 | ${empty_port} ${EMPTY} |
Naman Navin Hegde | bf18133 | 2019-06-26 02:08:18 -0500 | [diff] [blame] | 25 | |
| 26 | # User Name Password |
| 27 | ${SNMP_MGR1_USERNAME} ${EMPTY} |
| 28 | ${SNMP_MGR1_PASSWORD} ${EMPTY} |
| 29 | |
| 30 | # SNMP Command |
| 31 | ${SNMP_TRAPD_CMD} snmptrapd -f -c |
| 32 | ... /usr/local/etc/snmp/snmptrapd.conf -Lo |
| 33 | ${SNMP_TRAP_BMC_ERROR} example.xyz.openbmc_project.Example.Elog.AutoTestSimple |