Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

3489

July 21st, 2009 02:00

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

August 21st, 2009 09:00

Hi,

echo a | /opt/InCharge7/SAM/smarts/bin/dmctl -s INCHARGE-AM-PM getprop SNMPAgent_Fault_MIB2

...

sysUpTime

...

HTH,

== Monitor your Smarts environment using APG ReportPack for Smarts health  ==
Frederic Meunier
Solutions Watch4Net Inc
APG & Smarts InCharge integration

August 11th, 2009 11:00

HI Arun,

in order to get an OID using Dynamic Model, the solution is a little bit more complex than just using the attached code. You have to create the instrumentation, assign the resulting value to an attribute, and subscribe to the attribute to the OID is polled.
What do you need to acheive ? If you are looking at only the sysUpTime, this attribute is already polled by IP AM.

HTH,

--Fred


== Monitor your Smarts environment using APG ReportPack for Smarts health  ==
Frederic Meunier
Solutions Watch4Net Inc
APG & Smarts InCharge integration

37 Posts

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

37 Posts

August 21st, 2009 23:00

Thank you Fred

Regards

Arun

No Events found!

Top