Hello Venkat,

Are you changing the hostname by editing the /etc/hostname file directly or by using the hostname command?

Regards,

Dan Pattison

On 2019-05-19 9:04 p.m., Venkateswarlu Konamki wrote:
Hi All,
Any update on this issue?

Thanks,
Venkat


On Thu, May 16, 2019 at 10:40 AM Venkateswarlu Konamki <venkat.kona...@gmail.com <mailto:venkat.kona...@gmail.com>> wrote:

    Hi All ,

    I am facing issue with in system_mib with SysName and SysLocation.

    Recently i have upgraded net-snmp version from 5.3.01 to 5.7.3. In
    5.7.3, if i see the code is system_mib  there are changes happened
    for handling the mibs.

    First time when i am doing snmp walk i am able to get the correct
    hostname and syslocation.
    Next i have changed the hostname with CLI (not via snmpset).  when
    i do snmpwlak or get, hostname is still showing the old name.

    *Before changing the hostname : *
    # snmpget -v2c -c test localhost  .1.3.6.1.2.1.1.5.0
    .1.3.6.1.2.1.1.5.0 = STRING: "Venkat_Desktop"
    #
    administrator@Venkat:~$ hostname
    Venkat_Desktop.

    *After changing the hostname from Venkat_Desktop to "Venkat_machine"*
    # snmpget -v2c -c test localhost  .1.3.6.1.2.1.1.5.0
    .1.3.6.1.2.1.1.5.0 = STRING: "Venkat_Desktop"
    #
    administrator@Venkat:~$ hostname
    Venkat_machine.

    It is reflecting in hostname, but when i do via snmp it is still
    showing the old hostname.

    I am notable to find the root cause for this one.

    Is any one faced same issue ? if yes. what is the fix for this ?
    Please help on this


    Thanks,

    Venkat



_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to