05-31-2006
How to filter out the FPT login in the log file.
Dear All,
Based on the below information . how to filter out the information like ftp connection . Only list out the Telnet connection information.
Details of Last Succesfull Logins are Below:
localcm ftp tpe5 Mon May 29 16:56 - 16:56 (00:00)
localcm ftp tpe5 Mon May 29 16:53 - 16:53 (00:00)
localcm ftp tpe5 Mon May 29 16:47 - 16:47 (00:00)
localcm ftp tpe5 Mon May 29 16:41 - 16:41 (00:00)
localcm ftp tpe5 Mon May 29 16:35 - 16:35 (00:00)
localcm ftp ialtpe5.wanhai.c Mon May 29 16:35 - 16:35 (00:00)
localcm ftp tpe5 Mon May 29 16:29 - 16:29 (00:00)
localcm ftp ialtpe5cifs.wanh Mon May 29 16:29 - 16:29 (00:00)
localcm ftp tpe5 Mon May 29 16:26 - 16:26 (00:00)
localcm ftp tpe5 Mon May 29 16:20 - 16:20 (00:00)
localcm ftp ialtpe5.wanhai.c Mon May 29 16:17 - 16:17 (00:00)
localcm ftp tpe5 Mon May 29 16:14 - 16:14 (00:00)
localcm ftp tpe5 Mon May 29 16:11 - 16:11 (00:00)
localcm ftp tpe5 Mon May 29 16:05 - 16:05 (00:00)
localcm ftp ialtpe5.wanhai.c Mon May 29 16:05 - 16:05 (00:00)
localcm ftp tpe5 Mon May 29 15:59 - 15:59 (00:00)
localcm ftp ialtpe5cifs.wanh Mon May 29 15:59 - 15:59 (00:00)
localcm ftp tpe5 Mon May 29 15:53 - 15:53 (00:00)
localcm ftp ialtpe5.wanhai.c Mon May 29 15:53 - 15:53 (00:00)
localcm ftp tpe5 Mon May 29 15:50 - 15:50 (00:00)
user01 console Mon May 29 15:47 - 16:11 (00:23)
localcm ftp tpe5 Mon May 29 15:44 - 15:44 (00:00)
localcm ftp tpe5 Mon May 29 15:38 - 15:38 (00:00)
localcm ftp tpe5 Mon May 29 15:32 - 15:32 (00:00)
any idea??
pls kindly let me know how to do in the script?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
could probably help me with a unix problem.
Basicallyu, when the users try to connect to the server they get this messge:
No UTMP entry. you must exec "LOGIN" from the lowest level "sh"
They are connecting using a windows emulator called TINYTERM.
We cannot connect from the console either... (3 Replies)
Discussion started by: jernesto_diaz
3 Replies
2. SCO
We have made numerous requests to our system administrator to add new employees at login screen ( passwords not required ) to no avail.
I can login into root but not sure how to proceed from there.
We have a 10 yr. old version of SCO
Can anyone help?
I know very few unix commands okay... (1 Reply)
Discussion started by: houseostyle
1 Replies
3. UNIX for Dummies Questions & Answers
Hi,
Is there is a good collection of Links to Unix Related stuff?
Regards,
Kriss (1 Reply)
Discussion started by: Kriss
1 Replies
4. Solaris
Hello World ~
HW : SUN Fire V240
OS : Solaris 8
Error message prompts 'rmclomv ... SC login failure ...' on terminal.
and
Error Message prompts continually 'SC Login Failure for user Please login:' on Single Mode(init S)
The System is in normal operation, though
In case of rain, Can... (1 Reply)
Discussion started by: lifegeek
1 Replies
5. UNIX for Advanced & Expert Users
Hello,
I created a user in my AIX 5.3 system and i modified /etc/passwd file in and assigned this user the uid=0 like root user.
The problem is that when this user log into the system through putty it asks for root password instead of the user password.
As a result of this, if i reset the... (4 Replies)
Discussion started by: omonoiatis9
4 Replies
6. UNIX for Dummies Questions & Answers
Hello - Could anyone please explain what is login class in unix..? is it supported by Linux, AIX, HP-UX, Solaris?
Also how do we update this when a user is created? I looked into man pages for useradd/usermod and mkuser, but could not find any option to add/update login class for a user.
... (5 Replies)
Discussion started by: manju--
5 Replies
7. Shell Programming and Scripting
Hi Every body,
I would need a shell script program to login as different user and perform some copy commands in the script.
example: Supppose ora_toms is the active user
ora_toms should be able to run a script where user: ftptomsp pass: XXX should login through and run the commands
... (9 Replies)
Discussion started by: ujjwal27
9 Replies
8. AIX
I want to learn AIX. I would like to find someone who would be willing to give me a login to their AIX home lab server. My intent is to poke around and discover the similarities and differences of AIX compared to other *NIXs.
I am a UNIX admin so I can think of what some immediate concerns may... (1 Reply)
Discussion started by: perl_in_my_shel
1 Replies
9. Shell Programming and Scripting
now i have logged in username : ramesh in unix
Now i have to created script file to login into another user and have run a command inside that user and after executing the command i have to exit from that user.
Inside script, i have to login into su - ram along with password : haihow and have to... (4 Replies)
Discussion started by: rammm
4 Replies
10. Shell Programming and Scripting
Hi.
I inject my tracklogin.sh script in the profile of each user.
$ more .profile
./tracklogin.sh
# This is the default standard profile provided to a user.
MAIL=/usr/mail/${LOGNAME:?}
bash-3.2$ more tracklogin.sh
#!/bin/bash
tdate=$(date +"%d%m%y")
mkdir -p /tmp/root_log... (20 Replies)
Discussion started by: mohtashims
20 Replies
LEARN ABOUT CENTOS
nislog
nislog(1M) System Administration Commands nislog(1M)
NAME
nislog - display the contents of the NIS+ transaction log
SYNOPSIS
/usr/sbin/nislog [-h num | -t num] [-v] [directory...]
DESCRIPTION
nislog displays the contents of the NIS+ server transaction log on the standard output. This command can be used to track changes in the
namespace. The /var/nis/trans.log file contains the transaction log maintained by the NIS+ server. When updates occur, they are logged to
this file and then propagated to replicas as log transactions. When the log is checkpointed, updates that have been propagated to the
replicas are removed.
The nislog command can only be run on an NIS+ server by superuser. It displays the log entries for that server only.
If directory is not specified, the entire log is searched. Otherwise, only those logs entries that correspond to the specified directories
are displayed.
OPTIONS
-h num Display num transactions from the ``head'' of the log. If the numeric parameter is 0, only the log header is displayed.
-t num Display num transactions from the ``tail'' of the log. If the numeric parameter is 0, only the log header is displayed.
-v Verbose mode.
FILES
/var/nis/trans.log transaction log
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWnisu |
+-----------------------------+-----------------------------+
SEE ALSO
nis+(1), rpc.nisd(1M), nisfiles(4), attributes(5)
NOTES
NIS+ might not be supported in future releases of the SolarisTM Operating Environment. Tools to aid the migration from NIS+ to LDAP are
available in the Solaris 9 operating environment. For more information, visit http://www.sun.com/directory/nisplus/transition.html.
SunOS 5.10 12 Dec 2001 nislog(1M)