Getting the follwoing error while removing the Static route on AIX

Hi,
Getting the follwoing error while removing the Static route on AIX
Method error (/usr/lib/methods/chginet):
0514-009 Cannot delete an object from the device
configuration database.

Could some one please help me

Thanks,
Sv
Srinivas_VengalaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

coredatarecoveryCommented:
are you doing this as root?

Use smit to change routes in aix. It's the easiest way to change them and hard to screw things up.
Srinivas_VengalaAuthor Commented:
yes, I have loged in as root.

and I am tring to do this using smitty only. smitty netstat->remove a static route-->and entered the destination ip and gateway.

same error.....
woolmilkporcCommented:
Hi,

it seems that you're trying to remove a route using "chginet" (which is called by "smitty") that has not been added using chginet, but with "route add ..."

chginet adds its route definition to the ODM database ("device configuration database") when creating a route and consequently tries to remove this definition when deleting a route.
"route add .." and "route delete ..." on the other hand don't use the ODM (they create  kind of "volatile" definitions which will not survive a reboot), thus "chginet" will fail trying to remove such a route definition completely.

Are you sure that the route you tried to remove is still present? "chginet" is a two-step process, and although the second step ("remove from ODM") will fail, the first step ("remove from running configuration residing in memory") usually succeeds. Please check!

If the route still exists and if I'm right with my above guess remove it using "route delete ..."
The further parameters depend on whether it's a route to a network or to a host.
The general syntax is

route delete [-net|-host] gateway

wmp
Your Guide to Achieving IT Business Success

The IT Service Excellence Tool Kit has best practices to keep your clients happy and business booming. Inside, you’ll find everything you need to increase client satisfaction and retention, become more competitive, and increase your overall success.

Srinivas_VengalaAuthor Commented:
I tried the following

route delete -net <destination host> gateway

but getting the error as "writing to routing socket: No such process"
woolmilkporcCommented:
Sorry, the correct syntax of the "route" command is

route delete [-net|-host] [i]destination[/i]
woolmilkporcCommented:
Saw your last comment too late!

If you use <destination host> the correct option is "-host", not "-net"!

And the message you're getting could also indicate that the route is already gone! Did you verify that it's still there?
Srinivas_VengalaAuthor Commented:
still same error....

i have tried route delete -net <destination>

error is : writing to routing socket: No such process

I guess this is not a persistent one, could you please guide me in that way

Thanks,
VS
Srinivas_VengalaAuthor Commented:
Hi WMP,

I tried using -host as well, but same error....

Yes, in netstat -rn the IP is showing up.

Thanks,
VS
woolmilkporcCommented:
Please post the relevant line of the "netstat -r" output!
Srinivas_VengalaAuthor Commented:
The relevent line in netstat -r is
10.45.48/20        10.45.17.1        UGS       0     15005 en1      -      -   =>
woolmilkporcCommented:
route delete -net 10.45.48
Srinivas_VengalaAuthor Commented:
Still same error
 =>route delete -net 10.45.48
writing to routing socket: No such process
woolmilkporcCommented:
Should have worked!

Maybe your route has been created for this specific interface only?

Try

route delete -net 10.45.48 -interface en1

And what does the line following the posted one say?
Srinivas_VengalaAuthor Commented:
Here is the message:
route delete -net 10.45.48 -interface en1
en1: bad value

woolmilkporcCommented:
OK,

so it's indeed a route by gateway only and not by interface.

Last resort: Specify the netmask!

route delete -net 10.45.48/20


coredatarecoveryCommented:
that should do it for certain.
Srinivas_VengalaAuthor Commented:
I am still getting the same error message....
=>route delete -net 10.45.48/20
writing to routing socket: No such process
woolmilkporcCommented:
This should definitely not happen!

I hate to say, but if it's indeed a non-persistent route and if you urgently must get rid of it - reboot!

wmp

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
woolmilkporcCommented:
Any news regarding this issue?

Cheers

wmp
Srinivas_VengalaAuthor Commented:
Didn't get a chance to check, will let you know.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.