1839a0c27SSandhya Somashekar*** Variables *** 2839a0c27SSandhya Somashekar 3839a0c27SSandhya Somashekar# SNMP related parameters. 4839a0c27SSandhya Somashekar 5839a0c27SSandhya Somashekar# 10.x.x.x series is a private IP address range and does not exist in 6839a0c27SSandhya Somashekar# our network, so this is chosen to avoid any adversary effect. 7839a0c27SSandhya Somashekar# It can be overridden by command line arguments. 8839a0c27SSandhya Somashekar${SNMP_MGR1_IP} 10.6.6.6 9839a0c27SSandhya Somashekar${SNMP_MGR2_IP} 10.6.6.7 10839a0c27SSandhya Somashekar${SNMP_MGR3_IP} 10.6.6.8 11839a0c27SSandhya Somashekar${out_of_range_ip} 10.6.6.256 12839a0c27SSandhya Somashekar${alpha_ip} xx.xx.xx.xx 132320c0d5SPrashanth Katti${less_octet_ip} 10.5.5 14*999964d2SMegha G N${negative_ip} -10.6.6.6 15*999964d2SMegha G N${empty_ip} ${EMPTY} 16839a0c27SSandhya Somashekar 17839a0c27SSandhya Somashekar# Valid and invalid IP and ports. Valid port range is 0-65535. 18839a0c27SSandhya Somashekar# Default port is 162. 19839a0c27SSandhya Somashekar${SNMP_DEFAULT_PORT} ${162} 20839a0c27SSandhya Somashekar${NON_DEFAULT_PORT1} ${186} 21839a0c27SSandhya Somashekar${NON_DEFAULT_PORT2} ${196} 22839a0c27SSandhya Somashekar${out_of_range_port} ${65536} 23839a0c27SSandhya Somashekar# non numeric value 24839a0c27SSandhya Somashekar${alpha_port} ab 25839a0c27SSandhya Somashekar${negative_port} ${-12} 26839a0c27SSandhya Somashekar${empty_port} ${EMPTY} 27*999964d2SMegha G N${alphanumeric_port} abc123 28bf18133dSNaman Navin Hegde 29bf18133dSNaman Navin Hegde# User Name Password 30bf18133dSNaman Navin Hegde${SNMP_MGR1_USERNAME} ${EMPTY} 31bf18133dSNaman Navin Hegde${SNMP_MGR1_PASSWORD} ${EMPTY} 32bf18133dSNaman Navin Hegde 33bf18133dSNaman Navin Hegde# SNMP Command 34bf18133dSNaman Navin Hegde${SNMP_TRAPD_CMD} snmptrapd -f -c 35bf18133dSNaman Navin Hegde... /usr/local/etc/snmp/snmptrapd.conf -Lo 36bf18133dSNaman Navin Hegde${SNMP_TRAP_BMC_ERROR} example.xyz.openbmc_project.Example.Elog.AutoTestSimple 37