- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to get information from many HP UX boxes
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
тАО04-13-2009 01:26 PM
тАО04-13-2009 01:26 PM
How to get information from many HP UX boxes
I need to obtain free disk space information from other HPUX machines and report to the boss. I was hoping to write a script to do this but I was hoping I did not need to use rexec among other type of unsecure commands.
Is there a way, a script, can login into another system, do a bdf command then transfer that information back to my linux box where I can write out the rest of the script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2009 01:32 PM
тАО04-13-2009 01:32 PM
Re: How to get information from many HP UX boxes
Use the secure shell with public keys.
# ssh -n somehostname "bdf" > /var/tmp/somehostname.bdf
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2009 01:35 PM
тАО04-13-2009 01:35 PM
Re: How to get information from many HP UX boxes
Use an NFS mount as a repository and have each server run something via cron and send output to NFS mount.
I run a script via cron on every server and have them email the results to my admin server. The admin server is in charge of gathering the emails and creating a report. This report I then import into an Oracle express app which displays a variety of info via html.
many many other possibilities.
HP has some tools as well, like insight manager and such but I typically find that they do not deliver what I need.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2009 02:26 PM
тАО04-13-2009 02:26 PM
Re: How to get information from many HP UX boxes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2009 08:33 PM
тАО04-13-2009 08:33 PM
Re: How to get information from many HP UX boxes
1st you need to set a nopasswd from 1 server into all hp box
then take all server's name or ip into a file say srvname then at command prompt
for i in `cat srvname`
do
echo "Server : "$i >>bdf.out
ssh $i bdf >>bdf.out
done
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2009 12:26 AM
тАО04-14-2009 12:26 AM
Re: How to get information from many HP UX boxes
Check this link
http://www.cyberciti.biz/tips/execute-commands-on-multiple-linux-or-unix-servers.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2009 05:16 AM
тАО04-14-2009 05:16 AM
Re: How to get information from many HP UX boxes
Thank you all