Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

When my rackspace hyper v server is bought online, I have a scheduled task that is set to run on startup to get the internal ip address and make use of it.

It seems though that the internal ip address of the server changes after I bring the image back online but after startup, as if maybe the machine has an ip configured, then some other event changes it.

Can anyone suggest an event that I can use to get this value a a later step, after the internal ip address has been finalised?

share|improve this question
    
Wait [time value]? –  HopelessN00b Aug 20 '12 at 19:48

1 Answer 1

See http://superuser.com/questions/262799/how-to-launch-a-command-on-network-connection-disconnection for a method by which you can have a scheduled task run on connectivity changed - which should happen when your IP is set.

Keep in mind, however, that you may not have just one IPv6 address and it may not be constant across the uptime of the server.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.