Category: Cisco

Cisco: Configure Port Monitoring on Cisco Switches

Port monitoring is used to copy network traffic to and from a particular port and send the copies to another port. Using port monitoring you can sniff data passing through a port which is extremely useful when troubleshooting applications and networks. This feature was introduced in switches because of the basic differences between hubs and switches. When a hub receives a packet on one port, it sends that packet to all other ports except the port it recieved the packet from. Thus if you would like to analyze the data to and from a particular host connected to the hub all you had to do is to connect a sniffer to a differant port on the hub and start receiving data. On the other hand, switches send packets directly from the source to the destination host. The sniffer, connected to a differant port on the switch, will not see this traffic. This is where port monitoring comes in handy.

scsw1-lj(config)#no monitor session 1
scsw1-lj(config)#monitor session 1 source interface Gi2/9
scsw1-lj(config)#monitor session 1 destination interface Gi3/48
scsw1-lj(config)#interface Gi3/48
scsw1-lj(config-if)#no shutdown

The commands above are pretty self explanatory. Line 1 removes monitoring session 1 if already configured. Lines 2 and 3 define the source and destination port respectively while lines 4 and 5 modify the destination port state from shutdown to no shutdown to start receiving the data.

I usually use Wireshark on the host connected to the destination port to capture the data.

Cisco: Reset CUE on UC520 to Factory Default

  • Log in the device via console, telnet or SSH
  • Go to enable mode
  • Use the service-module Integrated-Service-Engine 0/0 session to session into the CUE. (Press ENTER twice to get back the prompt)
  • Go to offline mode by typing offline
  • Type “y” when prompted with “Are you sure you want to go offline[n]?”
  • Type restore factory default
  • It will ask you for confirmation. Type in “y” when prompted with “Do you wish to continue[n]?”
  • Press ENTER when prompted to “Press any key to reload”
  • Wait until the “SYSTEM ONLINE” message is displayed
  • Type exit to exit
  • Cisco: Upgrade Cisco CSS Load Balancer

    Cisco: Upgrade Cisco CSS Load Balancer

    Pre-requisites

    • Download the latest packages for CSS: Operating System Image and CiscoView Device Manager from the Cisco website
    • FTP server to transfer the downloaded packages to the load balancers. I personally use Quick ‘n Easy FTP Server Lite which is a portable FTP server application on my laptop.

    Procedure

  • Log on to the load balancer via console or telnet
  • Check the current version installed on the device
  • sclb1-lj# version
    Version:               sg0820001 (08.20.0.01)
    Flash (Locked):        08.20.0.01
    Flash (Operational):   08.20.0.01
    Type:                  PRIMARY
    Licensed Cmd Set(s):   Standard Feature Set
    CVDM Version:          cvdm-css-1.0
    
    sclb1-lj#
    
  • Archive the running-config
  • sclb1-lj# archive running-config startup-config
    Working..(\) 100%
    sclb1-lj#
    
  • Create and ftp-record pointing to an FTP server
  • sclb1-lj# conf t
    sclb1-lj(config)# ftp-record DEFAULT_FTP 192.168.1.10 test "test"
    sclb1-lj(config)# exit
    
  • Copy the downloaded files from ftp server and uncompress the software to install
  • sclb1-lj# copy ftp DEFAULT_FTP sg0820601.adi boot image
    
    Copying (/) 70,634,456
    Completed successfully.
    
    sclb1-lj# conf t
    sclb1-lj(config)# boot
    sclb1-lj(config-boot)# unpack sg0820601.adi
    Unpacking(\) Installed successfully in c:/sg0820601
    sclb1-lj(config-boot)#
    
  • Verify installation of new OS
  • sclb1-lj(config-boot)# show install
    sg0820001
    sg0820601
    
    sclb1-lj(config-boot)#
    
  • Configure boot sequences
  • sclb1-lj(config-boot)# secondary boot-file sg0820001
    sclb1-lj(config-boot)# secondary boot-file boot-via-disk
    sclb1-lj(config-boot)# primary boot-file sg0820601
    
  • Restore running-config
  • sclb1-lj# restore startup-config startup-config
    
  • Install CiscoView Device Manager
  • sclb1-lj# install-gui "cvdm-css-1.0.zip"
    
  • Verify versions installed
  • sclb1-lj# version
    Version:               sg0820601 (08.20.6.01)
    Flash (Locked):        08.20.0.01
    Flash (Operational):   08.20.6.01
    Type:                  PRIMARY
    Licensed Cmd Set(s):   Standard Feature Set
    CVDM Version:          cvdm-css-1.0
    
    sclb1-lj#
    

    Cisco: Upgrade Cisco CSS Load Balancer

    Pre-requisites

    • Download the latest packages for CSS: Operating System Image and CiscoView Device Manager from the Cisco website
    • FTP server to transfer the downloaded packages to the load balancers. I personally use Quick ‘n Easy FTP Server Lite which is a portable FTP server application on my laptop.

    Procedure

  • Log on to the load balancer via console or telnet
  • Check the current version installed on the device
  • sclb1-lj# version
    Version:               sg0820001 (08.20.0.01)
    Flash (Locked):        08.20.0.01
    Flash (Operational):   08.20.0.01
    Type:                  PRIMARY
    Licensed Cmd Set(s):   Standard Feature Set
    CVDM Version:          cvdm-css-1.0
    
    sclb1-lj#
    
  • Archive the running-config
  • sclb1-lj# archive running-config startup-config
    Working..(\) 100%
    sclb1-lj#
    
  • Create and ftp-record pointing to an FTP server
  • sclb1-lj# conf t
    sclb1-lj(config)# ftp-record DEFAULT_FTP 192.168.1.10 test "test"
    sclb1-lj(config)# exit
    
  • Copy the downloaded files from ftp server and uncompress the software to install
  • sclb1-lj# copy ftp DEFAULT_FTP sg0820601.adi boot image
    
    Copying (/) 70,634,456
    Completed successfully.
    
    sclb1-lj# conf t
    sclb1-lj(config)# boot
    sclb1-lj(config-boot)# unpack sg0820601.adi
    Unpacking(\) Installed successfully in c:/sg0820601
    sclb1-lj(config-boot)#
    
  • Verify installation of new OS
  • sclb1-lj(config-boot)# show install
    sg0820001
    sg0820601
    
    sclb1-lj(config-boot)#
    
  • Configure boot sequences
  • sclb1-lj(config-boot)# secondary boot-file sg0820001
    sclb1-lj(config-boot)# secondary boot-file boot-via-disk
    sclb1-lj(config-boot)# primary boot-file sg0820601
    
  • Restore running-config
  • sclb1-lj# restore startup-config startup-config
    
  • Install CiscoView Device Manager
  • sclb1-lj# install-gui "cvdm-css-1.0.zip"
    
  • Verify versions installed
  • sclb1-lj# version
    Version:               sg0820601 (08.20.6.01)
    Flash (Locked):        08.20.0.01
    Flash (Operational):   08.20.6.01
    Type:                  PRIMARY
    Licensed Cmd Set(s):   Standard Feature Set
    CVDM Version:          cvdm-css-1.0
    
    sclb1-lj#