Registrations to Open-AudIT forums are now closed. To ask any new questions please visit Opmantek Community Questions.

Open-AudIT

What's on your network?
It is currently Fri Mar 29, 2024 3:54 am

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Help Wanted - SNMP
PostPosted: Fri Feb 15, 2013 4:30 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 07, 2004 11:48 am
Posts: 1964
Location: Brisbane, Australia
OK, so I'm getting into SNMP retrieval of device attributes a lot more. SNMP is... interesting. No consistent way of retrieving stuff - seems each vendor has their own ideas.

So - I need the communities help. If you have an snmp browser (or even SNMP on the command line) and you have SNMP capable devices in your organisation, could I ask the following. Could you query the sysDescr.0 (or 1.3.6.1.2.1.1.1.0) and post it here along with what the device actually is (A Cisco Catalyst 3500 switch for example).

I have a testing Cisco 1721 router here which gives me the following:
[code]STRING: Cisco IOS Software, C1700 Software (C1700-K9O3SY7-M), Version 12.4(25a), RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2009 by Cisco Systems, Inc.
Compiled Fri 22-May-09 20:20 by prod_rel_team[/code]

I'd appreciate if you could try it on any and all devices (printers, switches, routers, UPSs, etc, etc) you have. The more I get, the better Open-AudIT snmp detection and classification will be. The idea is to build up a good SNMP -> Human readable list of what devices actually are (router, switch, printer, UPS, ect). Yes, I know some of this is available depending on vendor. For example, the "type" attribute available on some device at hrDeviceType.1 (or 1.3.6.1.2.1.25.3.2.1.2.1).

The following query strings are all of interest, really... If you want to query them all and paste the result here (along with a human readable "this is a switch|router|UPS|etc"), that would be awesome. If you come across any other attributes within SNMP you think might be of interest, please also post them.

[code]Type hrDeviceType.1 1.3.6.1.2.1.25.3.2.1.2.1
Description sysDescr.0 1.3.6.1.2.1.1.1.0
Description / Model hrDeviceDescr.1 1.3.6.1.2.1.25.3.2.1.3.1
Name sysName.0 1.3.6.1.2.1.1.5.0
Location sysLocation.0 1.3.6.1.2.1.1.6.0
Uptime system.sysUpTime.0 1.3.6.1.2.1.1.3.0
Printer Manufacturer prtInputVendorName.1.1 1.3.6.1.2.1.43.8.2.1.14.1.1
Printer Serial prtGeneralSerialNumber.1 1.3.6.1.2.1.43.5.1.1.17.1
Cisco IOS Version 1.3.6.1.2.1.47.1.1.1.1.9.1
Cisco Serial 1.3.6.1.2.1.47.1.1.1.1.11.1
Cisco Manufacturer 1.3.6.1.2.1.47.1.1.1.1.12.1
Cisco Model 1.3.6.1.2.1.47.1.1.1.1.13.1[/code]


EDIT - looks like I have the Cisco stuff solved. See [url=http://www.networkpipeline.com/index.php/products/common-cisco-snmp-oids]here[/url] for an easy enough to use list of OIDs -> Models of Cisco gear. If your device is not on the list, please query 1.3.6.1.2.1.1.2.0 and let us know the result and what model it is. Thanks again.

_________________
Support and Development hours available from [url=https://opmantek.com]Opmantek[/url].
Please consider a purchase to help make Open-AudIT better for everyone.


Top
 Profile  
Reply with quote  
 Post subject: Re: Help Wanted - SNMP
PostPosted: Fri Feb 15, 2013 7:54 pm 
Offline
Newbie

Joined: Fri Feb 01, 2013 8:36 pm
Posts: 7
Hi Mark,
hope this can helps you.

If you need something else,
let me know.

Francesco

[code]
Cisco Switch
iso.3.6.1.2.1.1.1.0 = STRING: "Cisco IOS Software, C2960S Software (C2960S-UNIVERSALK9-M), Version 12.2(53)SE2, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2010 by Cisco Systems, Inc.
Compiled Wed 21-Apr-10 06:08 by prod_rel_team"
Type:
iso.3.6.1.2.1.25.3.2.1.2.1 = No Such Object available on this agent at this OID
Description:
iso.3.6.1.2.1.1.1.0 = STRING: "Cisco IOS Software, C2960S Software (C2960S-UNIVERSALK9-M), Version 12.2(53)SE2, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2010 by Cisco Systems, Inc.
Compiled Wed 21-Apr-10 06:08 by prod_rel_team"
Description / Model:
iso.3.6.1.2.1.25.3.2.1.3.1 = No Such Object available on this agent at this OID
Name:
iso.3.6.1.2.1.1.5.0 = STRING: "CREDIRES_CS"
Location:
iso.3.6.1.2.1.1.6.0 = STRING: "Machine Room"
Uptime:
iso.3.6.1.2.1.1.3.0 = Timeticks: (2915364385) 337 days, 10:14:03.85
Printer Manufacturer:
iso.3.6.1.2.1.43.8.2.1.14.1.1 = No Such Object available on this agent at this OID
Printer Serial:
iso.3.6.1.2.1.43.5.1.1.17.1 = No Such Object available on this agent at this OID
Cisco IOS Version:
iso.3.6.1.2.1.47.1.1.1.1.9.1 = ""
Cisco Serial:
iso.3.6.1.2.1.47.1.1.1.1.11.1 = ""
Cisco Manufacturer:
iso.3.6.1.2.1.47.1.1.1.1.12.1 = ""
Cisco Model
iso.3.6.1.2.1.47.1.1.1.1.13.1 = ""
[/code]

[code]
3Com Switch
iso.3.6.1.2.1.1.1.0 = STRING: "3Com Baseline Switch 2924-SFP Plus"
Type:
iso.3.6.1.2.1.25.3.2.1.2.1 = No Such Object available on this agent at this OID
Description:
iso.3.6.1.2.1.1.1.0 = STRING: "3Com Baseline Switch 2924-SFP Plus"
Description / Model:
iso.3.6.1.2.1.25.3.2.1.3.1 = No Such Object available on this agent at this OID
Name:
iso.3.6.1.2.1.1.5.0 = STRING: "3com192"
Location:
iso.3.6.1.2.1.1.6.0 = STRING: "vele"
Uptime:
iso.3.6.1.2.1.1.3.0 = Timeticks: (53444300) 6 days, 4:27:23.00
Printer Manufacturer:
iso.3.6.1.2.1.43.8.2.1.14.1.1 = No Such Object available on this agent at this OID
Printer Serial:
iso.3.6.1.2.1.43.5.1.1.17.1 = No Such Object available on this agent at this OID
Cisco IOS Version:
iso.3.6.1.2.1.47.1.1.1.1.9.1 = No Such Instance currently exists at this OID
Cisco Serial:
iso.3.6.1.2.1.47.1.1.1.1.11.1 = No Such Instance currently exists at this OID
Cisco Manufacturer:
iso.3.6.1.2.1.47.1.1.1.1.12.1 = No Such Instance currently exists at this OID
Cisco Model
iso.3.6.1.2.1.47.1.1.1.1.13.1 = No Such Instance currently exists at this OID
[/code]

[code]
APC RT5000 UPS
iso.3.6.1.2.1.1.1.0 = STRING: "APC Web/SNMP Management Card (MB:v4.0.1 PF:v5.1.6 PN:apc_hw05_aos_516.bin AF1:v5.1.6 AN1:apc_hw05_sumx_516.bin MN:xxx HR: xxx SN:xxx MD:xx/xx/xxxx) (Embedded PowerNet SNMP Agent SW v2.2 compatible)"
Type:
iso.3.6.1.2.1.25.3.2.1.2.1 = No Such Object available on this agent at this OID
Description:
iso.3.6.1.2.1.1.1.0 = STRING: "APC Web/SNMP Management Card (MB:v4.0.1 PF:v5.1.6 PN:apc_hw05_aos_516.bin AF1:v5.1.6 AN1:apc_hw05_sumx_516.bin MN: xxx HR: xxx SN: xxx MD:xx/xx/xxxx) (Embedded PowerNet SNMP Agent SW v2.2 compatible)"
Description / Model:
iso.3.6.1.2.1.25.3.2.1.3.1 = No Such Object available on this agent at this OID
Name:
iso.3.6.1.2.1.1.5.0 = STRING: "apc-RT5000"
Location:
iso.3.6.1.2.1.1.6.0 = STRING: "EH"
Uptime:
iso.3.6.1.2.1.1.3.0 = Timeticks: (3661226230) 423 days, 18:04:22.30
Printer Manufacturer:
iso.3.6.1.2.1.43.8.2.1.14.1.1 = No Such Object available on this agent at this OID
Printer Serial:
iso.3.6.1.2.1.43.5.1.1.17.1 = No Such Object available on this agent at this OID
Cisco IOS Version:
iso.3.6.1.2.1.47.1.1.1.1.9.1 = No Such Object available on this agent at this OID
Cisco Serial:
iso.3.6.1.2.1.47.1.1.1.1.11.1 = No Such Object available on this agent at this OID
Cisco Manufacturer:
iso.3.6.1.2.1.47.1.1.1.1.12.1 = No Such Object available on this agent at this OID
Cisco Model
iso.3.6.1.2.1.47.1.1.1.1.13.1 = No Such Object available on this agent at this OID
[/code]

[code]
Cisco SF300-24P switch
iso.3.6.1.2.1.1.1.0 = STRING: "24-port 10/100 PoE Managed Switch"
Type:
iso.3.6.1.2.1.25.3.2.1.2.1 = No Such Object available on this agent at this OID
Description:
iso.3.6.1.2.1.1.1.0 = STRING: "24-port 10/100 PoE Managed Switch"
Description / Model:
iso.3.6.1.2.1.25.3.2.1.3.1 = No Such Object available on this agent at this OID
Name:
iso.3.6.1.2.1.1.5.0 = STRING: "cisco195"
Location:
iso.3.6.1.2.1.1.6.0 = STRING: "hen-house"
Uptime:
iso.3.6.1.2.1.1.3.0 = Timeticks: (534213900) 61 days, 19:55:39.00
Printer Manufacturer:
iso.3.6.1.2.1.43.8.2.1.14.1.1 = No Such Object available on this agent at this OID
Printer Serial:
iso.3.6.1.2.1.43.5.1.1.17.1 = No Such Object available on this agent at this OID
Cisco IOS Version:
iso.3.6.1.2.1.47.1.1.1.1.9.1 = No Such Instance currently exists at this OID
Cisco Serial:
iso.3.6.1.2.1.47.1.1.1.1.11.1 = No Such Instance currently exists at this OID
Cisco Manufacturer:
iso.3.6.1.2.1.47.1.1.1.1.12.1 = No Such Instance currently exists at this OID
Cisco Model
iso.3.6.1.2.1.47.1.1.1.1.13.1 = No Such Instance currently exists at this OID
[/code]

[code]
VMWARE ESX server
iso.3.6.1.2.1.1.1.0 = STRING: "VMware ESX 4.1.0 build-348481 VMware, Inc. x86_64"
Type:
iso.3.6.1.2.1.25.3.2.1.2.1 = No Such Instance currently exists at this OID
Description:
iso.3.6.1.2.1.1.1.0 = STRING: "VMware ESX 4.1.0 build-348481 VMware, Inc. x86_64"
Description / Model:
iso.3.6.1.2.1.25.3.2.1.3.1 = No Such Instance currently exists at this OID
Name:
iso.3.6.1.2.1.1.5.0 = STRING: "star1"
Location:
iso.3.6.1.2.1.1.6.0 = STRING: "not set"
Uptime:
iso.3.6.1.2.1.1.3.0 = Timeticks: (656893929) 76 days, 0:42:19.29
Printer Manufacturer:
iso.3.6.1.2.1.43.8.2.1.14.1.1 = No Such Instance currently exists at this OID
Printer Serial:
iso.3.6.1.2.1.43.5.1.1.17.1 = No Such Instance currently exists at this OID
Cisco IOS Version:
iso.3.6.1.2.1.47.1.1.1.1.9.1 = No Such Instance currently exists at this OID
Cisco Serial:
iso.3.6.1.2.1.47.1.1.1.1.11.1 = No Such Instance currently exists at this OID
Cisco Manufacturer:
iso.3.6.1.2.1.47.1.1.1.1.12.1 = No Such Instance currently exists at this OID
Cisco Model
iso.3.6.1.2.1.47.1.1.1.1.13.1 = No Such Instance currently exists at this OID
[/code]

[code]
Windows 2008 Server
iso.3.6.1.2.1.1.1.0 = STRING: "Hardware: Intel64 Family 6 Model 26 Stepping 5 AT/AT COMPATIBLE - Software: Windows Version 6.0 (Build 6002 Multiprocessor Free)"
Type:
iso.3.6.1.2.1.25.3.2.1.2.1 = OID: iso.3.6.1.2.1.25.3.1.5
Description:
iso.3.6.1.2.1.1.1.0 = STRING: "Hardware: Intel64 Family 6 Model 26 Stepping 5 AT/AT COMPATIBLE - Software: Windows Version 6.0 (Build 6002 Multiprocessor Free)"
Description / Model:
iso.3.6.1.2.1.25.3.2.1.3.1 = STRING: "Microsoft XPS Document Writer"
Name:
iso.3.6.1.2.1.1.5.0 = STRING: "SOLE"
Location:
iso.3.6.1.2.1.1.6.0 = ""
Uptime:
iso.3.6.1.2.1.1.3.0 = Timeticks: (217820713) 25 days, 5:03:27.13
Printer Manufacturer:
iso.3.6.1.2.1.43.8.2.1.14.1.1 = No Such Object available on this agent at this OID
Printer Serial:
iso.3.6.1.2.1.43.5.1.1.17.1 = No Such Object available on this agent at this OID
Cisco IOS Version:
iso.3.6.1.2.1.47.1.1.1.1.9.1 = No Such Object available on this agent at this OID
Cisco Serial:
iso.3.6.1.2.1.47.1.1.1.1.11.1 = No Such Object available on this agent at this OID
Cisco Manufacturer:
iso.3.6.1.2.1.47.1.1.1.1.12.1 = No Such Object available on this agent at this OID
Cisco Model
iso.3.6.1.2.1.47.1.1.1.1.13.1 = No Such Object available on this agent at this OID
[/code]

[code]
Fibre Channel
iso.3.6.1.2.1.1.1.0 = STRING: "Fibre Channel Switch."
Type:
iso.3.6.1.2.1.25.3.2.1.2.1 = No Such Object available on this agent at this OID
Description:
iso.3.6.1.2.1.1.1.0 = STRING: "Fibre Channel Switch."
Description / Model:
iso.3.6.1.2.1.25.3.2.1.3.1 = No Such Object available on this agent at this OID
Name:
iso.3.6.1.2.1.1.5.0 = STRING: "swfc01"
Location:
iso.3.6.1.2.1.1.6.0 = STRING: "End User Premise."
Uptime:
iso.3.6.1.2.1.1.3.0 = Timeticks: (207582704) 24 days, 0:37:07.04
Printer Manufacturer:
iso.3.6.1.2.1.43.8.2.1.14.1.1 = No Such Object available on this agent at this OID
Printer Serial:
iso.3.6.1.2.1.43.5.1.1.17.1 = No Such Object available on this agent at this OID
Cisco IOS Version:
iso.3.6.1.2.1.47.1.1.1.1.9.1 = ""
Cisco Serial:
iso.3.6.1.2.1.47.1.1.1.1.11.1 = STRING: "xxxnnnnxxxx"
Cisco Manufacturer:
iso.3.6.1.2.1.47.1.1.1.1.12.1 = ""
Cisco Model
iso.3.6.1.2.1.47.1.1.1.1.13.1 = STRING: "nn-nnnnnnn-nn"
[/code]

[code]
bhc280
iso.3.6.1.2.1.1.1.0 = STRING: "KONICA MINOLTA bizhub C280"
Type:
iso.3.6.1.2.1.25.3.2.1.2.1 = OID: iso.3.6.1.2.1.25.3.1.5
Description:
iso.3.6.1.2.1.1.1.0 = STRING: "KONICA MINOLTA bizhub C280"
Description / Model:
iso.3.6.1.2.1.25.3.2.1.3.1 = STRING: "KONICA MINOLTA bizhub C280"
Name:
iso.3.6.1.2.1.1.5.0 = ""
Location:
iso.3.6.1.2.1.1.6.0 = ""
Uptime:
iso.3.6.1.2.1.1.3.0 = Timeticks: (1262881) 3:30:28.81
Printer Manufacturer:
iso.3.6.1.2.1.43.8.2.1.14.1.1 = STRING: "KONICA MINOLTA"
Printer Serial:
iso.3.6.1.2.1.43.5.1.1.17.1 = STRING: "A0ED022014971"
Cisco IOS Version:
iso.3.6.1.2.1.47.1.1.1.1.9.1 = No Such Object available on this agent at this OID
Cisco Serial:
iso.3.6.1.2.1.47.1.1.1.1.11.1 = No Such Object available on this agent at this OID
Cisco Manufacturer:
iso.3.6.1.2.1.47.1.1.1.1.12.1 = No Such Object available on this agent at this OID
Cisco Model
iso.3.6.1.2.1.47.1.1.1.1.13.1 = No Such Object available on this agent at this OID
[/code]


Top
 Profile  
Reply with quote  
 Post subject: Re: Help Wanted - SNMP
PostPosted: Sat Feb 23, 2013 4:58 am 
Offline
Newbie

Joined: Sat Jul 11, 2009 1:19 am
Posts: 20
Mark I would love to help, however I am not very familiar with SNMP. Can I just do a snmpwalk on the device? I use cacti with snmp. If you need I can run the commands on a bunch of HP DL380 servers diff Gens and some Cl460c Blades as well as some Cisco Nexus switches


Top
 Profile  
Reply with quote  
 Post subject: Re: Help Wanted - SNMP
PostPosted: Sat Feb 23, 2013 9:04 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 07, 2004 11:48 am
Posts: 1964
Location: Brisbane, Australia
[quote="keogk"]Can I just do a snmpwalk on the device?
Well, you can but you're better off just doing an SNMPGET on the individual attributes.
Like this: [code]snmpget -v 2c -c <COMMUNITY_STRING> -On <IP_ADDRESS> 1.3.6.1.2.1.1.1.0[/code] for example... I would really appreciate it if you could do that for you different types of devices :D

_________________
Support and Development hours available from [url=https://opmantek.com]Opmantek[/url].
Please consider a purchase to help make Open-AudIT better for everyone.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group