|
Hi
I am trying to extend the agent for “sysServices” which is under
system group. I followed these steps: 1)
Mib2c sysServices 2)
I got 2 files sysServices.h and
sysServices.c 3)
In sysServices.c file I added variable
declaration “static int t=7” and in the switch case, under MODE_GET
I modified the function call as snmp_set_var_typed_value(requests->requestvb,
ASN_INTEGER, (u_char *) &t,Sizeof(t));
4)
To compile this module with
master agent, I did .\configure –with-mib-modules=”sysServices”
, make and make install 5)
After installing this I restated the
snmpd agent, when I try to get sysUptime, sysDescr it is giving correct values,
When I try to get the OID sysServices using the command
Snmpget –v2c –c public localhost system.sysServices
it is giving
Error in Packet
Reason:(nosuchname) : There is no such variable name in this MIB. Failed
object :SNMPv-MIB::sysServices.0 I used adventnet also to query the same agent,
it is also giving the error saying Sent get request
to 10.201.114.140 : 161 Request Failed:
Get Response PDU received from 10.201.114.140 Error Indication
in response: There is no such variable name in this mib. Errindex: 1 Where I am making the mistake? ………………………..
Is I have to give the group OID in the mib2c (here system). Thank you for u r previous responses ……….. With regards, Kandasamy |
- Extending the Agent for sysServices kanda.samy
- Re: Extending the Agent for sysServices Dave Shield
