SysUpTime Property

Time passed since the agent was initialized (in hundredths of a second).

Syntax

ANSI (Cross Platform)
int64 GetSysUpTime();
int SetSysUpTime(int64 lSysUpTime); Unicode (Windows) LONG64 GetSysUpTime();
INT SetSysUpTime(LONG64 lSysUpTime);
@property (nonatomic,readwrite,assign,getter=sysUpTime,setter=setSysUpTime:) long long sysUpTime;
- (long long)sysUpTime;
- (void)setSysUpTime:(long long)newSysUpTime;
#define PID_SNMPAGENT_SYSUPTIME 13

IPWORKSSNMP_EXTERNAL void* IPWORKSSNMP_CALL IPWorksSNMP_SNMPAgent_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSSNMP_EXTERNAL int IPWORKSSNMP_CALL IPWorksSNMP_SNMPAgent_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

0

Remarks

This property is used when sending SNMP traps, and it normally provides the time since the system was restarted in 1/100s of a second.

If another value is desired, you may set this property to a custom value. From that point on, SysUpTime will return the value set plus time elapsed.

This property is not available at design time.

Data Type

Long64

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks SNMP 2020 C++ Edition - Version 20.0 [Build 8202]