Authenticated call to splunk

def splunk(cmd, user='admin', passwd='changeme'):
    """Authenticated call to splunk"""
    return sudo('/opt/splunkforwarder/bin/splunk {c} -auth {u}:{p}'
                .format(c=cmd, u=user, p=passwd))