lmg@hpindwa.cup.hp.com (Lisa Gullicksen) (11/03/90)
Background: We encountered a problem in integration testing of SNMP/XL. The test system is a 925 running the test build Z.22.12 of the OS. The program under test is written in C. The problem occurs when we execute an snmpget from a UX machine to query the system.sysDescr.0 MIB object. The Problem: The error occurs when the HPCIGETVAR intrinsic is called. The return value of the status parameter is: hpcigetvar returned info = -8106 subsys = 166. The code that gets invoked, along with the parameter declarations, follows: -------------------------------------------------------------------- hpe_status status_c; char keyvalue1[200]; int keyvalue2; printf ("about to call hpcigetvar for HPCPUNAME.\n"); hpcigetvar ("HPCPUNAME$", &status_c, 2, keyvalue1, 11, &keyvalue2); printf ("hpcigetvar returned info = %d subsys = %d.\n", status_c.half.info, status_c.half.subsys); ------------------------------------------------------------------- Questions: What is the error -8106? Why is it that this call works when linked with the test driver but not with the module with which it is being integrated? Within the integrated module, hpcigetver is called twice. The first time it works. The second time it doesn't. The second invocation is the one that comes from the newly integrated code (linked with the main program as an RL). We've checked that the test driver and the actual code are built in the same manner with the same capabilities, execution level and priv level (xleast=2;privlev=2;cap=ph,ds,mr,pm,ia,ba). Any help will be greatly appreciated! Lisa Gullicksen 1-447-2499, lmg@hpindzl Brian McCracken 1-447-3478, bhm@hpda IND