Hi Everyone!
So, this is hostname in a predefined MIB:
sysName OBJECT-TYPE
SYNTAX DisplayString (SIZE (0..255))
MAX-ACCESS read-write
STATUS current
DESCRIPTION
An administratively-assigned name for this managed
node.
::= { system 5 }
To MY-MIB I have to write this, if I'm not mistaken:
Hi,
I'd like to get the system name (hostname) of the computer: not from an already
existing MIB (from SNMPv2-MIB::sysName.0 - it works), but from my own.
I can now get (and also set) a string in my new MIB, but for this 'hostname'
object it is me that gives the value. I'd need the computer