- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- script help
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
Forums
Discussions
Discussions
Discussions
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
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
09-08-2003 10:17 AM
09-08-2003 10:17 AM
script help
I was looking to create a script that would check for idle users for one of our sites, which I have: who -u|grep 10.2|sort -k6 .
However I wanted to use the output from the above command/script to query our db logs to see if they are indeed still logged into the database or not. There are too many users that do not logoff of the application and leave their sessions idle for hours, thus consuming a db licence.
There is no safe way to bump them off within the O/S, so I wanted to setup a script, that would look for idle users > 1 hour, then look in our /db1/data1.lg or /db1/data2.lg and then send them an email suggesting they log off.
The real masterpiece would be to write the offending user in a offender.log file in a directory somewhere.
Your help/ideas are appreicated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2003 10:30 AM
09-08-2003 10:30 AM
Re: script help
12:19:30 Usr 5: Login by root on /dev/pts/tb. (452)
Then, we want to send them an email and write their userid with date/time in a log file.
Nickd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2003 04:35 AM
09-09-2003 04:35 AM
Re: script help
If so, this command will tell you if a user is currently connected to the database:
$DLC/bin/proshut ${DBNAME} -C list
You'll need to grep for the specific user.
Again assuming Progress, you could get a list of Progress processes:
ps -ef | grep _progres
Cull from that the ones that have an idle time greater than your limit.
Then, using the Progress command above, find out if they are really connected to the DB.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2003 04:41 AM
09-09-2003 04:41 AM
Re: script help
Indeed a progress environment.
I will try it and let you know.
Do you have any other Progress scripts that you might be willing to share?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2003 06:13 AM
09-09-2003 06:13 AM