Skip to content

Instantly share code, notes, and snippets.

View pdxmaverick's full-sized avatar

Brian Thompson pdxmaverick

  • Portland, OR, USA
View GitHub Profile
@pdxmaverick
pdxmaverick / 20140130.out
Created January 31, 2014 06:01
origin/Im juniper ex sflow support
root@portal:/usr/local/sflow# /usr/local/bin/update-l2databaseRH.pl --debug --vlan 998
-su: /usr/local/bin/update-l2databaseRH.pl: No such file or directory
root@portal:/usr/local/sflow# /usr/local/bin/update-l2database.pl --debug --vlan 998
DEBUG174: processing ptk-fabric-nwax-1
DEBUG271 snmpwalk2hash() NWAXv2.0@ptk-fabric-nwax-1
DEBUG284 snmpwalk2hash() HASH(0x89cafd0)
DEBUG271 snmpwalk2hash() NWAXv2.0@ptk-fabric-nwax-1
DEBUG284 snmpwalk2hash() HASH(0x8787f3c)
DEBUG179: pre-emptively trying Juniper jnxExVlanTag to see if we're on a J-EX box (.1.3.6.1.4.1.2636.3.40.1.5.1.5.1.5) on ptk-fabric-nwax-1
DEBUG271 snmpwalk2hash() NWAXv2.0@ptk-fabric-nwax-1
@pdxmaverick
pdxmaverick / gist:8701695
Created January 30, 2014 02:53
20140129.out
root@portal:/usr/local/ixp# /usr/local/bin/update-l2databaseRH.pl --debug --vlan 998
DEBUG: processing ptk-fabric-nwax-1
DEBUG: pre-emptively trying Juniper jnxExVlanTag to see if we're on a J-EX box (.1.3.6.1.4.1.2636.3.40.1.5.1.5.1.5) on ptk-fabric-nwax-1
DEBUG: looks like we're running on a Juniper EX box on ptk-fabric-nwax-1
DEBUG: attempting to retrieve dot1qVlanFdbId mapping (.1.3.6.1.2.1.17.7.1.4.2.1.3) on ptk-fabric-nwax-1
DEBUG: got mapping index: 998 maps to 2 on ptk-fabric-nwax-1
DEBUG: attempting Q-BRIDGE-MIB (.1.3.6.1.2.1.17.7.1.2.2.1.2.2) on ptk-fabric-nwax-1
DEBUG: processing ex4500
DEBUG: pre-emptively trying Juniper jnxExVlanTag to see if we're on a J-EX box (.1.3.6.1.4.1.2636.3.40.1.5.1.5.1.5) on ex4500
DEBUG: looks like we're running on a Juniper EX box on ex4500
@pdxmaverick
pdxmaverick / 2014012301.out
Created January 23, 2014 22:29
update-l2-database.pl 7734a61
root@portal:~# /usr/local/bin/update-l2database.pl --debug --vlan 998
DEBUG: processing ptk-fabric-nwax-1
DEBUG: pre-emptively trying Juniper jnxExVlanTag to see if we're on a J-EX box (.1.3.6.1.4.1.2636.3.40.1.5.1.5.1.5) on ptk-fabric-nwax-1
DEBUG: looks like we're running on a Juniper EX box on ptk-fabric-nwax-1
DEBUG: attempting to retrieve dot1qVlanFdbId mapping (.1.3.6.1.2.1.17.7.1.4.2.1.3) on ptk-fabric-nwax-1
DEBUG: got mapping index: 998 maps to 2 on ptk-fabric-nwax-1
DEBUG: attempting Q-BRIDGE-MIB (.1.3.6.1.2.1.17.7.1.2.2.1.2.2) on ptk-fabric-nwax-1
DEBUG: processing ex4500
DEBUG: pre-emptively trying Juniper jnxExVlanTag to see if we're on a J-EX box (.1.3.6.1.4.1.2636.3.40.1.5.1.5.1.5) on ex4500
DEBUG: looks like we're running on a Juniper EX box on ex4500
@pdxmaverick
pdxmaverick / 2014012101.out
Created January 22, 2014 03:58
update-l2-database.pl 7734a61
root@portal:/usr/local/ixp# /usr/local/bin/update-l2database.pl --debug --vlan 998
DEBUG: processing ptk-fabric-nwax-1
DEBUG: attempting to retrieve dot1qVlanFdbId mapping (.1.3.6.1.2.1.17.7.1.4.2.1.3) on ptk-fabric-nwax-1
DEBUG: that didn't work. let's try Juniper EX jnxExVlanTag mapping instead (.1.3.6.1.4.1.2636.3.40.1.5.1.5.1.5) on ptk-fabric-nwax-1
DEBUG: got mapping index: 998 maps to 2 on ptk-fabric-nwax-1
DEBUG: attempting Q-BRIDGE-MIB (.1.3.6.1.2.1.17.7.1.2.2.1.2.2) on ptk-fabric-nwax-1
DEBUG: processing ex4500
DEBUG: attempting to retrieve dot1qVlanFdbId mapping (.1.3.6.1.2.1.17.7.1.4.2.1.3) on ex4500
DEBUG: that didn't work. let's try Juniper EX jnxExVlanTag mapping instead (.1.3.6.1.4.1.2636.3.40.1.5.1.5.1.5) on ex4500
DEBUG: got mapping index: 998 maps to 2 on ex4500
@pdxmaverick
pdxmaverick / 2013122501.out
Created December 25, 2013 19:57
update-l2-database.pl 8cbbbf2 output
root@portal:~# /usr/local/bin/update-l2database.pl --debug --vlan 998
DEBUG: processing ex4500
DEBUG: attempting to retrieve dot1qVlanFdbId mapping (.1.3.6.1.2.1.17.7.1.4.2.1.3) on ex4500
DEBUG: that didn't work. let's try Juniper EX jnxExVlanTag mapping instead (.1.3.6.1.4.1.2636.3.40.1.5.1.5.1.5) on ex4500
DEBUG: got mapping index: 998 maps to 2 on ex4500
DEBUG: attempting Q-BRIDGE-MIB (.1.3.6.1.2.1.17.7.1.2.2.1.2.2) on ex4500
$l2mapping = {
'ex4500' => {
'ge-0/0/39.0' => [
'00d02b194100'
@pdxmaverick
pdxmaverick / interfaces-walk.txt
Created November 13, 2013 19:08
Juniper EX4500 snmpwalk of 1.3.6.1.2.1.2
iso.3.6.1.2.1.2.1.0 = INTEGER: 179
iso.3.6.1.2.1.2.2.1.1.4 = INTEGER: 4
iso.3.6.1.2.1.2.2.1.1.5 = INTEGER: 5
iso.3.6.1.2.1.2.2.1.1.6 = INTEGER: 6
iso.3.6.1.2.1.2.2.1.1.7 = INTEGER: 7
iso.3.6.1.2.1.2.2.1.1.8 = INTEGER: 8
iso.3.6.1.2.1.2.2.1.1.9 = INTEGER: 9
iso.3.6.1.2.1.2.2.1.1.10 = INTEGER: 10
iso.3.6.1.2.1.2.2.1.1.11 = INTEGER: 11
iso.3.6.1.2.1.2.2.1.1.12 = INTEGER: 12