This post is more than 5 years old
37 Posts
0
3489
Dynamic Model
There is a function in Dynamic Model scripting, to get the value of a particular OID, while polling.
for eg: To show the Uptime of a device, - this can be done using Dynamic Model scripting, by the following method.
1. create an attribute for Uptime.
2. use the following method to get the uptime.
instrument SNMP{
systemUptime = "1.3.6.1.2.1.1.3.0"
};
readonly instrumented attribute int systemUptime
"The time (in hundredths of a second) since "
"the network management portion of the system "
"was last re-initialized.";
But this code is not retrieving any systemUptime value. Do somebody please help here, what went wrong?
-Arun
FredericMeunier_0588be
143 Posts
0
August 21st, 2009 09:00
Hi,
echo a | /opt/InCharge7/SAM/smarts/bin/dmctl -s INCHARGE-AM-PM getprop SNMPAgent_Fault_MIB2
...
sysUpTime
...
HTH,
FredericMeunier_0588be
143 Posts
0
August 11th, 2009 11:00
ArunDeva
37 Posts
0
August 21st, 2009 01:00
Hi Fred,
Could you please advice which attribute in AM domains is already giving the sysUptime of a device?
Thanks
Arun
ArunDeva
37 Posts
0
August 21st, 2009 23:00
Thank you Fred
Regards
Arun