Home | History | Annotate | Download | only in rpm_control_system

Lines Matching refs:hostname

34     def __init__(self,userid='admin',password='4321',hostname='192.168.0.100'):
37 self.hostname=hostname
48 curl.setopt(curl.URL, 'http://%s:%s@%s/%s' % (self.userid,self.password,self.hostname,url))
64 each item will contain 3 itmes plugnumber, hostname and state """
77 hostname=columns[1].string
79 outlets.append([int(plugnumber),hostname,state])
84 print "Unable to communicte to the Web power switch at %s" % self.hostname
86 print 'Outlet\t%-15.15s\tState' % 'Hostname'
100 parser.add_option('--hostname',dest='hostname',default="192.168.0.100")
105 switch=powerswitch(userid=options.user,password=options.password,hostname=options.hostname)