Article

ukdtom's picture
article
Reads:

3464

Score:
3
3
1
 
Comments:

3

Is anybody imaging right now?

Author Info

9 December 2011 - 11:45am
Submitted by: ukdtom

(View Disclaimer)

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


Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).

It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.




User Comments

martinusen's picture

Thanks

Submitted by martinusen on 12 December 2011 - 3:52am.

Have really missed this option. Thanks for sharing Tommy. On my SLES servers (ZENworks 10 running on both SLES10 and SLES11) I have to grep for 'send' not 'sendto'. Anders

ukdtom's picture

ThanX for the feedback

Submitted by ukdtom on 12 December 2011 - 5:17pm.

Hi Anders.

What you just posted, made me rethink...my solution didn't work for ZCM10, only ZCM11...(Always on the edge of products here) :-)

As such, I altered my article to your solution, and as such...THANX FOR SHARING...

After all, the more people doing that, the stronger we all stand

Best Regards

Tommy

tbowman1724's picture

What about Windows satellite servers?

Submitted by tbowman1724 on 27 June 2012 - 8:00am.

Is there a way to see if anyone is pulling an image from a Windows based satellite server and Zen 11.2?

Thanks,

© 2013 Novell