Skip to content

Instantly share code, notes, and snippets.

View lkmhaqer's full-sized avatar

Charles van Niman lkmhaqer

View GitHub Profile
@lkmhaqer
lkmhaqer / gist:7360524
Created November 7, 2013 19:30
My first Gist.
ISPa-P#sh ip ro
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
@lkmhaqer
lkmhaqer / gist:7361384
Created November 7, 2013 20:32
GISTIN
ISPb-PE#sh ip ro
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
@lkmhaqer
lkmhaqer / gist:7370831
Created November 8, 2013 13:10
ISPa-PE
ISPa-PE#sh run
Building configuration...
Current configuration : 2338 bytes
!
upgrade fpd auto
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
@lkmhaqer
lkmhaqer / gist:7911806
Last active December 31, 2015 01:09 — forked from anonymous/gist:7911567
not working:
root@netmon0:/opt/observium# snmpwalk -Os -c noclab -v 2c jfk0 1.3.6.1.2.1.31.1.1.1.1.15
iso.3.6.1.2.1.31.1.1.1.1.15 = STRING: "br0"
root@netmon0:/opt/observium# snmpwalk -Os -c noclab -v 2c jfk0 1.3.6.1.2.1.31.1.1.1.18.15
iso.3.6.1.2.1.31.1.1.1.18.15 = STRING: "Transit: CENSORED (CENSORED SubAS65000) {i001}"
working:
root@netmon0:/opt/observium# snmpwalk -Os -c noclab -v 2c giza 1.3.6.1.2.1.31.1.1.1.1.27
iso.3.6.1.2.1.31.1.1.1.1.27 = STRING: "Fa5/25"
root@netmon0:/opt/observium# snmpwalk -Os -c noclab -v 2c giza 1.3.6.1.2.1.31.1.1.1.18.27
root@jfk0:/usr/local/lib# ./ifAlias -n .1.3.6.1.2.1.31.1.1.1.18.15
string
root@jfk0:/usr/local/lib# ./ifAlias -g .1.3.6.1.2.1.31.1.1.1.18.15
.1.3.6.1.2.1.31.1.1.1.18.15
string
Transit: XXX (ASYYYY SubAS65000) {i001}
root@jfk0:/usr/local/lib# ./ifAlias -n .1.3.6.1.2.1.31.1.1.1.18.7
string
@lkmhaqer
lkmhaqer / gist:7930324
Created December 12, 2013 15:58
ifAlias ubuntu/debian debug.
with line 44 intact:
root@netmon0:/opt/observium# snmpwalk -Os -c noclab -v 2c jfk0 ifAlias
ifAlias.1 = STRING:
ifAlias.2 = STRING:
ifAlias.3 = STRING:
ifAlias.4 = STRING:
ifAlias.5 = STRING:
ifAlias.7 = STRING:
ifAlias.15 = STRING:
anunnaki-P3#sh ip ro
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
anunnaki-P3#dir disk0:
Directory of disk0:/
1 -rw- 52076612 Feb 01 2014 13:26:10 +00:00 s222-adventerprisek9_wan-mz.122-18.SXF17b.bin
128176128 bytes total (76095488 bytes free)
anunnaki-P3#dir slot0:
%Error opening slot0:/ (No such device)
anunnaki-P3(config)#do show boot
rommon 1 > set
PS1=rommon ! >
CONFIG_FILE=
RET_2_RUTC=1082365208
LOG_PREFIX_VERSION=1
PF_REDUN_CRASH_COUNT=0
SLOTCACHE=cards;
CRASHINFO=bootflash:crashinfo_20130412-205652
BOOTLDR=
?=0
rommon 3 > dir disk0:
Command error complete on disk0:
open: read error...requested 0x4 bytes, got 0xffffffff
trouble reading device magic number
dir: cannot open device "disk0:"