Networking, Security & Cloud Knowledge

Friday, November 27, 2009

005 - USERFULL COMMAND CISCO

ROUTER(CONFIG)# NO IP DOMAIN LOOKUP -disables domain lookup process

ROUTER# SHOW TECH-SUPPORT -generates configuration text files

ROUTER# SHOW CONTROLLERS SERIAL 0 -show dce/dte and clock rate information

ROUTER# SHOW RUN INTERFACE SERIAL 0 -shows running configuration of serial interface

ROUTER# TERMINAL MONITOR

ROUTER# TERMINAL LENGTH 0 -show run command output without break

Router(config)# alias exec sr show run -create our own command
--------------------------------------------------------------------------
show tech-support tee tftp://192.168.1.10/test.txt -redirects command output

show run redirect tftp://192.168.1.10/test.txt -redirects command output
---------------------------------------------------------------------------
sh run i include
sh run b begin
sh run e exclude
sh run i ^
sh run i $
sh run linenum
* To view the serial numbers of WIC cards, get details of the specific cards in the router and even the PVDMs (DSPs) in the router.
Note: The show inventory command is not supported on older IOS versions.
show inventory
show inventory raw
show diag
* Commands to see the CPU utilization, processes running on a router and the memory used/available.
show processes cpu : command to display detailed information on the processes
show processes memory : command to show the amount of memory used.
show processes cpu history :gives you a nice graph of CPU utilization. It displays a historical graph of the CPU in 60 seconds, 60 minutes and 72 hour format. This is useful as it shows the CPU utilization over a period of time, rather than just as at a specific point in time.

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

ping 192.168.1.10 repeat 100 source fa0/0 -for extended ping


--------------------------------------------------------------------------------
Delete Non - Empty folder on Cisco device.
Command:  delete /force /recursive flash:directory

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

Verify md5 hash of the image:

Switch #verify /md5 flash:/ c2960-lanbasek9-mz.150-2.SE2.bin
Verify filename []?  c2960-lanbasek9-mz.150-2.SE2.bin
..............................................................................................................................................................................................................................................................................................................................................................................................................................Done!
%Error verifying flash:c2960-lanbasek9-mz.150-2.SE2.bin
Computed signature  = cef59a65fd31713481fb5d245b1ef950
Submitted signature = c2960-lanbasek9-mz.150-2.se2.bin

****************************************************************************

Send message on ssh / vty session

# show line

# send