IfAdminStatus extension / itegration
Alan Del Tredici <[email protected]>
| Newsgroups | gmane.network.net-snmp.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello, We would like to extend functionality of ifAdminStatus on our platform which is using net-snmp v5.7.3. The goal is to monitor a hardware register bit which indicates whether the external power supply of the interface is enabled, and report this bit via ifAdminStatus.1. We also want to set the h/w bit based upon snmpset. The other interfaces (.2, .3, etc) should report ifAdminStatus as usual. What is the recommended way of integrating ifAdminStatus in this way? Does it require source-code mods (interfaces.c), can it be implemented using the ‘pass’ extension with a script to read/write the h/w register as needed, or some other approach? I've experimented with 'pass' scripts, but the down-side seems to be that I have to implement not only ifAdminStatus.1 support, but also reporting of ifAdminStatus.2 state, in order for 'getnext' to operate. Modifying source has it's own pitfalls. What is the cleanest approach? Thanks, Alan ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders