Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing adapter while busy 1

Status
Not open for further replies.

TSch

Technical User
Jul 12, 2001
557
DE
Hi folks,

I'm trying to run the following commands on our network adapters:

chdev -l <adapter> -a chksum_offload=no
chdev -l <adapter> -a large_send=no

The AIX always tells me that the changes cannot be made because the adapters are busy ...

Of course they are, because I'm connected via ssh and the machine is a production system ;-)

Question is, whether there's another way of changing these settings without having to free up the adapters. Something that's only going to be effective after a system reboot, so that I can change the settings, perform a reboot and everything's fine. Maybe somewhere in the ODM ??

Any ideas ?

Thanks in advance !

Regards
Thomas
 
To my knowledge i don't think that you can do that! you need to stop the adapter activity.

Regards,
Khalid
 
There's no need to mess around in the ODM manually,

use
chdev [red]-P[/red] -l <adapter> -a chksum_offload=no -a large_send=no

and let chdev set ODM for you.


HTH,

p5wizard
 
Or in smit/smitty you can also set the field "Apply change to DATABASE only" to yes: (scroll all the way down)

Code:
              Change / Show Characteristics of an Ethernet Adapter

Type or select values in entry fields.
Press Enter AFTER making all desired changes.

[MORE...8]                                              [Entry Fields]
  Minimum Small Buffers                              [512]                   +#
  Maximum Small Buffers                              [2048]                  +#
  Maximum Medium Buffers                             [128]                   +#
  Maximum Medium Buffers                             [256]                   +#
  Minimum Large Buffers                              [24]                    +#
  Maximum Large Buffers                              [64]                    +#
  Minimum Huge Buffers                               [24]                    +#
  Maximum Huge Buffers                               [64]                    +#
  Transmit Copy Buffers                              [32]                    +#
  Transmit Copy Buffer Size                          [65536]                 +#
  Trace Debug Enable                                  no                     +
  Checksum Offload Enabled                            yes                    +
  Apply change to DATABASE only                       [red]yes[/red]                    +
[BOTTOM]

F1=Help             F2=Refresh          F3=Cancel           F4=List
F5=Reset            F6=Command          F7=Edit             F8=Image
F9=Shell            F10=Exit            Enter=Do

              Change / Show Characteristics of an Ethernet Adapter

Type or select values in entry fields.
Press Enter AFTER making all desired changes.

[MORE...8]                                              [Entry Fields]
  Minimum Small Buffers                              [512]                   +#
  Maximum Small Buffers                              [2048]                  +#
  Maximum Medium Buffers                             [128]                   +#
  Maximum Medium Buffers                             [256]                   +#
  Minimum Large Buffers                              [24]                    +#
  Maximum Large Buffers                              [64]                    +#
  Minimum Huge Buffers                               [24]                    +#

(F6)
  +--------------------------------------------------------------------------+#
  |                           SHOW COMMAND STRING                            |#
  |                                                                          |#
  | Press Enter or Cancel to return to the                                   |
  | application.                                                             |
  |                                                                          |
[B|   chdev  -l 'ent0' -a trace_debug='no' -a chksum_offload='yes' [red]'-P'[/red]      |
  |                                                                          |
F1| F1=Help                 F2=Refresh              F3=Cancel                |
F5| F8=Image                F10=Exit                Enter=Do                 |
F9+--------------------------------------------------------------------------+


HTH,

p5wizard
 
A star for p5wizard and an addendum:

The changes won't become active until the next time the adapter is configured (in the cfgmgr sense), typically at (re)boot, but the stout of heart can detach the interface and use a rmdev/mkdev combo.

- Rod


IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

A Simple Code for Posting on the Web
 
Don't detach the interface while you're connected through it, of course. :)

sawing.gif


- Rod
 
They could always put it (the commands to off the adapter and bring it back) in an "at" job, disconnect and let it run. preferably when no one else is connected of course.

this option is much faster than a reboot.
 
Rod, thanks for the star and thanks for your addendum. As it was already in OP's question, I did not elaborate on the rmdev-mkdev/cfgmgr necessity afterwards to make the change "visible"

TSch said:
...without having to free up the adapters. Something that's only going to be effective after a system reboot...

As for the workaround without a reboot, I prefer to have another way in: (virtual) console or another (virtual) ethernet interface...


HTH,

p5wizard
 
if you have another interface configured with (another) IP in the system you can login that one and do the chdev similiar like below url describes media_speed change on the adapter....


of course you can do the change from a console opened on HMC or other - it will not disturb your session.


I remember that I also did changes on the only adapter in the system being remotely loged in. Then I prepared script like in the url and executed it as a "at" job. I was not touching my session where "at" was run so I even didn't lost the session after during chdev...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top