A Brain-dead Python Ping Utility

From PeformIQ Upgrade
Revision as of 15:45, 25 February 2008 by PeterHarding (talk | contribs) (New page: ==Script== <pre> #!/usr/bin/python # # Purpose: Ping a range if IPs # # Copyright (C) Peter Harding, 2003 # All rights reserved # # $Id:$ # #-----------------------------...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Script

#!/usr/bin/python
#
#  Purpose: Ping a range if IPs
#
#  Copyright (C) Peter Harding, 2003
#                All rights reserved
#
#  $Id:$
#
#---------------------------------------------------------------------

import os

for i in range(1,20):
   cmd = "ping 10.10.10.%d" % i
   print cmd
   os.system(cmd)