using net-snmp to read data from SMC?
Hi, we are currently using SMC 3.0 (about to upgrade to version 3.5). I'm interested in using net-snmp so that I can get access to the SNMP data residing in SMC via various C++ applications.
Can this be done without running a net-snmp agent or sub-agent? I would prefer to leave SMC as the only agent, and just use net-snmp in my C++ applications to read SNMP data.
Thanks very much.
Andy
# 1
SunMC has an API called the clientAPI that is java based. Access is from the SunMC server layer. All attributes and alarm status is available via the clientAPI. If you are using a C program, you should just use the clientAPI. It's explained fully in the DE guide on docs.sun.com and in /opt/SUNWsymon/sdk.
Mike
# 2
Hi Andy,
> Hi, we are currently using SMC 3.0 (about to upgrade
> to version 3.5). I'm interested in using net-snmp so
> that I can get access to the SNMP data residing in
> SMC via various C++ applications.
>
> Can this be done without running a net-snmp agent or
> sub-agent? I would prefer to leave SMC as the only
> agent, and just use net-snmp in my C++ applications
> to read SNMP data.
Using the ClientAPI is the tightest way to integrate to SunMC to get the data out. But, if you have your heart set on using net-snmp (i.e. snmpwalk), then it depends on what you want to do.
If you want to poll data, then Sun does export lots of SunMC's "MIB" files: you can use them to get at info inside SunMC
http://www.sun.com/software/solaris/sunmanagementcenter/faq/snmp.xml#q3
If you simply want to leave the data inside SunMC and receive traps when alarms occur, EventAction and the Framework Adapter will forward you alarms that are easy to decode:
http://www.halcyoninc.com/products/EventAction/index.php
http://www.halcyoninc.com/products/Frameworks/index.php
Note I work for Halcyon, who makes the products at those URLs
Regards,
Mike Kirk