05-16-2012
Don't do something then "sorry" after, don't do it.
What do you mean by 'see the logs complete'? How large are these logs? At an entry per second they could easily become too large to scroll through.
10 More Discussions You Might Find Interesting
1. News, Links, Events and Announcements
On my opinion, one of the best ssh/telnet clients for windows, putty released a new version:
Get it here, PuTTY 0.59
- PuTTY can now connect to local serial ports as well as making network connections.
- Improved speed of SSH, particularly SSH-2 key exchange and public-key authentication
-... (2 Replies)
Discussion started by: pressy
2 Replies
2. UNIX for Dummies Questions & Answers
i am connecting to a unix-application using putty (xp).
sometime, it is as if the putty is sending a form-feed char, because i am getting a blank screen, and by back scrolling i see the previous screen
with all the related data.
if i am using the xp-telnet, i get the screen/data correctly.
... (7 Replies)
Discussion started by: mifa-system
7 Replies
3. Shell Programming and Scripting
Hi,
I am trying to write a script which would go search and get the info from the logs based on yesterday timestamp and write yesterday logs in new file. The log file format is as follows:
""""""""""""""""""""""""""... (3 Replies)
Discussion started by: harish.parker
3 Replies
4. UNIX for Dummies Questions & Answers
i was having problem on unix command.here's my script
set server_exe="C:\filecopy\putty.exe"
%server_exe% sgxaspecs3@sporc01 -pw pit54321 -b c:\filecopy\file_sporc01putfiles2.txt
echo "file uploaded to SFTP Server"
pause
ok the thing is like this, i could login to putty by running this... (1 Reply)
Discussion started by: dannyd_y
1 Replies
5. Windows & DOS: Issues & Discussions
Hi all,
need info on using putty as group.
I am having huge numbers of servers. (say 100)
I am using putty to login remotely. i want to group each 25 hostnames or a set of servers into one putty instance. (see image attached.)
Currently i have to scroll down to see all the 100 servers.
... (2 Replies)
Discussion started by: karthikn7974
2 Replies
6. UNIX for Advanced & Expert Users
I'm using PuTTY to establish a SSH connection to a remote UNIX machine. I need to fetch a file from the remote system into my local Windows system.
Is it possible? If yes, how can I do that? (2 Replies)
Discussion started by: agnivaccent
2 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I want to know how we can view two or three logs which are dynamically getting updated from a single/same putty window with tail commnad.
Thanks. (7 Replies)
Discussion started by: reachsudha
7 Replies
8. UNIX for Dummies Questions & Answers
Hi Folks,
I have an application of which logs are being made on unix machine at the back end , i open putty and access that location
cd /var/log/abc.log
but those logs are getting refreshed after every minute or on every request and response Now I am opening those logs on putty but please... (5 Replies)
Discussion started by: KAREENA18
5 Replies
9. UNIX for Dummies Questions & Answers
Hello Forum members
There is no any time parameter on putty so how can I stay my putty ssh session always Alive? So please reply to my querry. I am looking forward from Forum.
Advance Thanks
Siva. (5 Replies)
Discussion started by: workforsiva
5 Replies
10. Shell Programming and Scripting
Appreciate help for the below issue.
Im using below code.....I dont want to attach the logs when I ran the perl twice...I just want to take backup with today date and generate new logs...What I need to do for the below scirpt..............
1)if logs exist it should move the logs with extention... (1 Reply)
Discussion started by: Sanjeev G
1 Replies
LEARN ABOUT OPENSOLARIS
ncab2clf
ncab2clf(1) User Commands ncab2clf(1)
NAME
ncab2clf - convert binary log file to Common Log File format
SYNOPSIS
/usr/bin/ncab2clf [-Dhv] [-i input-file] [-o output-file]
[-b size] [-n number] [-s datetime]
DESCRIPTION
The ncab2clf command is used to convert the log file generated by the Solaris Network Cache and Accelerator ("NCA") from binary format, to
Common Log File ("CLF") format. If no input-file is specified, ncab2clf uses stdin. If no output-file is specified, the output goes to std-
out.
OPTIONS
-b Specifies the binary-log-file blocking in kilobytes; the default is 64 Kbyte.
-D Specifies that direct I/O be disabled.
-h Prints usage message.
-i input-file Specifies the input file.
-n number Output number CLF records.
-o output-file Specifies the output file.
-s datetime Skip any records before the date and time specified in datetime. You can specify the date and time in CLF format or in
the format specified by the touch(1) utility. CLF format is the dominant format, so ncab2clf first analyzes datetime
assuming CLF.
-v Provides verbose output.
EXAMPLES
Example 1 Converting a Binary File to a Common Log File Format
The following example converts the binary file /var/nca/logs/nca.blf to a file /var/nca/logs/nca.clf, which is in Common Log File format.
example% ncab2clf -D -i /var/nca/logs/nca.blf -o /var/nca/logs/nca.clf
Example 2 Converting Multiple Log Files
The following script may be used to convert multiple log files. The directory designated by "*" must only contain log files.
!/bin/ksh
for filename in *
do
ncab2clf -D < $filename > $filename.clf
done
Example 3 Using -s and -n on a Raw Device
The following example shows how ncab2clf can be used on a raw device. If not using the -n option, the default is to convert all records
from the starting location to the end of the file. The date and time specified with -s, below, is in CLF format.
example% ncab2clf -s '10/Apr/2001:09:23:13' -n 100 < /dev/dsk/c2t1d0s6
EXIT STATUS
The following exit values are returned:
0 The file converted successfully
>0 An error occurred.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWncau |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO
nca(1), ncakmod(1), nca.if(4), ncakmod.conf(4), ncalogd.conf(4), attributes(5)
System Administration Guide: IP Services
NOTES
The binary log files generated by NCA can become very large. When converting these large binary files, use the -b option to the ncab2clf
command to help performance.
Direct I/O is a benefit to the user if the data being written does not come in as large chunks. However, if the user wishes to convert the
log file in large chunks using the -b option, then direct I/O should be disabled by using the -D option.
SunOS 5.11 28 Sep 2001 ncab2clf(1)