Hi Nephew,
I did run the command as you mentioned and here is what happened with me:
Code:
[root@client ~]# /usr/sbin/snmpd -c /etc/snmp/snmpd.conf 127.0.0.1 192.168.1.71
[root@client ~]# echo $?
1
Looks like something is wrong.
Well I will look into that as soon as I get sufficient time.
But meanwhile, can you please tell me one more thing, that How can I get the OID of any of the below parameter (by using its name or string i.e. memTotalSwap.0) ?
Example:
"UCD-SNMP-MIB::memIndex.0 = INTEGER: 0
UCD-SNMP-MIB::memErrorName.0 = STRING: swap
UCD-SNMP-MIB::memTotalSwap.0 = INTEGER: 4030456 kB
UCD-SNMP-MIB::memAvailSwap.0 = INTEGER: 4030456 kB
UCD-SNMP-MIB::memTotalReal.0 = INTEGER: 3890484 kB"
To find the OID, I used run the command:
Code:
# snmptranslate -Td -IR memTotalSwap.0
UCD-SNMP-MIB::memTotalSwap.0
memTotalSwap OBJECT-TYPE
-- FROM UCD-SNMP-MIB
SYNTAX Integer32
UNITS "kB"
MAX-ACCESS read-only
STATUS current
DESCRIPTION "The total amount of swap space configured for this host."
::= { iso(1) org(3) dod(6) internet(1) private(4) enterprises(1) ucdavis(2021) memory(4) memTotalSwap(3) 0 }
So this is not showing OID actually. Only some information.
Thanks.