I have tried to output the scalar name, oid and oid length. On every iteration
it prints out a new unique scalar.
Many scalars, but here is the output of a few:
Scalar: version 1.3.6.1.4.1.40463.2.1
Scalar: primary 1.3.6.1.4.1.40463.2.2
Scalar: available 1.3.6.1.4.1.40463.2.3
Scalar: hostn
On 26 October 2012 13:29, Sverre Moe wrote:
> Full code of my scalar registration. Changed to register all scalars one by
> one instead of in group.
>
> The oid_wrapper class is a wrapper around oid that contains an oid pointer
> and the length of that oid.
Try printing out the value of 'scalar_o
Full code of my scalar registration. Changed to register all scalars one by one
instead of in group.
The oid_wrapper class is a wrapper around oid that contains an oid pointer and
the length of that oid.
The scalar class cointains data on each scalars.
void
myclient::registerScalars() {
On 26 October 2012 12:16, Sverre Moe wrote:
> The first scalar group I tried to register got value 0(MIB_REGISTERED_OK).
>
> All the others got value -1(MIB_REGISTRATION_FAILED or
> MIB_DUPLICATE_REGISTRATION).
Do the other groups use the same "root" OID as the first registration
Update:
Checked the value returned from netsnmp_register_scalar_group
The first scalar group I tried to register got value 0(MIB_REGISTERED_OK).
All the others got value -1(MIB_REGISTRATION_FAILED or
MIB_DUPLICATE_REGISTRATION).
I have checked all scalars that was registered and there wa
Hello, me again. Have been sending a few messages lately. Hope I am not nagging
to much.
Is there a way I could debug snmp. I have gotten my C++ program to work as an
SNMP AgentX. I have managed to register 3 hard coded test scalars and it works
when I snmpget on those scalars.
Thus remo
When you execute the scripts from command line, are they working as
expected?
On Thu, Oct 25, 2012 at 10:00 PM, Allen Chan wrote:
> Hi all,
>
> We are trying to figure out how to troubleshoot the pass-persist feature
> of SNMP.
> Our NMS is monitoring a bunch of OIDs that goes through pass-per
An update: I got it to work. It seem like I forgot something in the SNMP
initialization.
Adding init_snmp(" my-snmp-deamon ") ; did the trick.
- Original Message -
Fra: "Sverre Moe"
Til: "net-snmp-users"
Sendt: 25. oktober 2012 13:51:10
Emne: Attaching a MIB Module into a C++ pro