[AGENT++] "cmd_exe_mib" example project

Frank Fock fock at agentpp.com
Fri Oct 31 07:18:18 CET 2014


Hi Oleg,

If a SNMP table is empty, you will not see its OIDs in a walk.
You need first to add rows to the table.
You can do this programmatically or by using SNMP SET
requests.

Best regards,
Frank


Am 31.10.2014 06:14, schrieb Олег Соковых:
> Hi Frank,
>
> Thanks for your quick reply.
>
> From the source code, I see that we register the following OIDs:
>
> 1.3.6.1.4.1.4976.6.1.2.2.2.1.(2..5)
>
> from cmd_exe_mib.cpp:
> ==
> /cmdExecutionCmdEntry::cmdExecutionCmdEntry()://
> //    MibTable("1.3.6.1.4.1.4976.6.1.2.2.2.1", 1, FALSE)//
> //{//
> //    // This table object is a singleton. In order to access it use//
> //    // the static pointer cmdExecutionCmdEntry::instance.//
> //    instance = this;//
> //
> //    add_col(new cmdExecutionCmdName("2"));//
> //    add_col(new cmdExecutionCmdStatus("3"));//
> //    add_col(new cmdExecutionCmdRunTime("4"));//
> //    add_col(new cmdExecutionCmdRowStatus("5"));//
> //
> //    threadPool = new ThreadPool(2);//
> //}//
> /==
>
> or
>
> 1.3.6.1.4.1.4976.6.1.2.3.1.1.(2)
>
> from cmd_exe_mib.cpp:
> ==
> /cmdExecutionOutputEntry::cmdExecutionOutputEntry()://
> //    MibTable("1.3.6.1.4.1.4976.6.1.2.3.1.1", 0, false)//
> //{//
> //    // This table object is a singleton. In order to access it use//
> //    // the static pointer cmdExecutionOutputEntry::instance.//
> //    instance = this;//
> //
> //    add_col(new cmdExecutionOutputLine("2"));//
> //
> //}/
> ==
>
> But I don't see these OIDs in output snmpWalk utility.
> Is there somewhere a short description of this example project?
>
> Thanks!
>
> Oleg
>
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> https://oosnmp.net/mailman/listinfo/agentpp

-- 
---
AGENT++
Maximilian-Kolbe-Str. 10
73257 Koengen, Germany
https://agentpp.com
Phone: +49 7024 8688230
Fax:   +49 7024 8688231



More information about the AGENTPP mailing list