Skip to content

Instantly share code, notes, and snippets.

[root@flatline ~]# bcfg2-info packageresolve vestalac1 subversion
Loading experimental plugin(s): Packages
NOTE: Interfaces subject to change
Loading deprecated plugin(s): Base
Reloading Packages plugin
Reloading Packages plugin
Handled 162 events in 11.581s
Handled 157 events in 0.038s
Handled 128 events in 0.052s
Handled 8 events in 0.006s
@mattikus
mattikus / gist:856946
Created March 6, 2011 02:01
two attempts to connect to freenode with weechat-git
19:45:09 freenode | irc: reconnecting to server...
19:45:09 freenode | irc: connecting to server chat.us.freenode.net/7070 (SSL)...
19:45:09 freenode | gnutls: connected using 1024-bit Diffie-Hellman shared secret exchange
19:45:09 freenode =!= | gnutls: peer's certificate is NOT trusted
19:45:09 freenode =!= | gnutls: peer's certificate issuer is unknown
19:45:09 freenode | gnutls: receiving 2 certificates
19:45:09 freenode | - certificate[1] info:
19:45:09 freenode | - subject `OU=Domain Control Validated,OU=Gandi Standard Wildcard SSL,CN=*.freenode.net', issuer `C=FR,O=GANDI SAS,CN=Gandi Standard SSL CA', RSA key 2048 bits, signed using
| RSA-SHA1, activated `2011-01-14 00:00:00 UTC', expires `2012-01-14 23:59:59 UTC', SHA-1 fingerprint `acd50e69ad93f5db08fefb67180d871415858664'
19:45:09 freenode | - certificate[2] info:
$ sudo bcfg2-admin xcmd Packages.Reload
Traceback (most recent call last):
File "/usr/sbin/bcfg2-admin", line 95, in <module>
main()
File "/usr/sbin/bcfg2-admin", line 84, in main
mode(setup['args'][1:])
File "/usr/lib/python2.6/site-packages/Bcfg2/Server/Admin/Xcmd.py", line 44, in __call__
data = getattr(proxy, cmd)(*args)
File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__
return self.__send(self.__name, args)
tukeysn1 ~][c][ setres -m -n pm -s 2013_06_10-14:00
Got starttime Mon Jun 10 14:00:00 2013 +0000 (UTC)
[tukeysn1 ~][i][ showres
Reservation Queue User Start Duration Partitions
============================================================================================================
gpfs-tokenmgr R.gpfs-tokenmgr nobody Wed Apr 10 20:00:00 2013 +0000 (UTC) 1440:00 [vs93-96]
pm R.pm crusher:wesley Mon Jun 17 14:00:00 2013 +0000 (UTC) 15:00 [vs1-96]
[tukeysn1 ~][i][ setres -m -n pm -s 2013_06_10-14:00
write(1, "Dispatching event exists /home/m"..., 128Dispatching event exists /home/mkemp/repos/bcfg2/Packages/packages.co
nf to obj /home/mkemp/repos/bcfg2/Packages/packages.conf:
) = 128
open("/home/mkemp/repos/bcfg2/Packages/packages.conf", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=159, ...}) = 0
fstat(4, {st_mode=S_IFREG|0644, st_size=159, ...}) = 0
lseek(4, 0, SEEK_CUR) = 0
fstat(4, {st_mode=S_IFREG|0644, st_size=159, ...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fac801aa000
lseek(4, 0, SEEK_CUR) = 0
Dispatching event exists /home/mkemp/repos/bcfg2/Packages/sources.xml to obj PackagesSources: []
Reloading Packages plugin
Packages: File read failed; falling back to file download
Packages: Updating http://mrepo/rhel-current/6/os/x86_64/repodata/filelists.xml.gz
Packages: Updating http://mrepo/rhel-current/6/os/x86_64/repodata/primary.xml.gz
Packages: Updating http://mrepo/rhel-current/6/updates/x86_64/repodata/filelists.xml.gz
Packages: Updating http://mrepo/rhel-current/6/updates/x86_64/repodata/primary.xml.gz
Packages: Updating http://mrepo/rhel-current/6/optional/x86_64/repodata/filelists.xml.gz
Packages: Updating http://mrepo/rhel-current/6/optional/x86_64/repodata/primary.xml.gz
Packages: Updating http://mrepo/rhel-current/6/updates-debuginfo/x86_64/repodata/filelists.xml.gz
function p() {
case "$1" in
up|on)
export http_proxy="http://proxy:3128"
export https_proxy="http://proxy:3128"
export ftp_proxy="http://proxy:3128"
echo "proxy on!"
;;
down|off)
unset http_proxy https_proxy ftp_proxy
================ ========== =========== ========== =======
Name Min Max Mean Count
================ ========== =========== ========== =======
RecvStats 0.001192 0.057484 0.026044 47
GetConfig 0.846594 12.823566 1.548626 275
component_lock 0.000001 26.028265 1.243623 873
GetProbes 0.000862 0.022428 0.003155 276
RecvProbeData 0.013431 0.039566 0.018089 275
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python2.6/site-packages/Bcfg2/Server/Plugins/Cfg.py", line 16, in <module>
from Bcfg2.Bcfg2Py3k import u_str, unicode
ImportError: cannot import name unicode
<Sources>
<Group name='rhel6'>
<!-- Official RHEL 6 packages, x86_64 -->
<Group name='ddn-vm' negate='true'>
<Source type='yum' url='http://mrepo/rhel/' version='6'>
<Arch>x86_64</Arch>
<Arch>ppc64</Arch>
<Component>os</Component>
<Component>updates</Component>
<Component>optional</Component>