Cisco



How to capture extended Protocol Logging for TPSIntroductionThis document describes how to capture extended Protocol Logging for TPS using GNU Wget for Windows.Contributed by Matt Limbrick, Cisco TAC EngineerRequirementsCisco recommends that you have knowledge of these topics:Windows Command LineBasic Windows navigationComponents UsedThe information in this document is based on these software and hardware versions:Windows 7 UltimateGNU Wget version 1.11.4The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, make sure that you understand the potential impact of any command.How to capture extended Protocol Logging for TPSAs of TPS 4.1(1.79) release notes pg. 8 below, you know have the ability to run extended Protocol Logging on TPS having them stream to an HTTP(S) client. following is a tutorial on how to achieve this with Wget for Windows. GNU Wget is a free network utility to retrieve files from the World Wide Web using HTTP and FTP, the two most widely used Internet protocols. It works non-interactively, thus enabling work in the background, after having logged off.- 1st, download the “??Complete package, except sources” Setup file from the link below. The file should be about 3Mb large - 2 Run the “wget-1.11.4-1-setup.exe” setup installer. Select all default settings. This will install “wget.exe” at the following path:C:\Program Files\GnuWin32\bin- 3 Run the application from Windows command line (CLI). Go to Start > Run or Start and type cmd and press enter to open cmd.exe. This should open a Windows Command Prompt as shown below:Navigate to the C: drive with the following command and press enter c:\Open a new folder and navigate to “C:\Program Files\GnuWin32\bin” to see the “wget.exe” fileNow drag and drop the “wget.exe” file into the Windows command window to have it automatically add the path. You can also manually type the path:"C:\Program Files\GnuWin32\bin\wget.exe"Now append the following command removing the < > symbols and replacing with the correct values. An example is below it of TPS>/protocols_log_stream --post-data="authenticationUser=<admin>&authenticationPassword=<password>"ExampleC:\>"C:\Program Files\GnuWin32\bin\wget.exe" --post-data="authenticationUser=admin&authenticationPassword=C1sc0C1sc0"SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrcsyswgetrc = C:\Program Files\GnuWin32/etc/wgetrc--2015-08-03 16:53:01-- to 14.80.76.39:80... connected.HTTP request sent, awaiting response... 200 OKLength: unspecified [text/plain]Saving to: `protocols_log_stream' [ <=> ] 927,033 --.-K/s ^When ready to stop logging, press Ctrl+C. You should now have a file titled “protocols_log_stream”. You can append “.txt” to the end of the file to view if needed. Please provide the raw file to Cisco for further review.Note: Do not run this command from any directory under Program Files as these directories are usually Read-Only and will not store the desired output files ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download