DOS batch file to capture routers log


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers DOS batch file to capture routers log
# 1  
Old 04-20-2008
DOS batch file to capture routers log

Hi,

Please help to write DOS /Perl script to capture router AAA logs to store in file.


RADIUS: id 1, priority 1, host 59.163.6.103, auth-port 1901, acct-port 1902
State: current UP, duration 1928071s, previous duration 0s
Dead: total time 2798488914s, count 0
Authen: request 24164, timeouts 13
Response: unexpected 70, server error 0, incorrect 0, time 23ms
Transaction: success 24118, failure 0
Author: request 24929, timeouts 213
Response: unexpected 0, server error 0, incorrect 0, time 69ms
Transaction: success 24655, failure 70
Account: request 94490, timeouts 35
Response: unexpected 13, server error 0, incorrect 0, time 11ms
Transaction: success 57876, failure 0
Elapsed time since counters last cleared: 8h1m

RADIUS: id 2, priority 2, host 59.163.6.108, auth-port 1901, acct-port 1902
State: current UP, duration 1928071s, previous duration 0s
Dead: total time 1195197667s, count 0
Authen: request 0, timeouts 0
Response: unexpected 0, server error 0, incorrect 0, time 0ms
Transaction: success 0, failure 0
Author: request 70, timeouts 0
Response: unexpected 0, server error 0, incorrect 0, time 94ms
Transaction: success 70, failure 0
Account: request 0, timeouts 0
Response: unexpected 0, server error 0, incorrect 0, time 0ms
Transaction: success 0, failure 0
Elapsed time since counters last cleared: 8h1m
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Converting DOS Batch file to Shell Script

Hi, This is my DOS Batch file. @echo off echo "Program Name :" %0 rem echo "Next param :" %1 echo "Next param :" "Username/Password" echo "User Id :" %2 echo "User Name :" %3 echo "Request ID ... (4 Replies)
Discussion started by: Rami Reddy
4 Replies

2. Shell Programming and Scripting

Dos batch script to execute unix shell script

Can anyone help me with a dos batch script to execute a shell script residing in an unix server. I am not able to use ssh. Thanks in advance (2 Replies)
Discussion started by: Shri123
2 Replies

3. Shell Programming and Scripting

Capture all error message in Log file and send the Log file by email

Hi I have a requirement to write a script to capture all errors in a Logfile and send the file in email. If there is any error occurred the subject of email will be ERROR , If there are no error occurred the subject of email will be SUCCESS. So I created a Log file and put the Appropriate... (2 Replies)
Discussion started by: dgmm
2 Replies

4. UNIX for Dummies Questions & Answers

Unix shell, Dos batch

Is the unix shell script equivalent to dos batch command? Thanks (2 Replies)
Discussion started by: zhshqzyc
2 Replies

5. Shell Programming and Scripting

How to capture output to log file

Hi I have a script that will run multiple unix & sql commands. I want to see the output as well as capture it to a log file for further analysis. Is there an easy way to do that instead of adding "tee -a logfile" on everyline or even on the execute line (i.e. script | tee -s logfile). Thanks (1 Reply)
Discussion started by: nimo
1 Replies

6. Shell Programming and Scripting

HowTo translate KSH Scripts to DOS Batch Files ?

Hi there, in near future I have to change my work surrounding from HP UNIX to Windows Vista (great to get rid of old hardware :), but bad to loose UNIX :( ). As I heavily use KSH scripts to do my job, I was wondering, if there is any HowTo available, supporting me in re-writing the scripts to... (4 Replies)
Discussion started by: Joe-K7
4 Replies

7. Windows & DOS: Issues & Discussions

variable in dos batch file

Sir I have a very old cobol programme (source not availble). On execution and invoking some menu commands, depending upon the "pressed menu commands" it is writing certain values into a dos batch file. At the end of cobol file, this batch file gets exeuted. On keying in the Drive from which you... (6 Replies)
Discussion started by: chssastry
6 Replies

8. Windows & DOS: Issues & Discussions

dos batch script

We need to write a dos batch script that does following in order numbered below: Connect to all UNIX boxes using IP,userid and password from a file. validate if login was successful check if there is at least 30mb disk space in the home folder of the user Check if there are any processes... (3 Replies)
Discussion started by: chandraachii
3 Replies

9. Windows & DOS: Issues & Discussions

dos batch script

Please dont post duplicate threads :confused: (0 Replies)
Discussion started by: lorcan
0 Replies

10. Shell Programming and Scripting

Converting Shell script to Dos batch files

Hi friends! I am having some simple shell script files to build postgresql database and all. Now i want to convert those scripts to dos batch scripts(to run on windows XP/2000/NT) because there is no need of unix emulation for latest release of postgresql. Please somebody help me. (1 Reply)
Discussion started by: darwinkna
1 Replies
Login or Register to Ask a Question
LONDISTE(5)															       LONDISTE(5)

NAME
londiste - PostgreSQL replication engine written in python SYNOPSIS
[londiste] job_name = asd DESCRIPTION
The londiste configuration file follow the famous .INI syntax. It contains only one section named londiste. Most defaults values are reasonable ones. That means you can only edit provider_db, subscriber_db and pgq_queue_name and be done with londiste configuration. OPTIONS
You can configure the following options into the londiste section. job_name Each Skytools daemon process must have a unique job_name. Londiste uses it also as consumer name when subscribing to queue. provider_db Provider database connection string (DSN). subscriber_db Subscriber database connection string (DSN). pgq_queue_name Name of the queue to read from. Several subscribers can read from same queue. logfile Where to log londiste activity. pidfile Where to store the pid of the main londiste process, the replay one. lock_timeout Few operations take lock on provider (provider add/remove, compare, repair). This parameter specifies timeout in seconds (float) how long a lock can be held. New in version 2.1.8. Default: 10 loop_delay How often to poll events from provider. In seconds (float). Default: 1. pgq_lazy_fetch How many events to fetch at a time when processing a batch. Useful when you know a single transaction (maintenance UPDATE command, e.g.) will produce a lot of events in a single batch. When lazily fetching, a cursor is used so as to still process a single batch in a single transaction. Default: 0, always fetch all events of the batch, not using a cursor. log_count Number of log files to keep. Default: 3 log_size Max size for one log file. File is rotated if max size is reached. Default: 10485760 (10M) use_skylog If set, search for [./skylog.ini, ~/.skylog.ini, /etc/skylog.ini]. If found then the file is used as config file for Pythons logging module. It allows setting up fully customizable logging setup. Default: 0 EXAMPLE
[londiste] job_name = test_to_subcriber provider_db = dbname=provider port=6000 host=127.0.0.1 subscriber_db = dbname=subscriber port=6000 host=127.0.0.1 # it will be used as sql ident so no dots/spaces pgq_queue_name = londiste.replika logfile = /tmp/%(job_name)s.log pidfile = /tmp/%(job_name)s.pid SEE ALSO
londiste(1) 03/13/2012 LONDISTE(5)