<s> import sys , os , warnings <EOL> warnings . simplefilter ( "<STR_LIT:ignore>" , DeprecationWarning ) <EOL> from ncclient import manager <EOL> def demo ( host , user , expr ) : <EOL> with manager . connect ( host = host , port = <NUM_LIT> , username = user ) as m : <EOL> assert ( "<STR_LIT>" in m . server_capabilities ) <EOL> c = m . get_config ( source = '<STR_LIT>' , filter = ( '<STR_LIT>' , expr ) ) . data_xml <EOL> with open ( "<STR_LIT>" % host , '<STR_LIT:w>' ) as f : <EOL> f . write ( c ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> demo ( sys . argv [ <NUM_LIT:1> ] , os . getenv ( "<STR_LIT>" ) , sys . argv [ <NUM_LIT:2> ] ) </s>
