HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- system check
Operating System - HP-UX
1834167
Members
2487
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
Go to solution
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
01-03-2001 05:00 PM
01-03-2001 05:00 PM
How could I check my server with all the output save into a file and i only need to check the file instead of checking command by command in Unix. Foe instances, I want to use dmesg,ioscan -fn, bdf commands and all output should save into a file called "syscheck.dat" file.
Cyber Zen
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2001 05:18 PM
01-03-2001 05:18 PM
Solution
Hi:
You could do something like this:
#!/usr/bin/sh
F=/tmp/syscheck.dat
date > $F
dmesg >> $F
ioscan -fn >> $F
bdf >> $F
Note that the '>>' causes output to be appended whereas '>' results in output overwriting a file (or creating a new one if none exists).
...JRF...
You could do something like this:
#!/usr/bin/sh
F=/tmp/syscheck.dat
date > $F
dmesg >> $F
ioscan -fn >> $F
bdf >> $F
Note that the '>>' causes output to be appended whereas '>' results in output overwriting a file (or creating a new one if none exists).
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2001 10:51 PM
01-03-2001 10:51 PM
Re: system check
Hi Chen,
As another option, you could create a script with the following:
#!/usr/bin/sh
exec > /tmp/syscheck.dat 2>&1
date
dmesg
ioscan -fn
bdf
....all other commands you may need
The line 'exec > /tmp/syscheck.dat 2>&1' redirects all output and errors to file syscheck.dat, so you don't need to redirect every command in the script.
Best regards,
Dan
As another option, you could create a script with the following:
#!/usr/bin/sh
exec > /tmp/syscheck.dat 2>&1
date
dmesg
ioscan -fn
bdf
....all other commands you may need
The line 'exec > /tmp/syscheck.dat 2>&1' redirects all output and errors to file syscheck.dat, so you don't need to redirect every command in the script.
Best regards,
Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2001 02:22 AM
01-08-2001 02:22 AM
Re: system check
Hi Chen and all others,
i think it's a good idea to check/integrate the syslog files too.
I would use the cron to start the script at several times.
Have fun !!
Walter
i think it's a good idea to check/integrate the syslog files too.
I would use the cron to start the script at several times.
Have fun !!
Walter
Walter Mefle
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