- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- Languages and Scripting
- >
- Re: script for checking uptime
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- Report Inappropriate Content
09-03-2013 08:40 AM
09-03-2013 08:40 AM
script for checking uptime
HI,
I need to know is it possible to check uptime for multiple server.
for example :from server A, I need to check the uptime of server B,C,D,E in a html format.
Can I have some idea ?
- Tags:
- uptime
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-03-2013 09:33 AM
09-03-2013 09:33 AM
Re: script for checking uptime
Hi
Write a script
ssh x ,y,z and then check the uptime
Ajin.S
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-03-2013 10:31 AM
09-03-2013 10:31 AM
Re: script for checking uptime
from server A:
remsh <server B> -n 'uptime'
or
ssh <server B> -n 'uptime'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-03-2013 07:45 PM
09-03-2013 07:45 PM
Re: script for checking uptime
hi,
I want the output to display in a html format.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-04-2013 01:18 AM
09-04-2013 01:18 AM
Re: script for checking uptime
>I want the output to display in a html format.
Then you may want to look at some perl scripting.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-04-2013 09:39 AM
09-04-2013 09:39 AM
Re: script for checking uptime
hi
can you share me a sample script ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-04-2013 08:40 PM
09-04-2013 08:40 PM
Re: script for checking uptime
Try searching this board for perl and html:
http://h30499.www3.hp.com/t5/Languages-and-Scripting/perl-to-create-html/m-p/3651248
http://h30499.www3.hp.com/t5/Languages-and-Scripting/CSV-to-HTML/m-p/3741100
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-10-2013 10:37 AM
09-10-2013 10:37 AM
Re: script for checking uptime
For HTML, just insert <PRE> before the output from uptime and </PRE> after the output.
If you are looking for a complete web page that identifies the server name, date and time, etc, you need to read about how to create web pages.
Bill Hassell, sysadmin
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP