Cisco Prime Infrastructure – Access Shell and Copy Syslog data via FTP or SCP

enable the shell/root account and extract syslog data.

  1. Log into your PI server via SSH.
  2. Enable root:
    root_enable
    <enter password>
    <enter password again>
    root
  3. Create ZIP then copy via FTP/SCP:
    !--- Create the ZIP
    root (or shell)
    cd /opt/CSCOlumos/decap/data
    strings /opt/CSCOlumos/decap/data/SyslogRcv_Main_514 > Syslog.txt
    zip -e Syslog.zip Syslog.txt
    
    !--- COPY WITH FTP
    ftp -i -n <FTP_SERVER_IP>
    user <USERNAME> <PASSWORD>
    binary
    put Syslog.zip
    
    !--- OR COPY WITH SCP
    scp /opt/CSCOlumos/decap/data/Syslog.zip admin@172.30.107.100:/Syslog.zip
    
    !--- REMOVE HOST KEY IF NECESSARY
    rm /home/mathew/.ssh/known_hosts

Leave a Reply

Your email address will not be published. Required fields are marked *