HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Need help in scripting.
Operating System - HP-UX
1834391
Members
1572
Online
110066
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
12-22-2004 05:12 AM
12-22-2004 05:12 AM
Need help in scripting.
Hello all,
I have been assigned a job to send a report to every users "When their password will expire".
We only have trusted systems and i have created a list of server in a file called hpserverlist.
I am not good at scripting but knows little bit.
My intention is to create an output in a file with the following:
SERVER NAME : USER NAME : DATE of Expiration.
i am also on the job, but if anybody is quicker than me ...i will really appreciate it.
THanks,
am
I have been assigned a job to send a report to every users "When their password will expire".
We only have trusted systems and i have created a list of server in a file called hpserverlist.
I am not good at scripting but knows little bit.
My intention is to create an output in a file with the following:
SERVER NAME : USER NAME : DATE of Expiration.
i am also on the job, but if anybody is quicker than me ...i will really appreciate it.
THanks,
am
If i am doing the same way you are doing to me then what is the difference between us.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2004 05:42 AM
12-22-2004 05:42 AM
Re: Need help in scripting.
doing a seach on password trusted expire will give you lots of information.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=695870
and
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&admit=-1335382922+1103740686914+28353475&docId=200000074740865
lots of good information about scripting at this site also
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=695870
and
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&admit=-1335382922+1103740686914+28353475&docId=200000074740865
lots of good information about scripting at this site also
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2004 07:17 AM
12-22-2004 07:17 AM
Re: Need help in scripting.
See the man page for getprpw. The combination of options you'll want is probably going to be these:
/usr/lbin/getprpw -m exptm,lftm,expwarn,mintm,acctexp
the second value, lftm, is the password lifetime in number of days since last change. If you get the date from the ls -l listing for /tcb/files/auth/[letter]/[loginID]
where [letter] is the first letter of the LoginID and [LoginID] is the ID you want to query, that will get you where you want to go. The actually expiration date and time are stored in that file (the number after "u_suclog#"), but it's in internal format and you'd have to resort to a C library call to get it converted, I think.
mark
/usr/lbin/getprpw -m exptm,lftm,expwarn,mintm,acctexp
the second value, lftm, is the password lifetime in number of days since last change. If you get the date from the ls -l listing for /tcb/files/auth/[letter]/[loginID]
where [letter] is the first letter of the LoginID and [LoginID] is the ID you want to query, that will get you where you want to go. The actually expiration date and time are stored in that file (the number after "u_suclog#"), but it's in internal format and you'd have to resort to a C library call to get it converted, I think.
mark
the future will be a lot like now, only later
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP