Beispiel #1
0
def set_value(attribute, val):
    sudo_with_retry('echo "set -b {JMX_BEAN} {0} {1}" |'
                    ' java -jar {JMX_TERM_JAR} -l localhost:{JMX_PORT} '
                    ' -v silent -n'.format(attribute, val, **globals()))
Beispiel #2
0
def get_value(attribute):
    return sudo_with_retry('echo "get -s -b {JMX_BEAN} {0}" |'
                           ' java -jar {JMX_TERM_JAR} -l localhost:{JMX_PORT}'
                           ' -v silent -n'.format(attribute, **globals()))