View Issue Details

IDProjectCategoryView StatusLast Update
530RackTablesSNMPpublic2012-04-16 13:26
Reporterbiffhero Assigned Toadoom42  
PrioritynormalSeverityminorReproducibilityN/A
Status closedResolutionfixed 
Product Version0.19.10 
Summary530: snmpgeneric.php
DescriptionThis plugin helps the racktables system automatically populate the L2 and interface enumeration on my linux hosts. Please include it in the next release.
TagsNo tags attached.

Activities

2012-02-11 05:40

 

snmpgeneric.php (22,583 bytes)
adoom42

adoom42

2012-02-11 06:02

administrator   ~0000603

The patch looks interesting. But much of what it does is already covered by the built-in SNMP functionality. Please explain the benefit of using this instead of the existing system.
biffhero

biffhero

2012-02-14 00:39

reporter   ~0000610

The functionality that I like about snmpgeneric is that it is able to get my ethernet ports from my Dell servers which are running Linux. I only see the "SNMP sync" tab on my switches and routers. Is there a way to do it on servers?
biffhero

biffhero

2012-02-15 18:15

reporter   ~0000611

Last edited: 2012-02-15 18:59

Here are some differences I see right now.

snmp sync as shipped with racktables:

- shows "2620XM: 2 RJ-45/10-100TX" as the model in the green 'success' banner, but in the properties tab, shows HW type: as 1801 instead of a 2620XM.

- Shows the proper SW Version as 12.4(25c)

- does not set the SW type, leaves it as "NOT SET"

- adds fqdn from the system hostname

- adds OEM S/N

- adds aux0, con0 and AC-in as ports

- does not add tunnel interfaces

- does not add loopback interfaces

- appears and disappears at will. I understand that it is only there if it is useful (if there are no ports already defined, so it will do something), but it is still disconcerting that it appears and disappears all the time. Also, the yellow seems to not flow with the theme of the UI. I would prefer that it is always there, allowing me to do a refresh of my device. As it stands, if I change IP addresses, I will need to delete the ports which are cabled up properly, and re-add them all over the place. I would rather simply be able to re-run it, and then say, "update with the following changes"

snmp generic sync does the following:

- adds syscontact info

- does not add fqdn, even though it gets the SNMPv2-MIB::sysName.0 variable

- does not get hw type

- does not get OEM S/N 1

- does not add SW type, even though it gets the SNMPv2-MIB::sysDescr.0 variable

- does not get SW version

- does not get the snmp variable from the main config setting, "Default SNMP Community string"

- does get the Lo50 and Lo100 interfaces, as well as adding their IP address. This is the thing that makes snmpgeneric.php so powerful for me. We can cross reference reality (what is on the routers right now) against our list of available and not available IP addresses.

- does not get tunnel 101 interface, even though it shows in the ifTable.

All this is to say that both snmp.php and snmpgeneric.php have plusses and minuses, neither of them is perfect. The dictionary lookup method of snmp.php is good in that it does aux and con and AC ports. The ifTable lookup method of snmpgeneric is good in that it does all the interfaces that are on the system that the developer doesn't know about.

- does not add my tunnel interface, even though it finds it, and grabs the L2 address from it. The ifAlias from this port is important, it's how we determine which user is on which port

biffhero

biffhero

2012-02-17 23:31

reporter   ~0000612

Actually, the author and I have been working to make his plugin even better. The best place to get the plugin is from the author.

2012-02-20 12:59

 

snmpgeneric-20022012.php (32,931 bytes)

2012-02-20 12:59

 

snmpconfig.png (9,888 bytes)   
snmpconfig.png (9,888 bytes)   

2012-02-20 13:00

 

snmpgenericlist.png (22,389 bytes)   
snmpgenericlist.png (22,389 bytes)   
racktabler

racktabler

2012-02-20 13:00

reporter   ~0000615

Uploaded new version of snmpgeneric with some screenshots

2012-02-22 09:46

 

snmpgeneric-22022012.php (39,399 bytes)
racktabler

racktabler

2012-02-22 09:48

reporter   ~0000616

Again uploaded new version

 - check / uncheck all
 - added some hrefs to ports and ip addresses
 - internal changes

Maybe someone can delete the old files. Thx

2012-02-29 08:59

 

snmpgeneric-29022012.php (48,410 bytes)
racktabler

racktabler

2012-02-29 09:04

reporter   ~0000618

New Version uploaded
 
 - made table more readable
 - Enterasys specific changes
 - better support for catalyst (experimental)
 - internal changes
infrastation

infrastation

2012-04-16 13:26

administrator   ~0000649

This script is merged into contribs directory: https://github.com/RackTables/racktables-contribs/commit/9276dc977d79544c355e80f75e920a0b36fa85a4

Please improve it there, including making changes necessary to merge into the main source tree.

Issue History

Date Modified Username Field Change
2012-02-11 05:40 biffhero New Issue
2012-02-11 05:40 biffhero Status new => assigned
2012-02-11 05:40 biffhero Assigned To => adoom42
2012-02-11 05:40 biffhero File Added: snmpgeneric.php
2012-02-11 06:02 adoom42 Note Added: 0000603
2012-02-14 00:39 biffhero Note Added: 0000610
2012-02-15 18:15 biffhero Note Added: 0000611
2012-02-15 18:59 biffhero Note Edited: 0000611
2012-02-17 23:31 biffhero Note Added: 0000612
2012-02-20 12:59 racktabler File Added: snmpgeneric-20022012.php
2012-02-20 12:59 racktabler File Added: snmpconfig.png
2012-02-20 13:00 racktabler File Added: snmpgenericlist.png
2012-02-20 13:00 racktabler Note Added: 0000615
2012-02-22 09:46 racktabler File Added: snmpgeneric-22022012.php
2012-02-22 09:48 racktabler Note Added: 0000616
2012-02-29 08:59 racktabler File Added: snmpgeneric-29022012.php
2012-02-29 09:04 racktabler Note Added: 0000618
2012-04-16 13:26 infrastation Note Added: 0000649
2012-04-16 13:26 infrastation Status assigned => closed
2012-04-16 13:26 infrastation Resolution open => fixed