HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Common Function Scripts
Operating System - HP-UX
1834178
Members
2347
Online
110064
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
05-15-2001 07:37 AM
05-15-2001 07:37 AM
Common Function Scripts
Does anyone have "standard" scripts for common functions like changing root password and modifying cron (for reboots) over multiple systems?
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2001 07:47 AM
05-15-2001 07:47 AM
Re: Common Function Scripts
See man modprpw(1).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2001 09:29 AM
05-15-2001 09:29 AM
Re: Common Function Scripts
Hi,
I use a script which I call dsh (distributed sh). It requires .netrc to be set up correctly for all hosts and rexecd permitted on inetd.conf for all targets.
In addition it requires some testing if you like to play around with "< > | \" and so on.
But for simple jobs, this works ok.
HOSTS="host01 host02 host03 host04"
for name in $HOSTS
do
echo '================================='
rexec $name $* | awk -v HOSTID=$name '{ print HOSTID " : " $0 }'
done
echo '================================='
Sample:
# dsh date
===============================================
host01 : Tue May 15 19:31:31 CEST 2001
===============================================
host02 : Tue May 15 19:32:08 CEST 2001
===============================================
host03 : Tue May 15 19:23:18 CEST 2001
===============================================
host04 : Tue May 15 19:23:26 CEST 2001
===============================================
#
hoops, I think I need to adjust the clocks...
Volker
I use a script which I call dsh (distributed sh). It requires .netrc to be set up correctly for all hosts and rexecd permitted on inetd.conf for all targets.
In addition it requires some testing if you like to play around with "< > | \" and so on.
But for simple jobs, this works ok.
HOSTS="host01 host02 host03 host04"
for name in $HOSTS
do
echo '================================='
rexec $name $* | awk -v HOSTID=$name '{ print HOSTID " : " $0 }'
done
echo '================================='
Sample:
# dsh date
===============================================
host01 : Tue May 15 19:31:31 CEST 2001
===============================================
host02 : Tue May 15 19:32:08 CEST 2001
===============================================
host03 : Tue May 15 19:23:18 CEST 2001
===============================================
host04 : Tue May 15 19:23:26 CEST 2001
===============================================
#
hoops, I think I need to adjust the clocks...
Volker
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