Operating System - HP-UX
1748261 Members
3865 Online
108760 Solutions
New Discussion юеВ

Re: How to send snmp traps via shell script

 
Marilia
Occasional Advisor

How to send snmp traps via shell script

Hello experts,

I am writing a shell script to get alarm information and depending of the alarm it will send snmp trap to a management platform.
The point I can not go further is sending the snmp. My HP-UX has the following installed:

bash-4.1$ swlist | grep snmp
OVsnmpAgent B.11.31 OpenView SNMP Agent

Is there a command to send the snmp? It has to be via CLI.

Many Thanks in advance!
Marilia
3 REPLIES 3
Shibin_2
Honored Contributor

Re: How to send snmp traps via shell script

If you have activated SNMP, there is a command called snmptrap. Read man pages for more details.

man snmptrap
Regards
Shibin
muruganantham raju
Valued Contributor

Re: How to send snmp traps via shell script

Hi Marilia,

Can you check the availability of following command in your system.

/opt/perf/bin/trapsend
Marilia
Occasional Advisor

Re: How to send snmp traps via shell script

I have received the support!

Many thanks!