UNIX Consulting and Expertise
Golden Apple Enterprises Ltd. » Archive of 'Mar, 2011'

Checking which package a file belongs to with IPS Comments Off on Checking which package a file belongs to with IPS

I’d previously written up a brief note on how to use pgchk to check which package a file belongs to in Solaris. With IPS replacing SYSV packages in Solaris 11 and OpenIndiana, I thought I’d add an update to that post, showing how to accomplish the same thing in IPS.

IPS makes things a lot simpler for us, using the ‘search’ option to pkg.

Let’s check it out on an OpenIndiana oi_147 machine:

-bash-4.0$ uname -X    
System = SunOS
Node = grond
Release = 5.11
KernelID = oi_147
Machine = i86pc
BusType = 
Serial = 
Users = 
OEM# = 0
Origin# = 1
NumCPU = 4

The format of the search option is simple – just give it the full path to the file you’re interested in. In this example, I want to see which IPS package contains /usr/bin/ssh:

-bash-4.0$ pkg search /usr/bin/ssh
path       file   usr/bin/ssh pkg:/network/[email protected]

Nice and simple, and certainly a lot easier than the old method of invoking pgchk.

pkg search will take a number of extra options:

-bash-4.0$ pkg search -? 
        pkg search [-HIaflpr] [-o attribute ...] [-s repo_uri] query

pkg search will also allow wildcards, like ? and *, as well as specifying a particular IPS repo, with the -s option – which is very handy when you have a custom repo for your infrastructure.

Oracle screw over Solaris experts with new certification rules 2 comments

I can cut Oracle a lot of slack – they’re a big, slow organisation, and having swallowed Sun there are sure to be some bouts of indigestion, in between a few burps as the more troublesome bits get expelled.

But the latest update on how certifications are granted is ridiculous. Read the note on Oracle’s Education website:

Important Changes to Java, and Oracle Solaris Certifications

Beginning August 1, 2011, Java Architect, Java Developer, Solaris System Administrator and Solaris Security Administrator certification path requirements will include a new mandatory course attendance requirement.

The summary is – even if you pass the certification exams, you cannot be certified unless you attend a relevant hands-on course.

Your experiences may vary, but personally I have always found vendor-run training courses to be useless. They are not teaching you skills you need – they are teaching you how to do things the way the vendor wants you to. Training courses are not always the best way to learn things, and on every single one I’ve been on, there’s been someone who hasn’t bothered with the course pre-requisites – and so the training slows down to the pace of someone who is a total beginner. That is not the way to learn.

Perfect case in point – Sun used to say that to add a user, you’d fire up the admintool GUI. This even came up in the certification exam, and if you said anything other than ‘use admintool’, you’d fail that question.

Meanwhile, in the real world, people were editing passwd and shadow, running useradd, or hacking away at NIS and LDAP. No-one used NIS+ – so naturally, that too featured in the certification exams and the courses.

Vendors want to teach you how to use their specific tools to increase sales and penetration. Fine. But that isn’t teaching you the useable, transferrable skills you need to be a really good sysadmin.

By forcing course attendance, Oracle are making it clear that to be an ‘expert’ in Solaris, you have to a) have paid them lots of money for that bit of paper, and b) know how to use Oracle tools, over and above any real skill or understanding of the OS.

This is short-sighted, greedy, and stupid. It devalues the Solaris certifications by clearly showing them to be about making money for Oracle. It means that someone who invests heavily in Solaris and UNIX skills will be valued less by HR (and less technical managers) than someone who has paid Oracle a bucket load of cash.

It also unfairly penalises small businesses and consultancies. If you’ve got a few UNIX guys, why not pay for some books, let them self study, and then fork out £300 or so for a few exams? That’s a world away from having them out the office for 5 days, and paying upwards of £3000, for a course that is unlikely to give them any new knowledge.

This is wrong. This is ill-considered, and turns a useful way of showcasing your Solaris skills into a valueless exercise in fattening Mad Larry’s wallet.

Top of page / Subscribe to new Entries (RSS)