HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

fetching data from server using SNMP trap in Open VMS 7.2

 
Amit Phadnis
Advisor

fetching data from server using SNMP trap in Open VMS 7.2

Hi,

I need to pull some selected from one of my servers on open VMS 7.2, using SNMP trap? I am using SNMP_traprcv -d -p 1024 command, but after that system gets hang and almost no response.
Pls let me know the procedure for this process?

Regards,
Amit Phadnis.
10 REPLIES
Wim Van den Wyngaert
Honored Contributor

Re: fetching data from server using SNMP trap in Open VMS 7.2

Amit Phadnis
Advisor

Re: fetching data from server using SNMP trap in Open VMS 7.2

ok that was fine.
My procedure is ready and even if try to run this procedure, I am unable to recieve. The system halts with no response after giving command.
can this be a memory issue? or because of too much data it is trying to recieve?

If so what are the troubleshooting procedureon this?

Amit.
Hoff
Honored Contributor

Re: fetching data from server using SNMP trap in Open VMS 7.2

Insufficient memory conditions will usually trigger much more obvious failures.

Your reference to halt here is not to a system halt or system crash or a process-level failure, and just intended to indicate that the DCL procedure simply stops at the step where it is receiving the trap, correct? That the loop appears to hang at the trap receive, correct? ("Halt" generally implies a particular meaning on OpenVMS.)

Is there a trap arriving at the receiver? The lack of that arrival would be my initial guess here.
Amit Phadnis
Advisor

Re: fetching data from server using SNMP trap in Open VMS 7.2

Hoff,

No, the trap is not arriving at reciever. All the problem starts from there.
Thats why I used the word 'halt' in my mail, as there is no further progress seen or any error message from the system.

Amit.
Wim Van den Wyngaert
Honored Contributor

Re: fetching data from server using SNMP trap in Open VMS 7.2

How are you sending the trap ?
Can you ping the servers and can they ping you ?

Wim
Wim
Amit Phadnis
Advisor

Re: fetching data from server using SNMP trap in Open VMS 7.2

I can ping the server and I get the repply too from it.
I am trying to recieve the trap, using following command,

$ snmp_traprcv -d -p 1024,

After giving this command, the system don't give any response.

Amit.
Wim Van den Wyngaert
Honored Contributor

Re: fetching data from server using SNMP trap in Open VMS 7.2

Yes, but someone must be sending the trap too (have an event that causes a trap to be send). There is also a snmp_trapsnd.exe for test purposes.

Wim
Wim
Robert Atkinson
Respected Contributor

Re: fetching data from server using SNMP trap in Open VMS 7.2

Amit, you could try using SNMP_REQUEST instead.

Attached is a procedure I wrote, specific to our company, but will give you an idea of how it works.

Rob.

Amit Phadnis
Advisor

Re: fetching data from server using SNMP trap in Open VMS 7.2

when I am using SNMP_REQUEST, getting following output,

$ @TCPIP$SNMP_REQUEST.EXE
%RMS-W-RTB, 512 byte record too large for user's buffer

can you guessanything from this.

Amit.
Robert Atkinson
Respected Contributor

Re: fetching data from server using SNMP trap in Open VMS 7.2

TCPIP$SNMP_REQUEST is an executable, so you can't '@' it.

You must run it, either '$ MC TCPIP$SNMP_REQUEST.EXE' or '$ RUN TCPIP$SNMP_REQUEST.EXE'

Ideally, run @SYS$MANAGER:TCPIP$DEFINE_COMMANDS and use the utility like this :-

ALPHA_ROB$ @SYS$MANAGER:TCPIP$DEFINE_COMMANDS
ALPHA_ROB$ snmp_request
There must be at least 5 runtime arguments.

Usage:
$ snmp_request agent community request_type [flags] variable [type value]

or

$ mcr $1$dga1:[sys0.syscommon.][sysexe]tcpip$snmp_request.exe ...

request_type: get|getnext|getbulk|set

flags: [-v version] [-p port] [-l] [-t] [-d]
[-n non_repeaters] [-m max_repetitions]
[-w wait_seconds_max] [-i max_ignores]
[-r max_retries] [-s sleep_interval]


Rob.