- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- run collect sysinfo file in each server.
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-05-2003 12:04 PM
09-05-2003 12:04 PM
run collect sysinfo file in each server.
Can someone help me to do that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2003 12:08 PM
09-05-2003 12:08 PM
Re: run collect sysinfo file in each server.
Attaching docsys.sh
You could run it like this:
docsys.sh | mailx -s youraddress@yourdomain.com
Then all the data is in your mailbox.
You will have to use ftp to get the script out or:
export the filesystem in nfs that the script is on.
lets say its on /doc
vi /etc/exports/
/doc
save the file
exportfs -a
Now the systems can execute this script without having a real copy. If this is going to be run on a regular basis, I recommend using ftp or scp or sftp to have a copy in /usr/contrib/bin
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2003 12:15 PM
09-05-2003 12:15 PM
Re: run collect sysinfo file in each server.
I have a directory under each of my servers called something like hostname_config. I use the cfg2html script, which can be downloaded from the following web site:
http://groups.yahoo.com/group/cfg2html/
Note I beleive you have to join the group to be able to download it. I placed the job in cron and it runs at a "quiet" time on each server. I modified the script to place the output files in my hostname_config directory. I download the html file to my PC and I can navigate the information in my web browser, with hotlinks etc.. It also creates a text file which can be viewed from the server.
I have never had any problems with this script and it dumps a great deal of information into the output files it creates.
-Bryan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2003 12:20 PM
09-05-2003 12:20 PM
Re: run collect sysinfo file in each server.
NO POINTS here, just an add on to my previous post.
We keep copies of these html files for all of our boxes (16 total) on the network. We burn this information onto a CD and keep an updated copy of the CD in each of our Disaster Recovery boxes. They go right along with our weekly, nightly and Ignite backups. That way if I have to recover, everything is right there.
Just a little more info, hope it helps!
-Bryan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2003 12:56 PM
09-05-2003 12:56 PM
Re: run collect sysinfo file in each server.
But, I have my file called "sysinfo159" and I need to run in each server to cellect info. I want to run a script that copy this file in each server and execute it and bring me the out.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2003 01:01 PM
09-05-2003 01:01 PM
Re: run collect sysinfo file in each server.
But, I have my file called "sysinfo159" and I need to run in each server to cellect info. I want to run a script from a server that copy this file in each server and execute it and bring me the out.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2003 04:47 PM
09-05-2003 04:47 PM
Re: run collect sysinfo file in each server.
You can do it in the following ways. Pushing the server is important first. This can be achieved by following means.
1. If you have a management server that manages your servers, you can push this script and have it run through it. For ex., Openview ITO/VPO or tivoli.
3. Trusting the other hosts by means of ssh public/private keys.
4. Any batch scheduling software like control-M or Autosys that is already setup.
If you don't have anything, then you have to use tools like expect or perl to perform non-interactive sessions for you. There are options to store the passwords in memory rather than hardcoded in scripts so it is slightly better secured.
If there is no other way, then you have only one way which I don't suggest to use. You can use 'rexec' and 'ftp' with .netrc. Look at those man pages. Create an account on your workstation and put + root in it's .rhosts file. Write a wrapper script that untars sysinfo bundle, runs sysinfo and rcps the output to the account on your workstation. Copy both wrapper script and the sysinfo bundle
using ftp and rexec. Look at your .netrc on the syntax. Once you are done running sysinfo, wipe out your .netrc file and .rhosts. Again, this is to be done only as a last resort.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2003 11:02 PM
09-07-2003 11:02 PM
Re: run collect sysinfo file in each server.
I do like this,
On each server i run the collect script in cron. (see attachment) each week. it sends the output to a collect server. On the server its saved 2 version and locally 4 versions. On the collect server i made a html script( see attachment) so i just click on the server i need to see.
Hope this will help you. for us its work great.
Regards
Anders
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2003 11:04 PM
09-07-2003 11:04 PM
Re: run collect sysinfo file in each server.
Here are next attachment...:)
//Anders
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2003 03:51 AM
09-08-2003 03:51 AM
Re: run collect sysinfo file in each server.
You do have to become a yahoo group member. Another thing is the files cfg2html will use to create it's final html oputput -
/opt/cfg2html/plugins/head01.html, and
/opt/cfg2html/plugins/head02.html
will add advertising junk to your final output.
You can also redirect the placement of the final output by editing the "OUTDIR" variable found in the /opt/cfg2html/cfg2html_hpux.sh file.