Question

SNMP Community macro name PREEXEC command

  • 2 February 2023
  • 0 replies
  • 45 views

Badge +1

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

 


0 replies

Be the first to reply!

Reply