While Logging In, One Device Can Execute Remote Commands on Other Cisco Routers or Switches


Mon, 10/05/2009 - 08:14
Oct 5th, 2009
User Badges:
  • Silver, 250 points or more

/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;}

This Reader Tip by Shahid Masood shows you how one device can execute remote commands on other Cisco routers or switches to get commands outputs on one terminal.


VM-ACCESS-1#ssh -l shahid "show ip route" - is a remote device

below is a output;

1)- VM-ACCESS-1#ssh -l shahid "show ip route"




*         This is a secure System, Authorized Person Only..!!!





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


        ia - IS-IS inter area, * - candidate default, U - per-user



        o - ODR, P - periodic downloaded static route

Gateway of last resort is to network is subnetted, 1 subnets

C is directly connected, Vlan63

S* [1/0] via

[Connection to closed by foreign host]


2)- VM-ACCESS-1#ssh -l shahid "show ver" 





*         This is a secure System, Authorized Person Only..!!!





Cisco IOS Software, C3560 Software (C3560-ADVIPSERVICESK9-M), Version

12.2(44)SE, RELEASE SOFTWARE (fc1)

Copyright (c) 1986-2008 by Cisco Systems, Inc.

Compiled Sat 05-Jan-08 00:15 by weiliu

Image text-base: 0x00003000, data-base: 0x01900000

ROM: Bootstrap program is C3560 boot loader

BOOTLDR: C3560 Boot Loader (C3560-HBOOT-M) Version 12.2(25r)SEE4,


VM-720-iLO uptime is 41 weeks, 1 day, 6 hours, 48 minutes

System returned to ROM by power-on

System restarted at 09:32:43 EST Thu Oct 2 2008

System image file is "flash:c3560-advipservicesk9-mz.122-44.SE.bin"



This Document

Related Content