- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to check which commands run in the system ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2011 08:58 PM
тАО01-24-2011 08:58 PM
How to check which commands run in the system except history...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2011 09:27 PM
тАО01-24-2011 09:27 PM
Re: How to check which commands run in the system except history...
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2011 10:21 PM
тАО01-24-2011 10:21 PM
Re: How to check which commands run in the system except history...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2011 01:48 AM - last edited on тАО11-10-2011 07:49 AM by Kevin_Paul
тАО01-25-2011 01:48 AM - last edited on тАО11-10-2011 07:49 AM by Kevin_Paul
Re: How to check which commands run in the system except history...
Hi Syed,
please check .sh_history in the home directory.
you can do this through your profile setting.
you can set HISTSIZE and HISTFILE parameter in .profile file to record the command history.
please go through the below thread which may help you.
http://h30499.www3.hp.com/t5/System-Administration/setting-sh-history/m-p/4021711#M300068
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2011 02:21 AM
тАО01-25-2011 02:21 AM
Re: How to check which commands run in the system except history...
Regards,
Ali.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2011 02:38 AM
тАО01-25-2011 02:38 AM
Re: How to check which commands run in the system except history...
Seems like you don't like the POSIX shell . Change your shell to K. History is there by default in the shell without addition of any lines in /etc/profile or .profile. It's not a smart thing but is definitely a "way". :)
Regards
Ismail Azad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2011 03:03 AM
тАО01-25-2011 03:03 AM
Re: How to check which commands run in the system except history...
no its not like that. Actually i want to know the exact location file from where i can grep all previous commands. As far as i know there are commands on shell but not any file.
Regards,
Ali.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2011 03:04 AM
тАО01-25-2011 03:04 AM
Re: How to check which commands run in the system except history...
So it means i need to through the output of history commands to some file at some location to maintain the record without implementing auditing.
Regards,
Ali.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2011 03:10 AM
тАО01-25-2011 03:10 AM
Re: How to check which commands run in the system except history...
The .sh_history file is a elementary way to audit command execution at the shell. In the case of any advanced user executes commands from an intermediate shell environment (i.e: main scripts, vi editor, etc) you lose the trace capability from .sh_history file.
By audit activating on Trusted systems may be a strongest way to keep a reliable trace of commands executions by users. Of course, this activation will needs management and maintenance to keep your system in sanity levels. Is *critical* that you review the Trusted mode activation considerations. Also keep on mind that trusted systems have been deprecated in HP-UX 11i v3 (11.31).
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2011 06:41 AM
тАО01-25-2011 06:41 AM
Re: How to check which commands run in the system except history...
Thanks for good info. I have already clear that i want to make it without system auditing. Any way.Thanks All.
Regards,
Ali.