You can see the contents of an ODM file by simply odmget CuAt See the $ODMDIR environment variable to see the default ODM directory, /etc/objrepos. Or to refine it a bit, we used this to query the default route odmget -q name=inet0 CuAt or more specifically, odmget -q 'name=inet0 AND attribute=route' CuAt To remove, odmdelete -o CuAt -q "name=inet0 AND attribute=route AND value='net,192.168.55.0,-netmask,255.255.255.0,192.168.56.65'" Note the reversal of the CuAt and -q parameters. ---------------------------------------------------------------------- Most of the odm data is kept in the /etc/objrepos directory, but there are also pieces of it in /usr/lib/objrepos and /usr/share/lib/objrepos Some of the /usr/lib/objrepos pieces are linked from /etc/objrepos, but not all. I don't understand the split, but the fact that there are pieces of it scattered around, was a question on the AIX System Support Certification sample test. Here's something from a "UNIX - From New User to Technical Expert" paper at http://st23.org/misc/sysadmin/downloads/unix-from.new.user.to.technical.expert.pdf about the split. /etc/objrepos -> Here the customised devices object classes and the SWVPD (Software Vital Product Database) for the / (root) part of the installable software product. The directory also contains links to the predefined devices object classes and the SMIT menu object classes. The ODMDIR points to here by default. CuDv CuAt CuDep CuDvDr CuVPD Config_Rules history inventory lpp product nim_attr nim_object nim_pdattr SWservAt /usr/lib/objrepos -> This contains the predefined devices object classes, the SMIT menu object classes and the four object classes used by the SWVPD for the /usr part of the installable software product. The object classes in this repository can be shared across the network by /usr clients. This can be shared between AIX clients only. PdDV PdAt PdCn history inventory lpp product sm_menu_opt sm_name_hdr sm_cmd_hdr sm_cmd_opt /usr/share/lib/objrepos -> This contains the object classes used by the SWVPD for the /usr/share part of the installable software product. The components that are not AIX dependant. history inventory lpp product ---------------------------------------------------------------------- There are a few odm databases in /etc/objrepos that have to do with installed software. See the lpp, inventory, product odm databases. There may be others, I'm not sure. odmget lpp For example, will see the whole 1100 or so lines. odmget -q name=bos.acct lpp to see a specific lpp, Remember, there's the lslpp -f -c command to see what installed files came from which fileset. ---------------------------------------------------------------------- Another of the odm data bases is for the SRC-controlled daemons, SRCsubsys, which has some interesting fields, for example odmget -q subsysname=httpd SRCsubsys odmget -q subsysname=routed SRCsubsys or odmget -q subsysname=rpc.mountd SRCsubsys is where the default command arguments show cmdargs = "-q" which is what /local/lib/alminst/scripts/other changes via chssys -s routed -a "-q" It's interesting that the normal configuration for sendmail has the -bd -q30m options specified in /etc/rc.tcpip, but those options aren't in the cmdargs field of the SRCsubsys odm database. >>> This results in an error message when you simply say >>> startsrc -s sendmail >>> You can fix this ommission with a >>> chssys -s sendmail -a "-bd -q30m" >>> command. It USED to be true that startsrc -s sendmail got an error message, but with AIX 4.3.3, is no longer the case. They evidently fixed sendmail. ---------------------------------------------------------------------- Normally a system has a default route defined in the ODM, but when Mike went to lizard one day to change the default route from 10.224.88.1 to 10.224.88.2, the ODM didn't have a default route. The smitty mktcpip command gave him en0 lizard inet0 changed Method error (/usr/lib/methods/chgif): 0514-068 Cause not known. ifconfig: A system call received a parameter that is not valid. 0821-223 chgif: Cannot get records from CuAt. 0821-229 chgif: ifconfig command failed. The status of"en0" Interface in the current running system is uncertain. mktcpip: Problem with command: chdev, return code = 1 and a odmget -q 'name=inet0 AND attribute=route' CuAt command, which normally gives you CuAt: name = "inet0" attribute = "route" value = "net,,0,10.224.88.2" type = "R" generic = "DU" rep = "s" nls_index = 0 returned nothing. To fix this, from jasper (or some other machine where things were ok), I cd aixnotes odmget -q 'name=inet0 AND attribute=route' CuAt > CuAt.route Then on lizard, I odmadd /u/jasper/aixnotes/CuAt.route This seemed to add the correct entry to the ODM ok, but I still got the same error when trying to change the default route, so something else is needed here. Maybe a reboot? I dunno. I gave up.