Is anybody imaging right now?

0 Likes
over 9 years ago

Looking for a way to detect, if anybody currently is downloading an image from your SLES based ZCM-Server?

If so, then try this:

Make an ssh connection to your image server

@ the console, type the following:

strace -fp $(pgrep novell-pbservd) 2>&1|grep send


Above will start a trace of everything, that the novell-pbservd sends out

So if there's no output, it means nobody is currently imaging, otherwise, it'll show an output like the following:

[pid 24278] sendto(1, "#r\343|\312\250\262\232\273\321|l\226\322d\301\0314~,\236,\6-W=\25\304\26\254\361\370"..., 4440, MSG_NOSIGNAL, NULL, 0) = 4440
[pid 24278] sendto(1, "\216\24\31\343\351'\347\337\352\1\246\343\341\311\370\352\344\315N\32yH\274d\5\3204\306\207\311\321&"..., 4440, MSG_NOSIGNAL, NULL, 0) = 4440
[pid 24278] sendto(1, "k\310R\226\246E<\323\367'G-i\357\226\7\335/\254\343\334r\224\221\330/r\301\247\226\255\225"..., 4440, MSG_NOSIGNAL, NULL, 0) = 4440
[pid 24278] sendto(1, "\224F\340\341\261\231\277\204\314\373K\310\260\266\205\356p\31\241N\2104\271\"A#d\34\tg\374\33"..., 4440, MSG_NOSIGNAL, NULL, 0) = 4440
[pid 24278] sendto(1, "l\22\233\300\256C[\321\304\324\245X\306\315\16\342!\252c\341\214_\375c:\32s\372\362O\252y"..., 4440, MSG_NOSIGNAL, NULL, 0) = 4440
[pid 24278] sendto(1, "f\344o\32\365\207\4\303\210F\36.\235\331H\311\272 \24\324\315\254\237\1S\346\273\370\307\276\243\323"..., 4440, MSG_NOSIGNAL, NULL, 0) = 4440
[pid 24278] sendto(1, "\334p\3642\300\tbQ\2507\262Xp\243\256_\204\203\253\3537\201_\271\352\207?# \6\17a"..., 4440, MSG_NOSIGNAL, NULL, 0) = 4440
[pid 24278] sendto(1, "8\243\316\\V;\364\356\243\264~\244\251\200\236\271\352\377\240\215\252Ge\365\225\204\301\334\307nT\242"..., 4440, MSG_NOSIGNAL, NULL, 0) = 4440
[pid 24278] sendto(1, "\331!sGV\364\r\343W\320\336}\0F\341\321\252\33\36\312\356\234#0>\323=\252\271\361U\242"..., 4440, MSG_NOSIGNAL, NULL, 0) = 4440
[pid 24278] sendto(1, "\355\372\223P\244h\27\377\264\230\343F>0\260:4\226[\353!^!\216Y\243\307\352\fz\204\26"..., 4440, MSG_NOSIGNAL, NULL, 0) = 4440
[pid 24278] sendto(1, "\333z\235\24J\322\353\233\333?\320{\224\372\r4X\367\35j5y\207\265\323\2\2164\206\272\212\206"..., 4440, MSG_NOSIGNAL, NULL, 0) = 4440
[pid 24278] sendto(1, "\357\334\313l<q\256yh\336J\350\3715\347\ns\222\322\316\337V\323E\327\334\276B\320\337\233\356"..., 4440, MSG_NOSIGNAL, NULL, 0 <unfinished ...>


To stop the trace again, hit Ctrl C

Best Regards

Tommy

Labels:

How To-Best Practice
Comment List
Anonymous
Related Discussions
Recommended