How To Delete Multiple Routing Entries - ODM
How To Delete Multiple Routing Entries - ODM
topic=4
CuAt:
name = "inet0"
attribute = "route"
value = "net,-hopcount,0,,0,192.168.0.1"
type = "R"
generic = "DU"
rep = "s"
nls_index = 0
CuAt:
name = "inet0"
attribute = "route"
value = "net,-hopcount,0,,0,192.168.0.2"
type = "R"
generic = "DU"
rep = "s"
nls_index = 0
If there are more than one, you need to remove the excess route:
# chdev -l inet0 -a delroute="net,-hopcount,0,,0,192.168.0.2"
Method error (/usr/lib/methods/chginet):
0514-068 Cause not known.
0821-279 writing to routing socket: The process does not exist.
route: not in table or multiple matches
0821-207 chginet: Cannot add route record to CuAt.
CuAt:
name = "inet0"
attribute = "route"
value = "net,-hopcount,0,,0,192.168.0.1"
type = "R"
generic = "DU"
rep = "s"
nls_index = 0
# cat /tmp/mailgeorge
1 of 5 3/7/2016 7:02 PM
AIX Health Check - ODM h p://www.aixhealthcheck.com/blog?topic=4
errnotify:
en_name="mailgeorge"
en_persistenceflg=1
en_method="errpt -a -l $1|mail -s \"errpt: $9\" [email protected]"
# odmadd /tmp/mailgeorge
Description
OPERATOR NOTIFICATION
User Causes
ERRLOGGER COMMAND
Recommended Actions
REVIEW DETAILED DATA
Detail Data
MESSAGE FROM ERRLOGGER COMMAND
My coffee is cold
Clear the error log again (because we logged a fake test-entry in the error
report):
# errclear 0
Watch your email. You should receive the same error report entry in your
email.
By the way, you can delete this from the ODM like this:
2 of 5 3/7/2016 7:02 PM
AIX Health Check - ODM h p://www.aixhealthcheck.com/blog?topic=4
1. Before making any changes, collect host logs to document the current
configuration. At a minimum, save the following: inq, lsdev -Cc disk,
lsdev -Cc adapter, lspv, and lsvg
2. Shutdown the application(s), unmount the file system(s), and varyoff all
volume groups except for rootvg. Do not export the volume groups.
# varyoffvg <vg_name>
# /etc/rc.agent stop
# lsdev -Cc disk -Fname | grep power | xargs -n1 rmdev -dl
8. Confirm with lsdev -Cc disk that there are no EMC hdisks or
hdiskpowers.
9. Remove all Fiber driver instances:
3 of 5 3/7/2016 7:02 PM
AIX Health Check - ODM h p://www.aixhealthcheck.com/blog?topic=4
# rmdev -l fcsX
# emc_cfgmgr
or
(x being each adapter instance which was rebuilt). Skip this part if no
PowerPath.
13. Configure all EMC devices into PowerPath:
# powermt config
# powermt display
# powermt display dev=all
# lsdev -Cc disk
# /etc/rc.agent start
Topics: AIX, LVM, ODM↑
If that doesn't work, try this: (in the example below logical volume hd7 is
used). Save the ODM information of the logical volume:
4 of 5 3/7/2016 7:02 PM
AIX Health Check - ODM h p://www.aixhealthcheck.com/blog?topic=4
If you mess things up, you can allways use the following command to restore
the ODM information:
# odmadd /tmp/[filename]
Then, remove the device entry of the logical volume in the /dev directory (if
present at all).
5 of 5 3/7/2016 7:02 PM