KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/21585/root/usr/lib/python2.4/site-packages/sos/plugins/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21585/root/usr/lib/python2.4/site-packages/sos/plugins/networking.pyc
mò
Ŭl2Wc@sDdkZdkZdkZdkZdeiifd„ƒYZdS(Nt
networkingcBsGtZdZdddefgZd„Zd„Zd„Zd„ZRS(s network related information
    t
traceroutes'collects a traceroute to rhn.redhat.comtslowcCs”g}t|dƒ}xn|iƒD]`}|idƒp|iƒp|d iƒoq"n|iddƒ\}}|i|ƒq"W|i
ƒ|S(s}Return a dictionary for which key are bridge name according to the
        output of brctl show stored in brctlFile.
        trsbridge nameiN(touttopent	brctlFiletfpt	readlinestlinet
startswithtisspacetsplittNonetbrNametbrResttappendtclose(tselfRRRR	RR((t:/usr/lib/python2.4/site-packages/sos/plugins/networking.pytget_bridge_names
.
cCsdh}xW|iƒD]I}tid|ƒ}|o*|iidƒdiƒ}t
||<qqW|S(s…Return a dictionary for which key are interface name according to the
        output of ipaddr -o link stored in ipaddrFile.
        s.*link/ether.*t:iN(Rtip_link_outt
splitlinesR	tretmatchtstringRtlstriptifacetTrue(RRRR	RR((Rtget_eth_interfaces%s
cCsad|d}tid|ƒ\}}|djo|i|ƒn|i|d|dƒdS(sB When running the iptables command, it unfortunately auto-loads
        the modules before trying to get output.  Some people explicitly
        don't want this, so check if the modules are loaded before running
        the command.  If they aren't loaded, there can't possibly be any
        relevant rules in that table s/sbin/iptables -t s -nvLs/sbin/lsmod | grep -q isIPTables module s not loaded
N(	t	tablenametcmdtcommandstgetstatusoutputtstatustoutputRtcollectExtOutputtwriteTextToCommand(RRR#R R$((RtcollectIPTable1s
cCsx|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|id	d
dƒ|idd
d
ƒ}|idd
dƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idd
dƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒd }|o•x’|i|ƒD]}}|id!|ƒ|id"|ƒ|id#|ƒ|id$|ƒ|id%|ƒ|id&|ƒ|id'|ƒq‰Wn|i
d(ƒo|id)ƒn|id*ƒ}|o/x,|i|ƒD]}|id+|ƒqUWndS(,Ns	/proc/nets/etc/nsswitch.confs/etc/yp.confs/etc/inetd.confs/etc/xinetd.confs
/etc/xinetd.ds
/etc/host*s/etc/resolv.confs/sbin/ifconfig -atsymlinktifconfigs/sbin/ip -o addrtip_addrs/sbin/route -ntroutes/sbin/ipchains -nvLtfiltertnattmangles/bin/netstat -ss/bin/netstat -agns/bin/netstat -neopatnetstats/sbin/ip route show table alls
/sbin/ip links/sbin/ip addresss/sbin/ifenslave -as/sbin/ip mroute shows/sbin/ip maddr shows/sbin/ip neigh shows
ip -o linkis/sbin/ethtool s/sbin/ethtool -i s/sbin/ethtool -k s/sbin/ethtool -a s/sbin/ethtool -c s/sbin/ethtool -g s/sbin/ethtool -S Rs!/bin/traceroute -n rhn.redhat.coms/usr/sbin/brctl shows/usr/sbin/brctl showstp (RtaddCopySpecR%tcollectOutputNowt
ipaddrFileR'tcallExtProgWithOutputRRtethtisOptionEnabledRRR(RR2RRR4R((Rtsetup@sX




















(	t__name__t
__module__t__doc__tFalset
optionListRRR'R6(((RRs			(tsos.plugintoolstsostosRR!tplugintoolst
PluginBaseR(RR=R>R!R((Rt?s	

Anon7 - 2021