SNMPv3 is configured and working. The list is showing "Last Seen" by SNMP, but all that is "known" is the IP address of the device. Any help is appreciated.
Can you run this against each device and post the result please.
snmpget -v2c -On -c <COMMUNITY> <IP> .126.96.36.199.188.8.131.52.0
Substitute your community string and IP. This will provide an OID (I ran this against a 3750 and got 184.108.40.206.220.127.116.11.516 which we map to "Cisco Catalyst 37xx Stack".
You can see the matches in the file /open-audit/code_igniter/application/helpers/snmp_9_helper.php
If your returned values (from the above SNMPGET) aren't in the file, that's why we're not returning a model.
I would also try running discovery against a SINGLE device using debug to see exactly what's happening.
Here is what I found. Two of the devices that are showing "unknown" are 38xx switch stacks (which isn't in the PHP file) and one is a 30008TC (which is). Below are the results of your request.
Here is the information you requested. I am trying to discover and add 5 or 6 main types of Cisco devices - WS-C3850-48T, WS-C3850-12S, WS-C3750X-48T-E, WS-C3750X-12S-E, WS-C3750X-24T-Eand IE-3000-8TC-E. there is no OID at all on the Device Details page (pasted below). I am only looking for hostname, model, serial number and IOS version, location, contact and uptime (see below from a script for pertinent OIDs). Up interfaces would be nice, but not needed yet. I am testing it on Windows for now and want to move it to Linux if I can get it working as I would like. Any help is appreciated.
Thanks - Jeff Blaha
# These work for many Cisco switcheshostname=`$SNMPGET $SNMPOPT .18.104.22.168.22.214.171.124.0model=`$SNMPGET $SNMPOPT .126.96.36.199.188.8.131.52.184.108.40.206.100version=`$SNMPGET $SNMPOPT .220.127.116.11.18.104.22.168.22.214.171.124.1001serial=`$SNMPGET $SNMPOPT .126.96.36.199.188.8.131.52.184.108.40.206.1001location=`$SNMPGET $SNMPOPT .220.127.116.11.18.104.22.168.0contact=`$SNMPGET $SNMPOPT .22.214.171.124.126.96.36.199.0
My apologies. I submitted the wrong OIDs. These are the ones that should work for what I need.
model=`$SNMPGET $SNMPOPT .188.8.131.52.184.108.40.206.220.127.116.11.1000
serial=`$SNMPGET $SNMPOPT .18.104.22.168.22.214.171.124.126.96.36.199.1000
serial2=`$SNMPGET $SNMPOPT .188.8.131.52.184.108.40.206.220.127.116.11.2000
version2=`$SNMPGET $SNMPOPT .18.104.22.168.22.214.171.124.126.96.36.199.2000
model2=`$SNMPGET $SNMPOPT .188.8.131.52.184.108.40.206.220.127.116.11.2000
serial3=`$SNMPGET $SNMPOPT .18.104.22.168.22.214.171.124.126.96.36.199.3000
version3=`$SNMPGET $SNMPOPT .188.8.131.52.184.108.40.206.220.127.116.11.3000
model3=`$SNMPGET $SNMPOPT .18.104.22.168.22.214.171.124.126.96.36.199.3000
serial2=`$SNMPGET $SNMPOPT .188.8.131.52.184.108.40.206.220.127.116.11.2001
version2=`$SNMPGET $SNMPOPT .18.104.22.168.22.214.171.124.126.96.36.199.2001
model2=`$SNMPGET $SNMPOPT .188.8.131.52.184.108.40.206.220.127.116.11.2001
serial3=`$SNMPGET $SNMPOPT .18.104.22.168.22.214.171.124.126.96.36.199.3001
version3=`$SNMPGET $SNMPOPT .188.8.131.52.184.108.40.206.220.127.116.11.2001
model3=`$SNMPGET $SNMPOPT .18.104.22.168.22.214.171.124.126.96.36.199.3001
Also - (sorry, copy and pasting issues - I'm sure you can see the pattern here. I only need a max of three)
version=`$SNMPGET $SNMPOPT .188.8.131.52.184.108.40.206.220.127.116.11.1000
serial=`$SNMPGET $SNMPOPT .18.104.22.168.22.214.171.124.126.96.36.199.1001
version=`$SNMPGET $SNMPOPT .188.8.131.52.184.108.40.206.220.127.116.11.1001
model=`$SNMPGET $SNMPOPT .18.104.22.168.22.214.171.124.126.96.36.199.1001
Likely Open-AudIT doesn't have a matching OID. Can you please post the OID (from the device details page) and the model and type of the device? If so, I can add it in for our next release and provide the code for you to patch your install right now.
You will have to use the old system_display page URL at the moment (if there's no link, substitue your device ID and server name URL below).
Look for the below section.
Powered by a free Atlassian Confluence Open Source Project License granted to Opmantek. Evaluate Confluence today.