- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Trimming of script output
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
тАО11-21-2010 12:40 AM
тАО11-21-2010 12:40 AM
Trimming of script output
Dear Guruz,
I have a script which check the host status, uptime, Application status from one hostname define file name is telist and send the output in log file.
This script is working fine for me but i have one issue, itтАЩs not showing the proper output of (|) like below you can see
| Srl | Host Name | HOST ALIVE | APPS RUNNING | UPTIME |
| 1 | kw01ksedgd01 | UP | UP | 12:04:31 up 74 days, 34 min, 0 users, load average: 0.23, 0.08, 0.02 |
| 2 | kw01ksedgd02 | UP | UP | 12:04:32 up 107 days, 20:11, 1 user, load average: 0.00, 0.00, 0.00 |
In above output the uptime output of all servers started with same point but in the end is not same.
I am attaching the script and log file for more details.
I will appreciate of some one share with me how to manage the output.
Thanks
khalid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-21-2010 12:46 AM
тАО11-21-2010 12:46 AM
Re: Trimming of script output
http://rapidshare.com/files/432179780/script.zip
Thanks
Khalid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-21-2010 07:08 AM
тАО11-21-2010 07:08 AM
Re: Trimming of script output
That is a POS download site you pointed us to.
It is spending more time and bandwith trying to fool its potential users into upgrading with messages like 'all free downloads are in use' and 'avoid waiting' nonsense than it would take to actually download the silly 2KB.
It must have send me 200 kb of nonsense in the process. :-(
Just copy the script into a .TXT file and attach already?
As you do so, you might want to include few more example input, and output lines.
Also, your explanation of what is wrong is not at all clear to me. Maybe other readers are smarter, but please re-try or ask a friend to review/interpret.
fwiw,
Hein
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-21-2010 08:17 PM - edited тАО10-01-2011 07:08 PM
тАО11-21-2010 08:17 PM - edited тАО10-01-2011 07:08 PM
Re: Trimming of script output
>I'm trying to upload script and log file but it's giving me error.
What was the error? It should work as long as it is < 1 Mb. You would have problems downloading it if it was .zip using IE. (Use .ZIP instead.)
As Hein said, it was hard to use your URL.
- Tags:
- IE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-21-2010 09:37 PM
тАО11-21-2010 09:37 PM
Re: Trimming of script output
Thanks
Khalid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2010 01:55 AM
тАО11-22-2010 01:55 AM
Re: Trimming of script output
printf "| %5d | %-20s | %-4s | %-40s |\n" \
"$tsrl" "$te" "$hstat" "$astat" \
"$aupt"