{"id":131,"date":"2008-11-03T03:47:30","date_gmt":"2008-11-03T08:47:30","guid":{"rendered":"http:\/\/yourlinuxguy.com\/?p=131"},"modified":"2008-11-03T13:45:56","modified_gmt":"2008-11-03T18:45:56","slug":"how-do-i-access-the-local-sybase-db-on-a-zen-10-server","status":"publish","type":"post","link":"https:\/\/yourLinuxGuy.com\/?p=131","title":{"rendered":"How do I access the local Sybase db on a Zen 10 server?"},"content":{"rendered":"<p>Hi again gang&#8230; I just needed to whip together a quick-n-dirty cheatsheet for connecting to the internal Sybase database on a Zenworks 10 Configuration Management server. I work on many different servers (customers and whatnot) and this is one of those things I need to have in a handy place for reference. I hope it helps you, too!<\/p>\n<p>(**NOTE: All the examples in this post are based on a Windows server, so I&#8217;ll add the WindowsGeneral tag&#8230; but those Linux-user readers out there will be able to figure out how to do the same thing on their systems&#8230;  \ud83d\ude09 )<\/p>\n<p>Enter the following at a command prompt on the server:<br \/>\n<code>zman dgc<\/code><\/p>\n<p>&#8230;this will give you the userrname and password for the local db user. The password will be a long crazy string, and that is the actual password, not encrypted. Copy it to Notepad or just the clipboard for now.<\/p>\n<p>Launch the Interactive SQL tool:<br \/>\n<code>[zen dir]\\share\\ASA\\win32\\dbisql.exe<\/code><\/p>\n<p>Supply the user ID and password from the earlier command.<br \/>\nOn the Database tab, click Find and select the zone server that should be found automatically.<br \/>\nBrowse to the db file that should be at <code>[zen dir]\\database\\<\/code><br \/>\nUncheck the &#8220;Start database&#8230;&#8221; and &#8220;Stop database&#8230;&#8221; options, and click OK.<br \/>\nYou should now be connected.<\/p>\n<p>A cool command you might want to enter is (this is all one command, but you can enter this on multiple lines in the dbisql tool):<br \/>\n<code>select d.DNS, d.Site, i.UpdateStatus<br \/>\nfrom zDevice d join zSystemUpdateDeviceInfo i<br \/>\non d.ZUID = i.DeviceUID<br \/>\nwhere i.UpdateStatus != 'FINISHED';<\/code><\/p>\n<p>(**NOTE: This SQL command is similar to the one on Novell TID 7001146, but their TID has a typo and won&#8217;t work.)<\/p>\n<p>&#8230;And click the play\/run button. Or if you&#8217;re really brave, or have a small db,<br \/>\n<code>select * from zDevice;<\/code><br \/>\n&#8230;or&#8230;<br \/>\n<code>select * from zSystemUpdateDeviceInfo;<\/code><\/p>\n<p>&#8230;and so on. From the db commands you can get a feel for what the database looks like, and I suppose the table are documented somewhere&#8230;<\/p>\n<p>So I hope this gets you started&#8230;. Have fun!<br \/>\n\ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi again gang&#8230; I just needed to whip together a quick-n-dirty cheatsheet for connecting to the internal Sybase database on a Zenworks 10 Configuration Management server. I work on many different servers (customers and whatnot) and this is one of&#8230;<br \/><a class=\"read-more-button\" href=\"https:\/\/yourLinuxGuy.com\/?p=131\">Read more<\/a><\/p>\n","protected":false},"author":5,"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":""},"categories":[11,20,53],"tags":[],"class_list":["post-131","post","type-post","status-publish","format-standard","hentry","category-intermediate","category-windowsgeneral","category-zcm10"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pnjn1-27","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/131","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=131"}],"version-history":[{"count":3,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/131\/revisions"}],"predecessor-version":[{"id":133,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/131\/revisions\/133"}],"wp:attachment":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=131"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=131"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}