SNMP Walk a cisco router

| | Comments (0)

ONLamp.com: Walk the SNMP Walk
using this to setup a ISDN query for a 2651 router...

In a nutshell, SNMP lets you "read" information from a device. You make a query of the server (generally known as the "agent"). The agent gathers the information from the host system and returns the answer to your SNMP client. It's like having a single interface for all your informative Unix commands.

Simple Network Management Protocol (SNMP) - Cisco Systems

The Simple Network Management Protocol(SNMP)is an application-layer protocol that facilitates the exchange of management information between network devices. It is part of the Transmission Control Protocol/Internet Protocol (TCP/IP) protocol suite.

OID File: ISDN-MIB.oid

SNMP Library for Ruby


"If you want to write network management applications in Ruby, you're probably going to need an SNMP library. The goal of the Ruby SNMP project is to create an interface to SNMP that has the same intuitive, joyful feeling that the Ruby programming language does. With a crusty, old protocol like SNMP this is easier said than done, but we're working on it!"

Using MRTG to Monitor and Graph Traffic Loads

Debug and Show commands for ISDN
Troubleshooting ISDN BRI Layer 3 Using the debug isdn q931 Command

Cisco IOS Configuration Fundamentals Command Reference, Release 12.2 - SNMP Commands [Cisco IOS Software Releases 12.2 Mainline] - Cisco Systems
"This chapter describes Cisco IOS Release 12.2 commands used to configure Simple Network Management Protocol (SNMP) on your routers for the purposes of network monitoring and management."

Cisco IOS Configuration Fundamentals Configuration Guide, Release 12.2 - Configuring SNMP Support [Cisco IOS Software Releases 12.2 Mainline] - Cisco Systems
"SNMP is an application-layer protocol that provides a message format for communication between SNMP managers and agents. SNMP provides a standardized framework and a common language used for the monitoring and management of devices in a network.

The SNMP framework has three parts:

•An SNMP manager

•An SNMP agent

•A MIB"

ISDN Basic Rate Service Setup Commands

isdnLapdOperStatus (.1.3.6.1.2.1.10.20.1.3.4.1.2):

isdnLapdOperStatus OBJECT-TYPE
SYNTAX INTEGER {
inactive(1),
l1Active(2),
l2Active(3)
}

for TEI_ASSIGNED, we return l1Active(2), for MULTIPLE_FRAME_ESTABLISHED
l2Active(3).

Entering commands manually on the router:

Router>show isdn ?
history ISDN call history
memory ISDN memory information
status ISDN Line Status
timers ISDN Timer values

Router>show isdn history
--------------------------------------------------------------------------------
ISDN CALL HISTORY
--------------------------------------------------------------------------------
Call History contains all active calls, and a maximum of 100 inactive calls.
Inactive call data will be retained for a maximum of 15 minutes.
--------------------------------------------------------------------------------
Call Calling Called Remote Seconds Seconds Seconds Charges
Type Number Number Name Used Left Idle Units/Currency
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------

Router>

Router>show isdn memory
MEMORY POOL STATISTICS
BlockType in use limit max used
mail descriptors 0 1920 0
exec timer blocks 0 2400 0
LIF timers 0 - 0
L2IF timers 0 - 0
PRIM_BTYPE 0 - 0
PKT_BTYPE 0 - 0
HEADER_BTYPE 0 - 0
SML_INFO_BTYPE 0 - 0
LRG_INFO_BTYPE 0 - 0
PKG_BTYPE 0 - 0
CCBs 0 - 0
DLCBs 0 - 0
NLCBs 0 - 0
Router>
Router>show isdn status
**** No Global ISDN Switchtype currently defined ****
ISDN BRI0/0 interface
dsl 0, interface ISDN Switchtype = none
Layer 1 Status:
DEACTIVATED
Layer 2 Status:
Layer 2 NOT Activated
Layer 3 Status:
0 Active Layer 3 Call(s)
Active dsl 0 CCBs = 0
The Free Channel Mask: 0x80000003
Total Allocated ISDN CCBs = 0
Router>
Router>show isdn timers
ISDN BRI0/0 Timers (dsl 0) Switchtype = none
ISDN Layer 2 values
K = 0 outstanding I-frames
N200 = 3 max number of retransmits
N202 = 2 max number of TEI ID Request retransmits
T200 = 1.000 seconds
T202 = 2.000 seconds
T203 = 0.000 seconds
ISDN Layer 3 values
T303 = 0.000 seconds
T304 = 0.000 seconds
T305 = 0.000 seconds
T306 = 0.000 seconds
T307 = 0.000 seconds
T308 = 0.000 seconds
T309 Disabled
T310 = 0.000 seconds
T313 = 0.000 seconds
T316 = 0.000 seconds
T318 = 0.000 seconds
T319 = 0.000 seconds
T322 = 0.000 seconds
T3OOS = 5.000 seconds
TGUARD= 0.000 seconds, Expiry = REJECT_CALL
*** dsl 1 is not configured
*** dsl 2 is not configured
*** dsl 3 is not configured
*** dsl 4 is not configured
*** dsl 5 is not configured
*** dsl 6 is not configured
*** dsl 7 is not configured
*** dsl 8 is not configured
*** dsl 9 is not configured
*** dsl 10 is not configured
*** dsl 11 is not configured
*** dsl 12 is not configured
*** dsl 13 is not configured
*** dsl 14 is not configured
*** dsl 15 is not configured
*** dsl 16 is not configured
*** dsl 17 is not configured
*** dsl 18 is not configured
*** dsl 19 is not configured
*** dsl 20 is not configured
*** dsl 21 is not configured
*** dsl 22 is not configured
*** dsl 23 is not configured
*** dsl 24 is not configured
*** dsl 25 is not configured
*** dsl 26 is not configured
*** dsl 27 is not configured
*** dsl 28 is not configured
*** dsl 29 is not configured
*** dsl 30 is not configured
*** dsl 31 is not configured
Router>

Leave a comment

About this Entry

This page contains a single entry by klsh published on January 5, 2006 3:42 PM.

anatomy of a windows server hack: can a hacker Infiltrate Your Network ? was the previous entry in this blog.

Telnet Password required, but none set on cisco router is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 4.01