Re: Net SNMP query

2014-12-31 Thread Vivek Maurya
Thanks Pal & Wes On Wed, Dec 31, 2014 at 7:48 AM, Pal wrote: > Why can't you just add "sysName " in your agents snmpd.conf > file? > Agent will parse this and sets the hostname accordingly. > Thanks > > Sent from my iPhone > > > On Dec 30, 2014, at 5:50 PM, Wes Hardaker < > harda...@users.source

Re: Net SNMP query

2014-12-30 Thread Pal
Why can't you just add "sysName " in your agents snmpd.conf file? Agent will parse this and sets the hostname accordingly. Thanks Sent from my iPhone > On Dec 30, 2014, at 5:50 PM, Wes Hardaker > wrote: > > Vivek Maurya writes: > >> I do not want to modify SNMP exist code. > > You can confi

Re: Net SNMP query

2014-12-30 Thread Wes Hardaker
Vivek Maurya writes: > I do not want to modify SNMP exist code. You can configure the agent to remove the implementation of that variable and re-implement it using an extension instead. See the "EXTENDING AGENT FUNCTIONALITY" section of the snmpd.conf manual page. -- Wes Hardaker Parsons

Re: Net SNMP query

2014-12-30 Thread Vivek Maurya
I do not want to modify SNMP exist code. On Tue, Dec 30, 2014 at 2:16 PM, NIJESH V P wrote: > net-snmp/agent/mibgroup/mibII/system_mib.c contain the code of sysname > implementation.you can add your code there. > > ... > static void > system_parse_config_sysname(const ch

Re: Net SNMP query

2014-12-30 Thread NIJESH V P
net-snmp/agent/mibgroup/mibII/system_mib.c contain the code of sysname implementation.you can add your code there. ... static void system_parse_config_sysname(const char *token, char *cptr) { system_parse_config_string(token, cptr, "sysName", sysName,

Re: Net SNMP query

2014-12-30 Thread NIJESH V P
you can change sysname using snmpset request. On Tue Dec 30 2014 at 1:35:56 PM Vivek Maurya wrote: > Hi All, > > I have following scenario to develop, could anybody suggest how to > implement it. > > Net SNMP has default implementation of "*sysName*". I want to modify > *sysName* value whenever