I've managed to resolve my issue. Long story short is that I was trying to send a v2 formatted trap to our SMARTS environment which is (only) expecting v1 formatted traps.
My v1 formatted traps are now flowing into SMARTS with Service Manager tickets auto-cut from there.
Original Message:
Sent: Tue October 26, 2021 04:45 PM
From: José Pina Coelho
Subject: net-snmp on AIX 7.1
Ok, this just in from a couple of musty neurons that have been twiddling their synapses for the past quarter century:
In SNMPv1, there are 6 generic traps, numbered 0 through 5 (coldStart, warmStart, linkDown, linkUp, authenticationFailure, and egpNeighborLoss), and an enterprise-specific trap (numbered 6) where the "what is this trap" is a function of the trap OID, and specifc-trap field (14, in your case).
https://www.ibm.com/docs/en/zos/2.2.0?topic=commands-snmp-trap-types
------------------------------
José Pina Coelho
IT Specialist at Kyndryl
Original Message:
Sent: Mon October 25, 2021 01:00 PM
From: Steve Munday
Subject: net-snmp on AIX 7.1
** Update **
Found I needed to install net-snmp-utils which now gives me snmptrap in /opt/freeware/bin.
I then tried the below taken, in the main, from our existing SysEDGE "call" [I'm unsure of the "6 14" and wonder if its a SysEDGE specific item]
/opt/freeware/bin/snmptrap -v 2c -c <community> <host>:162 \1.3.6.1.4.1.546.14.1.1 6 14 \1.3.6.1.4.1.546.14.1.1 "SAP_AIX_MONITOR" \1.3.6.1.4.1.546.14.1.3 " net-snmp " \1.3.6.1.4.1.546.14.1.4 "3" \1.3.6.1.4.1.546.14.1.8 "<Service Manager queue name>" \1.3.6.1.4.1.546.14.1.9 " Demo ticket to see if net-snmp Open Source works "
However I get
Created directory: /var/net-snmpCreated directory: /var/net-snmp/mib_indexes14: Bad variable type ("1")#
Will keep digging.
Thanks, Steve
------------------------------
Steve Munday
AIX, IBM i, HMC, PowerVM
Original Message:
Sent: Mon October 25, 2021 07:26 AM
From: Steve Munday
Subject: net-snmp on AIX 7.1
(Thread initially started in AIX community)
I'm needing to replace CA's SysEDGE with an alternate snmptrap generator and @José Pina Coelho suggested net-snmp from the AIX toolbox which I downloaded (v5.8).
When running /opt/freeware/sbin/snmptrapd I'm getting the following, I've seen other comments (lpar2rrd) stating that the latest net-snmp won't work with the native AIX sendtrap.
exec(): 0509-036 Cannot load program /opt/freeware/sbin/snmptrapd because of the following errors: 0509-150 Dependent module libpcre.a(libpcre.so.1) could not be loaded. 0509-022 Cannot load module libpcre.a(libpcre.so.1). 0509-026 System error: A file or directory in the path name does not exist.
Am I needing to install an older version of net-snmp (and if so where might that be) or is the issue I'm facing something that can be addressed?
Many thanks, Steve
------------------------------
Steve Munday
AIX, IBM i, HMC, PowerVM
------------------------------