#!/usr/bin/python # arg1 is nodename (either short or long, private or public) # arg2 is the variable to fetch import nodeinfo import sys info = nodeinfo.infostor() print info.get_node_var_flex(sys.argv[1], sys.argv[2])