Im trying to get internal cisco router date time via SNMP.
CLI analog of what I want to get is "show clock".
Is there any specific OID to get this information via SNMP (besides the upTime OID which are not helpful in this case)?
Thank you in advice!
I think the OID you're looking for is:
1.3.6.1.4.1.9.9.131.1.1.1 - csyClockDateAndTime
From the Description: "The current local date and time for the system."
It's a read-write object (read-only on some systems).
Pls refer to http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6.1.4.1.9.9.131.1.1.1.
Related
I'm trying to read data off a Cisco Meraki MX84 using SNMP. I can successfully get data from the oids using snmpget and the OSX tool MIBBrowser. The problem I'm having is that the oid is hard to interpret. Is there a command I can run with snmpwalk or using another tool to see the human readable description of each oid?
You need the MIB to get the information about the MIB objects (including their name, meaning, etc). A google search "Cisco Meraki MIB" will give you the answer.
I am very new to SNMP and I need to get "system uptime" using our own enterprise OID.
I have already obtained an IANA number and created a MIB file.
The problem is when I use snmpget command with our OID, I get an object not found error at the command prompt.
Although when I do a snmptranslate on our object, I get the exact OID of that object.
If any additional information is required from my side, please let me know.
When you use snmpget, an SNMP request is made via IP to an SNMP agent on a remote (or local) host to return a specific piece of data. A MIB is used to describe in human readable terms, what that data is and where to find it. On the other hand, snmptranslate is a tool used to parse a given MIB. It parses a local MIB file, and doesn't make any contact with an agent.
Since you mentioned creating a new MIB, I assume your trying to add new functionality to an SNMP agent. To do this, the agent must be extended. If you're using Net-SNMP, there are a few options including compiling new source code into the agent, using a sub-agent, and using external scripts via pass and pass-persist protocol. Take a look at:
http://www.net-snmp.org
http://vincent.bernat.im/en/blog/2012-extending-netsnmp.html
I'm running Zabbix 2.2.5 and I'm trying to create a template with a couple of SNMP items.
I want to setup my template such that it uses the hostname macro within the SNMP OID, however no matter which macro I try and use I can't seem to get Zabbix to correctly resolve it.
An example of the SNMP OID I'm trying to query is:
NET-SNMP-EXTEND-MIB::nsExtendOutputFull.\"racka1-exhaust_temperature\"
Where the parent host of the item has the hostname: racka1.
Where I manually specify the OID already including the hostname as above to test, I successfully return a value.
When I set the OID as follows, I get problems:
NET-SNMP-EXTEND-MIB::nsExtendOutputFull.\"{HOST.NAME1}-exhaust_temperature\"
I've checked through the list of macro's and their usage locations but I can't judge which might cover SNMP OIDs, without looking through the source code.
I've got logging turned up to 4 in an effort to try and understand what is going on however I'm compounded in my testing by Zabbix setting the item to Not Supported and even though this check is set to run every 60 seconds, once I change the OID, I can't get Zabbix to quickly requeue the changed items.
Is it even possible to use a macro in a SNMP OID? If so which should I be using to mirror the hostname?
According to the linked documentation, under "Additional support for user macros" heading it says that user macros (the ones that look like {$MACRO}) are supported in SNMP OID field. However, {HOST.NAME}-like macros are not supported in SNMP OID and this can be confirmed by looking at the source code.
If you wish to have such support, please register a new ZBXNEXT.
Is there a way to have my online application get the time and date from the user local machine instead of the server it resides on? The point is that there are users in different time zones and it will not make sense to have the standard UTC time stamp on their files. Thanks in advance fo ryour help.
Yes, with JavaScript new Date().
I am looking for a OID to get the firmware version of a Cisco Switch using SNMP.
I tried the below MIB files, i couldn't.
OLD-CISCO-CHASSIS-MIB.mib
ENTITY-MIB.my
CISCO-ENTITY-ASSET-MIB
Do anybody know the OID, if so, kindly post me. Thanks
Probably you already did that but try querying the sysDescr OID. Usually it contains model number and software information.