千家论坛_弱电智能化技术与工程讨论(建筑智能,家居智能,人工智能)

路由交换
收藏本版 (7) |订阅

路由交换 今日: 3703 |主题: 18312|排名: 28 

发新帖
打印 上一主题 下一主题

{秘闻}cisco未公开的命令(看后请支持)...

[复制链接]
king999 发布于: 2004-8-5 13:48 2102 次浏览 22 位用户参与讨论
跳转到指定楼层

cisco 未公开的命令 Here you can find a collection of undocumented (not on Cisco Dokumentation CD or in online help) IOS commands:

csim

show interface switching

show ip ospf statistics

debug ip ospf monitor

ttcp

if-con

no snmp-server sparse-tables

who

show region

ps -c

quit

test aaa group radius

list of more and more undocumented commands

If you know more undocumented IOS commands for this collection, please send me a e-mail.

--------------------------------------------------------------------------------

With the command csim you can emulate a voice call. It′s like sombody calls the specified number. Usefull, if you don′t have physically access to telephone:

Sucessfull call:

wg1r1#csim start 089150

csim: called number = 089150, loop count = 1 ping count = 0

csim err csimDisconnected recvd DISC cid(21)

csim: loop = 1, failed = 1

csim: call attempted = 1, setup failed = 1, tone failed = 0

Call to a not defined number:

wg1r1#csim start 089151

csim: called number = 089151, loop count = 1 ping count = 0

csim err:csim_do_test Error peer not found

--------------------------------------------------------------------------------

With show interface switching you can see in detail, which protocols are process, fast or elsewhere switched. It′s helpfull for traffic engineering:

wg1r1#sh interfaces switching

Ethernet0/0

Throttle count 0

Drops RP 0 SP 0

SPD Flushes Fast 0 SSE 0

SPD Aggress Fast 0

SPD Priority Inputs 5700 Drops 0

Protocol Path Pkts In Chars In Pkts Out Chars Out

Other Process 8821 983982 7806 468360

Cache misses 0

Fast 0 0 0 0

Auton/SSE 0 0 0 0

IP Process 32228 3339712 5786 611402

Cache misses 0

Fast 92667 8980418 133414 189720295

Auton/SSE 0 0 0 0

DEC MOP Process 0 0 130 10010

Cache misses 0

Fast 0 0 0 0

Auton/SSE 0 0 0 0

ARP Process 6440 386380 195 11700

Cache misses 0

Fast 0 0 0 0

Auton/SSE 0 0 0 0

CDP Process 0 0 1302 404922

Cache misses 0

Fast 0 0 0 0

Auton/SSE 0 0 0 0

--------------------------------------------------------------------------------

With show ip ospf statistics you get detail informations about OSPF SPF. You can see the reasons for SPF and the calculation times:

London#show ip ospf statistic

Area 0: SPF algorithm executed 15 times

SPF calculation time

Delta T Intra D-Intra Summ D-Summ Ext D-Ext Total Reason

00:45:02 32 0 0 0 0 0 36 R,

00:41:00 28 0 0 0 0 0 28 R, N,

00:40:50 28 0 0 0 0 0 28 R,

00:38:13 28 0 0 0 4 0 32 R, X

00:34:18 24 0 0 0 4 0 32 R, N,SN,SA,X

00:07:37 24 0 0 0 0 0 36 R,

00:05:18 308 0 4 0 28 0 356 R,

00:04:05 24 0 0 0 4 0 28 R,

00:01:31 24 0 4 0 0 0 36 R,

00:01:21 24 0 0 4 0 0 36 R,

--------------------------------------------------------------------------------

With debug ip ospf monitor you can monitor the OSPF SPF.

London#deb ip ospf monitor

OSPF spf monitoring debugging is on

2d04h: OSPF: 192.168.181.2 address 192.168.181.193 on TokenRing0 is dead, state DOWN

2d04h: OSPF: Schedule SPF in area 0

Change in LS ID 0.0.0.0, LSA type R,

2d04h: OSPF: schedule SPF: spf_time 0ms wait_interval 187489656s

2d04h: %SYS-5-CONFIG_I: Configured from console by console

2d04h: OSPF: Start redist-scanning

2d04h: OSPF: Scan for redistribution

2d04h: OSPF: End scanning, Elapsed time 0ms

2d04h: %LINK-5-CHANGED: Interface TokenRing0, changed state to administratively down

2d04h: OSPF: Begin SPF at 0xB2CF100ms, process time 360ms

2d04h: spf_time 0ms, wait_interval 187489656s

2d04h: OSPF: End SPF at 0xB2CF120ms, Total elapsed time 32ms

2d04h: Intra: 24ms, Inter: 0ms, External: 0ms

--------------------------------------------------------------------------------

Start a TCP data server/receiver for TCP performance testing between two Cisco 7500 router:

sh ver

Cisco Internetwork Operating System Software

IOS (tm) RSP Software (RSP-JSV-M), Version 12.0(7), RELEASE SOFTWARE (fc1)

Router#ttcp

transmit or receive [receive]: transmit

Target IP address: 1.1.1.1

perform tcp half close [n]:

send buflen [8192]:

send nbuf [2048]:

bufalign [16384]:

bufoffset [0]:

port [5001]:

sinkmode [y]:

buffering on writes [y]:

show tcp information at end [n]:

ttcp-t: buflen=8192, nbuf=2048, align=16384/0, port=5001 tcp -> 1.1.1.1

%Connect failed: Destination unreachable; gateway or host down

Router#ttcp

transmit or receive [receive]:

perform tcp half close [n]:

receive buflen [8192]:

bufalign [16384]:

bufoffset [0]:

port [5001]:

sinkmode [y]:

rcvwndsize [4128]:

delayed ACK [y]:

show tcp information at end [n]:

ttcp-r: buflen=8192, align=16384/0, port=5001

rcvwndsize=4128, delayedack=yes tcp

--------------------------------------------------------------------------------

On Cisco 7500 you can connect you to the VIP boards for VIP commands (memory, cpu, etc.)

Router#if-con 2 con

Entering CONSOLE for VIP2 2

Type "^C^C^C" or "if-quit" to end this session

VIP-Slot2>

VIP-Slot2>?

Exec commands:

clear Reset functions

disable Turn off privileged commands

disconnect Disconnect an existing network connection

enable Turn on privileged commands

exit Exit from the EXEC

help Description of the interactive help system

lock Lock the terminal

login Log in as a particular user

logout Exit from the EXEC

name-connection Name an existing network connection

ping Send echo messages

resume Resume an active network connection

set Set system parameter (not config)

show Show running system information

systat Display information about terminal lines

terminal Set terminal line parameters

traceroute Trace route to destination

where List active connections

VIP-Slot2>en

VIP-Slot2#sh ver

Cisco Internetwork Operating System Software

IOS (tm) VIP Software (SVIP-DW-M), Version 12.0(7), RELEASE SOFTWARE (fc1)

Copyright (c) 1986-1999 by cisco Systems, Inc.

Compiled Wed 13-Oct-99 22:05 by phanguye

Image text-base: 0x60010920, data-base: 0x60224000

ROM: System Bootstrap, Version 11.1(11368) [pgreenfi 17], INTERIM SOFTWARE

VIP-Slot2 uptime is 10 minutes

System restarted by power-on

Running default software

cisco VIP2 (R4700) processor (revision 0x02) with 8192K bytes of memory.

Processor board ID 00000000

R4700 processor, Implementation 33, Revision 1.0 (512KB Level 2 Cache)

4 Ethernet/IEEE 802.3 interface(s)

1 FastEthernet/IEEE 802.3 interface(s)

Configuration register is 0x0

VIP-Slot2#?

Exec commands:

cd Change current directory

clear Reset functions

clock Manage the system clock

configure Enter configuration mode

copy Copy from one file to another

debug Debugging functions (see also 'undebug')

delete Delete a file

dir List files on a filesystem

disable Turn off privileged commands

disconnect Disconnect an existing network connection

enable Turn on privileged commands

exit Exit from the EXEC

help Description of the interactive help system

lock Lock the terminal

login Log in as a particular user

logout Exit from the EXEC

more Display the contents of a file

name-connection Name an existing network connection

no Disable debugging functions

ping Send echo messages

pwd Display current working directory

reload Halt and perform a cold restart

resume Resume an active network connection

send Send a message to other tty lines

set Set system parameter (not config)

setup Run the SETUP command facility

show Show running system information

systat Display information about terminal lines

terminal Set terminal line parameters

test Test subsystems, memory, and interfaces

traceroute Trace route to destination

undebug Disable debugging functions (see also 'debug')

where List active connections

write Write running configuration to memory, network, or terminal

VIP-Slot2#

--------------------------------------------------------------------------------

Router(config)#no snmp-server sparse-tables

Get the complete SNMP MIB table. On controller interface you get without this command e.g. no out bytes counter. With this commands you get every object with SNMP get-next.

--------------------------------------------------------------------------------

who is a alias for show user.

Router#who

Line User Host(s) Idle Location

* 0 con 0 idle 00:00:00

1 aux 0 idle 00:01:19

--------------------------------------------------------------------------------

Get more detail IOS informations:

Router#sh region

Region Manager:

Start End Size(b) Class Media Name

--------------------------------------------------------------------------------

0x02700000 0x02FFFFFF 9437184 Iomem R/W iomem

0x60000000 0x60FFFFFF 16777216 Flash R/O flash

0x80000000 0x826FFFFF 40894464 Local R/W main

0x80008088 0x8071A2A3 7414300 IText R/O main:text

0x8071A2A4 0x8097FD93 2513648 IData R/W main:data

0x8097FD94 0x80A4E0CF 844604 IBss R/W main:bss

0x80A4E0D0 0x826FFFFF 30089008 Local R/W main:heap

--------------------------------------------------------------------------------

router> ps -c

Will list the process on the router in a "better" way then show process.

Many thanks for this command goes to Thomas Surber.

--------------------------------------------------------------------------------

leaving a telnet session: normally with "exit" or "ex".

do this very fast with "q" (quit)

Many thanks for this command goes to Peter Schmid.

--------------------------------------------------------------------------------

test aaa group radius toto titi

To test radius on one router.

Many thanks for this command goes to Serge Baikof.

--------------------------------------------------------------------------------

bgp common-administration

bgp dynamic-med-interval

bgp process-dpa

clear ip eigrp [as] event Clear IP-EIGRP event logs

clear ip eigrp [as] logging Stop IP-EIGRP event logging

config overwrite

debug dialer detailed

debug ip packet ... dump Outputs a hex & ASCII dump of the packet's contents

debug isdn code

debug sanity

if-con attach to a vip console

if-cons

ip forwarding

ip forwarding accounting

ip forwarding accounting adjacency-update

ip forwarding accounting non-recursive

ip forwarding accounting per-prefix

ip forwarding accounting prefix-length

ip forwarding switch

ip forwarding traffic-statistics

ip forwarding traffic-statistics load-interval

ip forwarding traffic-statistics update-rate

ip igmp

ip igmp immediate-leave

ip igmp immediate-leave group-list

ip local-pool

ip ospf-name-lookup

ip slow-converge

ip spd

ip spd mode

ip spd mode aggressive

ip spd queue

ip spd queue max-threshold

ip spd queue min-threshold

memory scan Parity check for 7500 RSPs

modem-mgmt csm debug-rbs

no service password-recovery

service internal

set destination-preference

show alignment

show asp

show caller

show caller ip

show chunk

show chunk summary

show controller vip log

show controller vip tech

show fib

show fib drop

show fib interface

show fib interface detail

show fib interface loopback

show fib interface null

show fib interface statistics

show fib interface vlan

show fib linecard

show fib linecard detail

show fib not-cef-switched

show fib not-fib-switched

show hardware

show idb

show interface statis

show interface switching

show interfaces stat

show interface stat

show interfaces switching

show int switching

show ip eigrp event [as] [start# end#] IP-EIGRP Events

show ip eigrp sia-event [as] [start# end#] IP-EIGRP SIA event

show ip eigrp timers [as] IP-EIGRP Timers

show ip ospf bad-checksum

show ip ospf delete

show ip ospf delete-list

show ip ospf ev

show ip ospf events

show ip ospf maxage

show ip ospf maxage

show ip ospf statistics

show isdn active

show isdn history

show list

show list nonempty

show llc

show media

show media access-lists

show modem mapping

show parity

show parser

show parser links

show parser modes

show parser unresolved

show profile

show profile detail

show profile terse

show refuse-message

show region

show region address

show rsh

show rsh-disable-commands

show rsp

show slip

show slot

show snmp mib

show sum

show timers

snmp-server priority low

test crash makes the router crash

test ipc misc

test mbus power

ttcp

router bgp ...

bgp redistribute-internal

Usage:

Redistributing BGP into another protocol only redistributes E-BGP routes. Using this command in the BGP configuration will also redistribute I-BGP routes in the other routing-protocol.

Many thanks goes to Sanjeewa Alahakoon for this list of undocumented IOS commands.

__________________

回复

使用道具 举报

已有22人评论

新浪微博达人勋

千家认证

沙发
fengjiazhi 发表于 2004-8-5 19:25:00

支持!

老兄在哪搞到的?

回复 支持 反对

使用道具 举报

新浪微博达人勋

千家认证

板凳
king999 发表于 2004-8-6 08:51:00
是我们老板搞的
回复 支持 反对

使用道具 举报

新浪微博达人勋

千家认证

地板
king999 发表于 2004-8-6 10:11:00
UP
回复 支持 反对

使用道具 举报

新浪微博达人勋

千家认证

5#
king999 发表于 2004-8-6 16:19:00
up
回复 支持 反对

使用道具 举报

新浪微博达人勋

千家认证

6#
king999 发表于 2004-8-9 10:26:00
自己顶,不要沉,到60贴后在奉送经典案例
回复 支持 反对

使用道具 举报

新浪微博达人勋

千家认证

7#
yzyang 发表于 2004-8-10 10:19:00
支持一下,辛苦了楼主
回复 支持 反对

使用道具 举报

新浪微博达人勋

千家认证

8#
king999 发表于 2004-8-12 14:37:00
回复 支持 反对

使用道具 举报

新浪微博达人勋

千家认证

9#
quicen 发表于 2004-8-12 14:55:00
ding
回复 支持 反对

使用道具 举报

新浪微博达人勋

千家认证

10#
syaonet 发表于 2004-8-13 10:52:00

支持

回复 支持 反对

使用道具 举报

新浪微博达人勋

千家认证

11#
rocklkkk 发表于 2004-8-13 14:30:00
回复 支持 反对

使用道具 举报

新浪微博达人勋

千家认证

12#
king999 发表于 2004-8-17 11:52:00
顶了也不给个精
回复 支持 反对

使用道具 举报

新浪微博达人勋

千家认证

13#
snake_lin 发表于 2004-8-18 09:48:00
回复 支持 反对

使用道具 举报

新浪微博达人勋

千家认证

14#
grantgjy 发表于 2004-8-18 12:24:00
给你一点力量.为中国的未来努力啊.
回复 支持 反对

使用道具 举报

新浪微博达人勋

千家认证

15#
不一 发表于 2004-8-21 19:39:00

bu cuyo

回复 支持 反对

使用道具 举报

新浪微博达人勋

千家认证

16#
jjduandebin 发表于 2004-8-25 09:29:00
ding
回复 支持 反对

使用道具 举报

新浪微博达人勋

千家认证

17#
高节无量 发表于 2004-8-26 09:46:00

只有顶了。

回复 支持 反对

使用道具 举报

新浪微博达人勋

千家认证

18#
wenchao 发表于 2004-8-27 15:13:00

支持,不让落下来

回复 支持 反对

使用道具 举报

新浪微博达人勋

千家认证

19#
alex_huangg 发表于 2004-8-29 16:11:00

now I add a command.

sh ip ospf events

sh ip eigrp events

It's very powerful.

回复 支持 反对

使用道具 举报

新浪微博达人勋

千家认证

20#
iamalan 发表于 2004-8-30 15:24:00
up up
回复 支持 反对

使用道具 举报

12下一页
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆 千家通行证登陆

本版积分规则

千家智客微信号
千家智客微信
玩物说商城
玩物说商城