AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de Windows / Funciones del protocolo SNMP
  • Tip: browse OID values
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Reads the value found after the last value retrieved for an SNMP agent.
Remark: This function can only be called if the SNMPGet function has been used at least once.. In this case, SNMPGetNext reads the next value of the SNMP agent. Otherwise, the OID preceding the OID to be read must be specified in SNMPGetNext.
Ejemplo
// Read the description of the local system
SessionID is int = SNMPStartSession("127.0.0.1")
nType is int
sDesc is string = SNMPGet(SessionID, ".1.3.6.1.2.1.1.1", nType)

sOID is string
sInfo is string
// Read the next value
sInfo = SNMPGetNext(SessionID, sOID, nType)
Sintaxis
<Result> = SNMPGetNext(<Session identifier> [, <Previous OID> [, <Returned type>]])
<Result>: ANSI character string
  • Value of the OID returned by the agent. The type of the value is retrieved in an integer variable (<Returned Type>).
  • Empty string ("") if an error occurred. In this case, the ErrorOccurred variable is set to True and ErrorInfo returns more details about the problem.
<Session identifier>: Integer
Identifier of SNMP session, returned by SNMPStartSession.
<Previous OID>: Optional character string
Identifier of the SNMP object found before the SNMP object to read. This string can correspond to the identifier in text format or in numeric format (the MIB file that describes the OID must have been loaded by SNMPLoadMIB).
Once the function has been run, this parameter contains the OID of the element read (in numeric format).
<Returned type>: Optional Integer variable
If this parameter is specified, the variable will be assigned with the type of the retrieved value. The following constants are available:
snmpTypeBitsThe OID contains bits.
snmpTypeCounter32The OID is a counter (signed integer on 32 bits).
snmpTypeCounter64The OID is a counter (signed integer on 64 bits).
snmpTypeIntegerThe OID contains an integer.
snmpTypeIPAddressThe OID contains an IP address.
snmpTypeNullThe OID is not associated with a value (a branch with child elements but without value by itself for example).
snmpTypeOIDThe OID contains an OID.
snmpTypeOpaqueThe OID contains a value that cannot be interpreted directly.
snmpTypeProgressBarThe OID contains a progress bar.
snmpTypeStringThe OID contains a string.
snmpTypeTicksThe OID contains a number of ticks.
snmpTypeUnsignedIntegerThe OID contains an unsigned integer.
Observaciones

Tip: browse OID values

If the first identifier of the OID of an agent to browse is unknown, use the following syntax:
SNMPGetNext(<Identifier>, "0")
Componente: wd300com.dll
Versión mínima requerida
  • Versión 12
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

Señalar un error o enviar una sugerencia | Ayuda local