Operating System - OpenVMS
1745868 Members
4348 Online
108723 Solutions
New Discussion

SNMP Commnad line how to?

 
BrianInOxford
New Member

SNMP Commnad line how to?

Does anybody know how to do the following to SNMP from a command line?

add a trap for comunity name of "public" and Trap Destination to "155.214.23.105"

and

add a security of "public" / read only with "accept SNMP packets from any host"
1 REPLY 1
Volker Halle
Honored Contributor

Re: SNMP Commnad line how to?

Brian,

you didn't tell us your TCP/IP product, so assuming it's HP UCX or TCPIP, try this:

$ UCX SET CONF SNMP /COMMUNITY="public" -
/TYPE=TRAP /ADDRESS=155.214.23.105

$ UCX SET CONF SNMP/COMMUNITY="public" -
/TYPE=READ /ADDRESS=0.0.0.0

To obtain help for these command, use:

$ UCX HELP SET CONF SNMP

You need to re-start the SNMP service for these settings to become active.

Volker.