{"id":216,"date":"2009-03-01T09:08:20","date_gmt":"2009-02-28T22:08:20","guid":{"rendered":"http:\/\/nsrd.wordpress.com\/?p=216"},"modified":"2009-03-01T09:08:20","modified_gmt":"2009-02-28T22:08:20","slug":"an-old-dog-can-always-learn-new-tricks","status":"publish","type":"post","link":"https:\/\/nsrd.info\/blog\/2009\/03\/01\/an-old-dog-can-always-learn-new-tricks\/","title":{"rendered":"An old dog can always learn new tricks (rpcinfo)"},"content":{"rendered":"<p>I always make an effort to spell out that I don&#8217;t call myself an &#8220;expert&#8221; when it comes to NetWorker. Every time I did that when I was &#8220;growing up&#8221; with the product, I&#8217;d subsequently make an arse* of myself.<\/p>\n<p>So these days I just put &#8220;expert&#8221; on CVs and resum\u00e9s for HR people, but consider myself generally speaking to be a long term user who happens to have a lot of technical understanding of the product.<\/p>\n<p>Nevertheless, I&#8217;m always surprised, delighted and sometimes a little\u00a0embarrassed\u00a0when I discover a feature I&#8217;ve been using for ages is more powerful and useful than what I&#8217;ve been using it for.<\/p>\n<p>Take the humble <em>rpcinfo<\/em> utility. I know, not really a NetWorker component, but one that&#8217;s used so often in NetWorker debugging that I often tend to think of it as &#8220;NetWorker utility&#8221;.<\/p>\n<p>The traditional use for rpcinfo, the one that I&#8217;ve been using for the last 12+ years, is the most simple:<\/p>\n<pre>$ rpcinfo -p nox\n\u00a0\u00a0 program vers proto \u00a0 port\n\u00a0\u00a0 \u00a0100000 \u00a0 \u00a02 \u00a0 tcp \u00a0 \u00a0111 \u00a0portmapper\n\u00a0\u00a0 \u00a0100000 \u00a0 \u00a02 \u00a0 udp \u00a0 \u00a0111 \u00a0portmapper\n\u00a0\u00a0 \u00a0100024 \u00a0 \u00a01 \u00a0 udp \u00a0 \u00a0723 \u00a0status\n\u00a0\u00a0 \u00a0100024 \u00a0 \u00a01 \u00a0 tcp \u00a0 \u00a0726 \u00a0status\n\u00a0\u00a0 \u00a0390402 \u00a0 \u00a01 \u00a0 tcp \u00a0 9001\n\u00a0\u00a0 \u00a0390436 \u00a0 \u00a01 \u00a0 tcp \u00a0 8772\n\u00a0\u00a0 \u00a0390435 \u00a0 \u00a01 \u00a0 tcp \u00a0 8176\n\u00a0\u00a0 \u00a0390113 \u00a0 \u00a01 \u00a0 tcp \u00a0 7937 \u00a0nsrexecd\n\u00a0\u00a0 \u00a0390115 \u00a0 \u00a01 \u00a0 tcp \u00a0 8525\n\u00a0\u00a0 \u00a0390103 \u00a0 \u00a02 \u00a0 tcp \u00a0 8456 \u00a0nsrd\n\u00a0\u00a0 \u00a0390109 \u00a0 \u00a02 \u00a0 tcp \u00a0 8456 \u00a0nsrstat\n\u00a0\u00a0 \u00a0390110 \u00a0 \u00a01 \u00a0 tcp \u00a0 8456 \u00a0nsrjbd\n\u00a0\u00a0 \u00a0390120 \u00a0 \u00a01 \u00a0 tcp \u00a0 8456\n\u00a0\u00a0 \u00a0390109 \u00a0 \u00a02 \u00a0 udp \u00a0 8179 \u00a0nsrstat\n\u00a0\u00a0 \u00a0390107 \u00a0 \u00a05 \u00a0 tcp \u00a0 9754 \u00a0nsrmmdbd\n\u00a0\u00a0 \u00a0390107 \u00a0 \u00a06 \u00a0 tcp \u00a0 9754 \u00a0nsrmmdbd\n\u00a0\u00a0 \u00a0390105 \u00a0 \u00a05 \u00a0 tcp \u00a0 9248 \u00a0nsrindexd\n\u00a0\u00a0 \u00a0390105 \u00a0 \u00a06 \u00a0 tcp \u00a0 9248 \u00a0nsrindexd\n\u00a0\u00a0 \u00a0390433 \u00a0 \u00a01 \u00a0 tcp \u00a0 8980 \u00a0nsrjobd\n\u00a0\u00a0 \u00a0390104 \u00a0105 \u00a0 tcp \u00a0 9142 \u00a0nsrmmd\n\u00a0\u00a0 \u00a0390104 \u00a0205 \u00a0 tcp \u00a0 9561 \u00a0nsrmmd\n\u00a0\u00a0 \u00a0390104 \u00a0305 \u00a0 tcp \u00a0 9932 \u00a0nsrmmd\n\u00a0\u00a0 \u00a0390104 \u00a0405 \u00a0 tcp \u00a0 8303 \u00a0nsrmmd\n\u00a0\u00a0 \u00a0390104 \u00a0505 \u00a0 tcp \u00a0 9074 \u00a0nsrmmd\n\u00a0\u00a0 \u00a0390104 \u00a0605 \u00a0 tcp \u00a0 9093 \u00a0nsrmmd\n\u00a0\u00a0 \u00a0390104 \u00a0705 \u00a0 tcp \u00a0 8489 \u00a0nsrmmd\n\u00a0\u00a0 \u00a0390104 \u00a0805 \u00a0 tcp \u00a0 9260 \u00a0nsrmmd\n\u00a0\u00a0 \u00a0390104 \u00a0905 \u00a0 tcp \u00a0 9279 \u00a0nsrmmd\n\u00a0\u00a0 \u00a0390104 1005 \u00a0 tcp \u00a0 9934 \u00a0nsrmmd\n\u00a0\u00a0 \u00a0390104 1105 \u00a0 tcp \u00a0 8225 \u00a0nsrmmd\n\u00a0\u00a0 \u00a0390430 \u00a0 \u00a01 \u00a0 tcp \u00a0 9047 \u00a0nsrmmgd\n\u00a0\u00a0 \u00a0390429 \u00a0101 \u00a0 tcp \u00a0 8301 \u00a0nsrlcpd\n\u00a0\u00a0 \u00a0390104 1205 \u00a0 tcp \u00a0 8155 \u00a0nsrmmd\n\u00a0\u00a0 \u00a0390104 1305 \u00a0 tcp \u00a0 8526 \u00a0nsrmmd<\/pre>\n<p><span style=\"font-family:Georgia;line-height:19px;white-space:normal;font-size:13px;\">However, recently a PSE got me to run a slightly different rpcinfo command, and I can immediately appreciate that it&#8217;ll be one I&#8217;ll periodically use again. That&#8217;s to make use of the test function, which actually does a connectivity test to the specified program number and report whether a response is received. It works like this:<\/span><\/p>\n<pre><span style=\"font-family:Georgia;font-size:small;\"><span style=\"line-height:19px;white-space:normal;\"># rpcinfo -t host number [version]<\/span><\/span><\/pre>\n<p><span style=\"font-family:Georgia;font-size:small;\"><span style=\"line-height:19px;white-space:normal;\">So, where is this useful? It&#8217;s another good way of checking not to see whether the NetWorker client is running, but to see whether it&#8217;s actually capable of responding. For example:<\/span><\/span><\/p>\n<pre><span style=\"font-family:Georgia;font-size:small;\"><span style=\"line-height:19px;white-space:normal;\"># rpcinfo -t nox 390113\u00a0\nprogram 390113 version 1 ready and waiting<\/span><\/span><\/pre>\n<p><span style=\"font-family:Georgia;font-size:small;\"><span style=\"line-height:19px;white-space:normal;\">As you can see, that&#8217;s a useful bit of information to get back during debugging connectivity and communications problems! Proving once gain &#8211; you can teach an old dog new tricks.<\/span><\/span><br \/>\n&#8212;<br \/>\n* Or ass, if you must.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I always make an effort to spell out that I don&#8217;t call myself an &#8220;expert&#8221; when it comes to NetWorker.&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[16,20],"tags":[54,659,660,843],"class_list":["post-216","post","type-post","status-publish","format-standard","hentry","category-networker","category-scripting","tag-54","tag-nsrexec","tag-nsrexecd","tag-rpcinfo"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pKpIN-3u","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/216","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/comments?post=216"}],"version-history":[{"count":0,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/216\/revisions"}],"wp:attachment":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/media?parent=216"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/categories?post=216"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/tags?post=216"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}