Skip to main content

What is the snmp community macro name that I can use in PREEXEC command of snmp trap definition? I have tried to use @HOSTSNMPCOMMUNITY@ or @_HOSTSNMPCOMMUNITY@ but it did not work.

snmpget -v 2c -Ovq -c @HOSTSNMPCOMMUNITY@ @HOSTADDRESS@ ifAlias.$1

snmpget -v 2c -Ovq -c @_HOSTSNMPCOMMUNITY@ @HOSTADDRESS@ ifAlias.$1

 

Be the first to reply!

Reply