Thursday, October 4, 2012

Working with the ODM

Altering the ODM Safely
 
Before running any ODM command, it is recommended that you save the original copies of the Cu* files, like this:

cd /etc/objrepos
cp CuAt cuat.old
cp CuDep cudep.old
cp CuDv cudv.old
cp CuDvDr cudvdr.old
cp CuVPD cuvpd.old
 
Viewing your ODM content
  
There are some files at /etc/objrepos that have important information you may want to know


odmget CuAt > /tmp/cuat
odmget CuDep > /tmp/cudep
odmget CuDv > /tmp/cudv
odmget CuDvDr > /tmp/cudvdr
odmget CuVPD > /tmp/cuvpd  
odmget PdPathAt > /tmp/pdpath.backup

Removing a device that couldn't be removed by the rmdev command

DEVICE=et2
odmdelete -q "name = $DEVICE" -o CuAt
odmdelete -q "parent = $DEVICE" -o CuDv
odmdelete -q "name = $DEVICE" -o CuDv
odmdelete -q "name = $DEVICE" -o CuDep
odmdelete -q "dependency = $DEVICE" -o CuDep
odmdelete -q "value1 = $DEVICE" -o CuDvDr
odmdelete -q "value3 = $DEVICE" -o CuDvDr

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.