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 |
Megha G N | 2b98bc0 | 2023-01-20 02:01:48 -0600 | [diff] [blame] | 13 | ${less_octet_ip} 10. |
Megha G N | 999964d | 2022-12-06 04:38:10 -0600 | [diff] [blame] | 14 | ${negative_ip} -10.6.6.6 |
| 15 | ${empty_ip} ${EMPTY} |
Prashanth Katti | 081b3d9 | 2018-06-15 05:13:11 -0500 | [diff] [blame] | 16 | |
| 17 | # Valid and invalid IP and ports. Valid port range is 0-65535. |
| 18 | # Default port is 162. |
| 19 | ${SNMP_DEFAULT_PORT} ${162} |
| 20 | ${NON_DEFAULT_PORT1} ${186} |
| 21 | ${NON_DEFAULT_PORT2} ${196} |
| 22 | ${out_of_range_port} ${65536} |
| 23 | # non numeric value |
| 24 | ${alpha_port} ab |
| 25 | ${negative_port} ${-12} |
| 26 | ${empty_port} ${EMPTY} |
Megha G N | 999964d | 2022-12-06 04:38:10 -0600 | [diff] [blame] | 27 | ${alphanumeric_port} abc123 |
Naman Navin Hegde | bf18133 | 2019-06-26 02:08:18 -0500 | [diff] [blame] | 28 | |
| 29 | # User Name Password |
| 30 | ${SNMP_MGR1_USERNAME} ${EMPTY} |
| 31 | ${SNMP_MGR1_PASSWORD} ${EMPTY} |
| 32 | |
| 33 | # SNMP Command |
| 34 | ${SNMP_TRAPD_CMD} snmptrapd -f -c |
| 35 | ... /usr/local/etc/snmp/snmptrapd.conf -Lo |
| 36 | ${SNMP_TRAP_BMC_ERROR} example.xyz.openbmc_project.Example.Elog.AutoTestSimple |