This is my ping -
tcphost is a variable that has the IP address.
IF CNMEPING('-q' tcphost) THEN
ping_ok = 1
ELSE
ping_ok = 0
And my apologies, they're SNMP GET's, not walk.
'PIPE NETV snmp get -Os -c public -h 'tcphost ifPhysAddress.1,
'| VAR macaddr'
'PIPE NETV snmp get -Os -c public -h 'tcphost gdStatusId.0,
'| VAR printid'
'PIPE NETV snmp get -Os -c public -h 'tcphost gdStatusInitialize.0,
'| VAR status'
- Vignesh
Mainframe Admin
-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf
Of Tony Harminc
Sent: 18 April 2014 00:24
To: [email protected]
Subject: Re: Forget: Sorting CSV data that begins with an IP address
On 17 April 2014 14:58, Sankaranarayanan, Vignesh
<[email protected]> wrote:
> I'm looping some 5000 times in REXX and doing functions (NetView ping, SNMP
> walk, etc) sequentially. They don't necessarily need to be sequential. I'm
> just going through a list of printers and I want to test them.
>
> So.. Is it possible that I make the first run a data run - reading parameters
> from files for each printer (reading PDS member) - and the second run as a
> thread creator of sorts. Each thread going off to test one printer.
>
> The first run should be almost instantaneous. My thinking is.. Is it possible
> to parallelly do the pinging and SNMP connection bits. It would cut 20
> minutes runtime to just a couple.
When you say NetView ping, SNMP walk, etc, are these canned programs you have
to run, or functions you have written in your REXX using the sockets interface?
I assume the former, but if the latter, the REXX sockets API does support
nonblocking mode, so in theory you could have multiple connections on the go at
once without multitasking/threading.
Tony H.
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to
[email protected] with the message: INFO IBM-MAIN
MARKSANDSPENCER.COM
________________________________
Unless otherwise stated above:
Marks and Spencer plc
Registered Office:
Waterside House
35 North Wharf Road
London
W2 1NW
Registered No. 214436 in England and Wales.
Telephone (020) 7935 4422
Facsimile (020) 7487 2670
www.marksandspencer.com
Please note that electronic mail may be monitored.
This e-mail is confidential. If you received it by mistake, please let us know
and then delete it from your system; you should not copy, disclose, or
distribute its contents to anyone nor act in reliance on this e-mail, as this
is prohibited and may be unlawful.
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN