I haven't managed SuSE systems in centuries, but have you tried the 'lastlog' command? It may display all the information (including IP Address) that you're looking for.
Hi everyone, nice forum!
I need to know if there's a command that will show the IP Address of the machine you are logged into. Eg when you type hostname it returns the name of the machine, I need one that returns the IP address only. Can anyone help or suggest commands that are almost what I... (7 Replies)
Hi,
I am trying to write a script which would figure out who has run which command and their IP. As i dont have any clue as to which commands would do this job, i request some gurus to help me on this.
Thanks
Vishwas (2 Replies)
hi,
i want to know how to grep inet address for below
below is the output of ifconfig command
/home/JA> ifconfig
eth0 Link encap:Ethernet HWaddr 00:11:0A:5B:2E:E9
inet addr:161.239.203.18 Bcast:161.239.203.127 Mask:255.255.255.128
UP BROADCAST RUNNING... (3 Replies)
AIX:Command to get netaddress/subnet address command in IPv4/IP6
Can anybody help us with a command to retrieve netaddress/subnet address command in IPv4/IP6 on aix machine.
net/subnet address is in the format 172.16.212.0(signifies all 255 machines in an IPv4 network) (2 Replies)
Dear All,
I hope you can help me.
I have a pair of E2900's I've inherited. Both running Solaris 9. Both have LOM> consoles. The problem I'm experiencing only occurs when connected to the /dev/console tty. Whenever I hit 'Enter' for a new line, I receive two new lines: -
myhost# ... (11 Replies)
Hi,
I need to configure customized from address in mailx command.
Can you pls tell me the option for configuring from address.
Thanks
Latika (9 Replies)
Currently I am using mailx command for sending mails.
But the mail is sent as from userid@servername by default.
Is it possible to customise the from mail address in mailx command?
Thanks (2 Replies)
i need to pull ip address out after this command
ifconfig | grep jnc0 -1
output:
BOBVILLAMAC:~ bvilla$ ifconfig | grep jnc0 -1 inet 10.16.91.1 netmask 0xffffff00 broadcast 10.16.91.255
does anyone know how to do that (1 Reply)
hi~~
my Os is 6.1
i want to find heartbeat ip address from below result.
i think, is it en7 onto both nodes?
/usr/es/sbin/cluster/utilities/cllsif
Adapter Type Network Net Type Attribute Node IP Address Hardware Address Interface Name Global Name ... (2 Replies)
Discussion started by: tomato00
2 Replies
LEARN ABOUT SUSE
lastlog
LASTLOG(8)LASTLOG(8)NAME
lastlog - examine lastlog file
SYNOPSIS
lastlog [options]
DESCRIPTION
lastlog formats and prints the contents of the last login log /var/log/lastlog file. The
login-name, port, and last login time will be printed. The default (no flags) causes lastlog entries to be printed, sorted by their order
in /etc/passwd.
OPTIONS
The options which apply to the lastlog command are:
-h, --help
Print help message and exit.
-t, --time DAYS
Print the lastlog records more recent than DAYS.
-u, --user LOGIN
Print the lastlog record for user with specified LOGIN only.
The -t flag overrides the use of -u.
If the user has never logged in the message
**Never logged in** will be displayed instead of the port and time.
NOTE
The lastlog file is a database which contains info on the last login of each user. You should not rotate it. It is a sparse file, so its
size on the disk is much smaller than the one shown by ls -l (which can indicate a really big file if you have a high UID). You can display
its real size with ls -s.
FILES
/var/log/lastlog
lastlog logging file
CAVEATS
Large gaps in uid numbers will cause the lastlog program to run longer with no output to the screen (i.e. if mmdf=800 and last uid=170,
program will appear to hang as it processes uid 171-799).
AUTHORS
Julianne Frances Haugh (jockgrrl@ix.netcom.com)
Phillip Street
08/10/2005 LASTLOG(8)