SNMP Command
Good morning, I want your help for a subject about the SNMP command. I am using linux and I want to use a SNMP command to see the description of an OID. Here is a section from the mib: sysOperEvalNodeCmdOrder OBJECT-TYPE SYNTAX INTEGER { undefined (0), oper (1), preoper (2), eval (3), unknown (4) } MAX-ACCESS read-write STATUS current DESCRIPTION "Command to set a single node to an OPER /EVAL state: Undefined (0), Set node in Operational mode (1), Set node in PreOperational mode (2), Set node in Evaluation mode (3), Set node in Unknown mode (4)" ::= { sysOperEval 2 } I use this command: snmpd -m /home/snet/execution/staticCFG/MibCoSNET.txt -v1 -c public localhost .1.3.6.1.4.1.4747.14.5.16.2.0 which allows me to have as an output: LOG-MIB::sysOperEvalNodeCmdOrder.0 = INTEGER: oper(1) . I want to have as an output the red line which is the description of the OID. Can you tell me which command allows me to have that in the output of the terminal? Thank you Have a nice day Samir HOUASLI Software Engineer MOE ODS This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ___ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
Re: SNMP Command
Den 26-04-2019 kl. 17:22 skrev HOUASLI, Samir via Net-snmp-coders: I use this command: snmpd -m /home/snet/execution/staticCFG/MibCoSNET.txt -v1 -c public localhost .1.3.6.1.4.1.4747.14.5.16.2.0 which allows me to have as an output: LOG-MIB::sysOperEvalNodeCmdOrder.0 = INTEGER: oper(1) I want to have as an output the red line which is the description of the OID. *Can you tell me which command allows me to have that in the output of the terminal?* You probably meant snmpget not snmpd? The closest thing we have is snmptranslate with the -Td argument. But you can of course modify snmpget to your hearts desire :-) /Niels -- Niels Baggesen - @home - Ã…rhus - Denmark - n...@users.sourceforge.net The purpose of computing is insight, not numbers --- R W Hamming ___ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
IP-MIB : ipSystemStatsTable is working but ipIfStatsTable is not working via snmp command
I am working on ipSystemStatsTable and ipIfStatsTable implementation code here am having problem for ipSystemStatsTable am getting result for snmpwalk and snmptable but for ipIfStatsTable the result showing "no such object's available on this agent at this oid" .I find the same query with response like if you enable ipv6 you should see something. So I tried by adding below lines into /etc/sysctl.conf file net.ipv6.conf.wlan0.use_tempaddr = 2 net.ipv6.conf.eth0.use_tempaddr = 2 net.ipv6.conf.all.use_tempaddr = 2 net.ipv6.conf.default.use_tempaddr = 2 After relaoding the network, ifconfig will not showing a second public IPv6 address on interface(s) that used to have only one public IPv6 address.So am unclear about how to do it, please help me.* * -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders