LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-21-2011, 10:30 AM   #1
dann_radkov
Member
 
Registered: Sep 2011
Posts: 52

Rep: Reputation: Disabled
Error in cmd completion - opcode 121


Hey Folks,
To go around this error related to a network driver I am making a script that will remove A and install B kmod.rpm mentioned below.
The script works fine. My question is can I avoid a reboot and only issue a network restart instead.So far I have tried it and it didn`t work.Can you propose anything else.Only a complete reboot solves my case:

-----
#Here is the actual script
#!/bin/bash
lsmod | grep be2net
ifconfig eth1 down
ifconfig eth0 down
#or i can do a /etc/init.d/network stop but its all the same really
modprobe -r be2net
rpm -e kmod-hp-be2net-2.104.225.7-1.x86_64 ------------>>A
rpm -ivh /var/tmp/usr/src/redhat/RPMS/x86_64/kmod-hp-be2net-4.0.359.0-2.x86_64.rpm->>B
modprobe be2net
lsmod | grep be2net
/etc/init.d/network restart
#Here unless i reboot i get the old module loaded

If i only reset the network and issue an
ethtool -i eth0
driver:be2net
version : 2(old one from A)
and the error:
Error in cmd completion - opcode 121
still shows up

Whereas if I reboot the system:
ethtool -i eth1
driver:be2net
version : 4(new one from B)
no errors whatsoever
 
Old 12-21-2011, 06:09 PM   #2
adam999
Member
 
Registered: Sep 2006
Posts: 95

Rep: Reputation: 18
try
Quote:
ifdown eth0
ifdown eth1
then insert the module and do a /etc/init.d/network[ing?] restart
 
Old 12-22-2011, 01:50 AM   #3
dann_radkov
Member
 
Registered: Sep 2011
Posts: 52

Original Poster
Rep: Reputation: Disabled
Thats what I am doing above. Do you want to say to insert the module with insmod or?

*** Thread has been up for a while now. I will close it soon if i do not receive any news to save the admins some effort

Last edited by dann_radkov; 01-02-2012 at 03:54 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] usb-storage: Status code -121 error j_kubik Linux - Hardware 5 06-24-2011 01:22 PM
Error in using YUM instal cmd johnsonkoilraj Linux - Newbie 1 04-10-2008 10:57 PM
QT-Error Major opcode: 53 & 62 & 70 & 154 Spraygun Programming 2 03-26-2007 06:27 AM
Error on Toshiba Satellite 310CDS (hdc: failed opcode) polemon Linux - Hardware 1 03-14-2007 08:29 AM
Kylix 3 Code Completion error J3N7iL Linux - Software 0 11-23-2005 07:19 PM


All times are GMT -5. The time now is 10:12 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration