Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8783703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:53:20+00:00 2026-06-13T20:53:20+00:00

I want to reboot some instances using ec2.reboot_instances([instanceId]) and that works fine but: how

  • 0

I want to reboot some instances using ec2.reboot_instances([instanceId]) and
that works fine but:

  1. how to verify a reboot occurs? I thought launch_time will be changed but looks like all parameters remains the same.. I’d prefer to do this check without ssh or ping – is it possible? May be it’s possible to use instance.get_console_output() somehow?

  2. it’s not clear from the docs if I should add some instance status check before trying to reboot. If instance is terminated request will be ignored, that’s clear – but if is’s stopped or pending – should I use something else instead (start)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T20:53:22+00:00Added an answer on June 13, 2026 at 8:53 pm

    This shell command will give you how long the system has been booted:

    ssh hostname uptime
    

    To automate it you will want to add you ssh public key to the .ssh/authorized_keys file on the host.

    With boto it would probably be something like this (although I’ve not used boto):

    s = boto.manage.cmdshell.SSHClient(hostname, uname='root')
    s.run('uptime')
    

    See the reference on the boto manage module

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating a setup project using Visual Studio. I want to reboot the
I need to create a batch script that will run a reboot command but
I want to automate a Windows 2000+ server reboot process using Task Scheduler or
As a general rule, everything works fine, but then sometimes either Eclipse or my
I want to reboot a computer that is connected with network by RMI,(Remote computer)
I want to execute a task with whenever rails gem at every reboot like
want to know why String behaves like value type while using ==. String s1
Want the function to sort the table by HP but if duplicate HPs then
I want to write some image downloader and assign it on bash. What I
i want to Reboot my phone i tried try { Process proc = Runtime.getRuntime().exec(new

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.