02-21-2011
history timestamp in Solaris
Anyone knows how to display timestamp in Solaris since "HISTIMEFORMAT" variable is not supported in ksh ?
Last edited by linuxgeek; 02-21-2011 at 11:04 PM..
10 More Discussions You Might Find Interesting
1. Solaris
How to set passwd history feature in Solaris 8 to stop users from using their old passwords? (4 Replies)
Discussion started by: amoorti
4 Replies
2. Solaris
Can someone tell me what I can do to maintain a single history file ?
As it is it creates a new file for each session.
>ls -a .sh_*
.sh_history.10106 .sh_history.15240 .sh_history.21635 .sh_history.4291
.sh_history.11311 .sh_history.16593 .sh_history.23709 .sh_history.4661... (3 Replies)
Discussion started by: jxh461
3 Replies
3. Solaris
i got solaris 10 DVD and i install it on intel 64.
how do i set history to vi for command line? i can use backup space as well, it goes with "^H".
this won't work, export EDITOR=vi, it response with not an identifier.
thanks
itik (4 Replies)
Discussion started by: itik
4 Replies
4. Solaris
Hi Solaris guys,
I just have my solaris 10 setup on x86 old box...
How can i get history key?
eg.
Linux using up/down arrow key to call history command...
HPUX using Esc-k
How can i do the samething in Solaris?
Thanks in advanced!
Regards,
gary (3 Replies)
Discussion started by: timontt
3 Replies
5. Linux
Hi,
Just wanted to know if anyone else has noted that the time-stamp in the history is all out of whack.:eek:
I've Ubuntu, all patched, and when I ran history, it showed me commands that I ran few weeks ago with today's date. Is this normal?
Here is a snippet:
....
85 2010-06-09 09:03:31... (6 Replies)
Discussion started by: nitin
6 Replies
6. UNIX for Advanced & Expert Users
Hello.
I'm trying to get a Solaris (SunOS 5.10) shutdown and boot history. Unfortunately the /var/adm/wtmpx file does not cover the period I want to trace. It's been reset. Therefore the command, "last" (or "last reboot") does not reach back far enough.
Additionally the /var/adm/messages*... (4 Replies)
Discussion started by: etlpkby
4 Replies
7. Solaris
Dears
Kindly am requested to collect the date histroy that the system was rebooted, so is there any log file or command that i can find the time that the system was rebooted?
thanks a lot for you kind support. (2 Replies)
Discussion started by: thehero
2 Replies
8. HP-UX
Hi, i want to print timestamp of the command along with output of 'history' command.
Tried this export HISTTIMEFORMAT='%F %T'. But it did not work still getting history output in general way (line number and command). I'm using HP-UX B.11.23 U ia64. Requesting help in this regard. Thanks. (2 Replies)
Discussion started by: sam_bd
2 Replies
9. Solaris
I need to bump up the memory allocated to an Oracle database running on Solaris 10. While I see there is currently plenty of free memory to spare, how do I view the history of free memory on Solaris over the last month? What is the exact command?
---------- Post updated at 02:55 PM ----------... (0 Replies)
Discussion started by: mimimiami
0 Replies
10. UNIX for Beginners Questions & Answers
why in solaris 10 I do not get history when I have the role as root?
computer.root > history
I get history:not found
I am in computer.root > echo $SHELL
/bin/sh
computer.root >
how can I see roots history in the sh shell?
but in other shells I can only see my... (6 Replies)
Discussion started by: goya
6 Replies
LEARN ABOUT OPENSOLARIS
nis_checkpoint
nis_ping(3NSL) Networking Services Library Functions nis_ping(3NSL)
NAME
nis_ping, nis_checkpoint - NIS+ log administration functions
SYNOPSIS
cc [ flag ... ] file ... -lnsl [ library ... ]
#include <rpcsvc/nis.h>
void nis_ping(nis_name dirname, uint32_t utime, nis_object *dirobj);
nis_result *nis_checkpoint(nis_name dirname);
DESCRIPTION
nis_ping() is called by the master server for a directory when a change has occurred within that directory. The parameter dirname identi-
fies the directory with the change. If the parameter dirobj is NULL, this function looks up the directory object for dirname and uses the
list of replicas it contains. The parameter utime contains the timestamp of the last change made to the directory. This timestamp is used
by the replicas when retrieving updates made to the directory.
The effect of calling nis_ping() is to schedule an update on the replica. A short time after a ping is received, typically about two min-
utes, the replica compares the last update time for its databases to the timestamp sent by the ping. If the ping timestamp is later, the
replica establishes a connection with the master server and request all changes from the log that occurred after the last update that it
had recorded in its local log.
nis_checkpoint() is used to force the service to checkpoint information that has been entered in the log but has not been checkpointed to
disk. When called, this function checkpoints the database for each table in the directory, the database containing the directory and the
transaction log. Care should be used in calling this function since directories that have seen a lot of changes may take several minutes to
checkpoint. During the checkpointing process, the service will be unavailable for updates for all directories that are served by this
machine as master.
nis_checkpoint() returns a pointer to a nis_result structure. See nis_tables(3NSL). This structure should be freed with nis_freeresult().
See nis_names(3NSL). The only items of interest in the returned result are the status value and the statistics.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
nislog(1M), nis_names(3NSL), nis_tables(3NSL), nisfiles(4), attributes(5)
NOTES
NIS+ might not be supported in future releases of the Solaris operating system. Tools to aid the migration from NIS+ to LDAP are available
in the current Solaris release. For more information, visit http://www.sun.com/directory/nisplus/transition.html.
SunOS 5.11 10 Nov 2005 nis_ping(3NSL)