Phil Hall solved the problem so, for the record -thanks Phil and James- and
the archive:

H dftactgrp( *no ) bnddir( 'QC2LE' )

D getsnmp         PR            10I 0 ExtProc('snmpGet')
D  pdu_ptr                        *   value
D  host_ptr                       *   value options(*string)
D  timeout                      10I 0 value
D  comm_ptr                       *   value options(*string)
D  comm_len                     10I 0 value

D varBind         DS
D  next                           *   inz(*NULL)
D  pOid                           *   inz(%addr(oid))
D  asnType                       1a
D  valLen                       10i 0 inz(50)
D  valPtr                         *   inz(%addr(value))

D snmppdu         DS
D  pduType                       1a
D  errSts                       10i 0
D  errIdx                       10i 0
D  pVarBind                       *   inz(%addr(varBind))

D x               S             10i 0
D value           S             50a
D oid             S             50a
inz(xf14bf34bf64bf14bf24bf14bf14bf14bf000' )
D host            S             10a   inz('')
D cmty            S              6a   inz(x'7075626C6963')

c                   eval      x = getsnmp(%addr(snmppdu) :
c                                         %addr(host):
c                                         5:
c                                         %addr(cmty):
c                                         6)

c                   eval      x = x

c                   return

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.