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
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
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
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
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,
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