08-17-2006
Thanks for that.
It does actually give us the machine name and not IP address. The only thing is this displays all users I was only intrested in the session I am in now
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am new to unix. Currently using solaris 6.8 (i think).
I need to telnet into a remote server, and print out a report to a printer near me, that DOES NOT have a printcap set-up for the printer on the remote server. I was hoping to do this via tcp/ip since the printer does have a static ip... (1 Reply)
Discussion started by: gishfarm
1 Replies
2. UNIX for Dummies Questions & Answers
hi, we can set something such that if the user has been idle for a while, it will auto disconnect. where to do so? thanks (6 Replies)
Discussion started by: yls177
6 Replies
3. Shell Programming and Scripting
Dear friends..
Our project has a module that runs on handheld devices. Through the handheld we telnet to solaris where the application actually runs. I noticed that after starting a session through the handheld, if i go out of range or if i remove and replace the battery in the handheld, the... (1 Reply)
Discussion started by: deepsteptom
1 Replies
4. Shell Programming and Scripting
{
sleep 2
echo "$user"
sleep 2
echo "$password"
sleep 2
echo " ls"
sleep 10
echo "exit"
}| telnet $server
I have a machine x and i have executed the above script on machine 'x'.
i entered the... (6 Replies)
Discussion started by: pathanjalireddy
6 Replies
5. UNIX for Dummies Questions & Answers
In either case using ksh or tcl, how can I check that I have a successfule telnet session and am being prompted with a tacacs login prompt ?
:confused:
DOIT () {
sleep 2
echo "<tacacs name >"
sleep 1
echo "<password>"
echo "en"
sleep 1
echo "<enable password>"
echo "term length 512"... (0 Replies)
Discussion started by: sumguy
0 Replies
6. Shell Programming and Scripting
Hi there.
How do I make the DB connection see the parameter variables passed to the unix script ? The code snippet below isn't working properly.
sqlplus << EOF
user1@db1/pass1
BEGIN
PACKAGE1.perform_updates($1,$2,$3);
END;
EOF
Thanks in advance,
Abrahao. (2 Replies)
Discussion started by: 435 Gavea
2 Replies
7. UNIX for Dummies Questions & Answers
Hello,
I have AIX 5.3 at home connected to netgear router. Port Forwarding has been enabled on the router. Problem is that if I want to telnet, I have to try 2 or 3 times before I can get a logon prompt. It times out for first or second time (Connection to session <IP_Address> failed: Connection... (1 Reply)
Discussion started by: bluebee
1 Replies
8. UNIX for Dummies Questions & Answers
How can I disconnect an existing telnet session? The host is a serial port server with multiple ports. The users login using the host's name and a port, i.e. telnet host01 1235.
Thanks. (14 Replies)
Discussion started by: cooldude
14 Replies
9. HP-UX
Our network administrators implemented some sort of check to kill idle sessions and now burden is on us to run some sort of keep alive. Client based keep alive doesn't do a very good job. I have same issue with ssh. Does solution 2 provided above apply for ssh sessions also? (1 Reply)
Discussion started by: yoda9691
1 Replies
LEARN ABOUT OPENSOLARIS
last
last(1) User Commands last(1)
NAME
last - display login and logout information about users and terminals
SYNOPSIS
last [-a] [-n number | -number] [-f filename]
[name | tty]...
DESCRIPTION
The last command looks in the /var/adm/wtmpx file, which records all logins and logouts, for information about a user, a terminal, or any
group of users and terminals. Arguments specify names of users or terminals of interest. If multiple arguments are given, the information
applicable to any of the arguments is printed. For example, last root console lists all of root's sessions, as well as all sessions on the
console terminal. last displays the sessions of the specified users and terminals, most recent first, indicating the times at which the
session began, the duration of the session, and the terminal on which the session took place. last also indicates whether the session is
continuing or was cut short by a reboot.
The pseudo-user reboot logs in when the system is shutdown and when it reboots. Thus,
last reboot
gives an approximate record of when the operating system instance was shutdown and when it rebooted. This can be used to calculate the
availability of the operating system over time.
last with no arguments displays a record of all logins and logouts, in reverse order.
If last is interrupted, it indicates how far the search has progressed in /var/adm/wtmpx. If interrupted with a quit signal (generated by a
CTRL-), last indicates how far the search has progressed, and then continues the search.
OPTIONS
The following options are supported:
-a Displays the hostname in the last column.
-f filename Uses filename as the name of the accounting file instead of /var/adm/wtmpx.
-n number|-number Limits the number of entries displayed to that specified by number. These options are identical; the -number
option is provided as a transition tool only and is removed in future releases.
ENVIRONMENT VARIABLES
Date and time format is based on locale specified by the LC_ALL, LC_TIME, or LANG environments, in that order of priority.
FILES
/var/adm/wtmpx accounting file
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWesu |
+-----------------------------+-----------------------------+
SEE ALSO
utmpx(4), attributes(5)
SunOS 5.11 24 Jul 2004 last(1)