Operating System - Tru64 Unix
1748280 Members
4117 Online
108761 Solutions
New Discussion юеВ

Device name change...

 
SOLVED
Go to solution
Seungchan,Mook
Occasional Contributor

Device name change...

Hi all.
I have a 3 NIC.(Tru64 5.1B)
Two is tu device, other is fta.
I want to change name fta0 to fta1.
Can I change device name?
Thanks.

#hwmgr -show com
...
44: opcwp22 r---- none pci0slot14
45: opcwp22 ----- none Unconfigured-device-()-at-pci0slot14
47: opcwp22 r---- none fta0
...
6 REPLIES 6
Ivan Ferreira
Honored Contributor

Re: Device name change...

I think that you cant. You can rename disk devices, tape devices, etc, (Mostly, fc or scsi devices showed by hwmgr v d) but you cannot do that for network cards.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Muthukumar_5
Honored Contributor

Re: Device name change...

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=534814

hth.
Easy to suggest when don't know about the problem!
Han Pilmeyer
Esteemed Contributor

Re: Device name change...

Yes, you can change that name. Here's an example:

stocli3# hwmgr -show name

HWID: NAME HOSTNAME PERSIST TYPE PERSIST AT
--------------------------------------------------------------------------------
...
344: mchan1 stocli3 CONTROLLER pci1 slot 2
n/a: mchan0 stocli3 CONTROLLER pci1 slot 5
...

stocli3# hwmgr -remove name -entry mchan0
stocli3# hwmgr -remove name -entry mchan1
stocli3# hwmgr -add name -component_name mchan -component_num 0 -component_typ CONTROLLER -parent_name pci -parent_num 1 -slot 2
stocli3# hwmgr -show name

HWID: NAME HOSTNAME PERSIST TYPE PERSIST AT
--------------------------------------------------------------------------------
...
n/a: mchan0 stocli3 CONTROLLER pci1 slot 2
...
Seungchan,Mook
Occasional Contributor

Re: Device name change...

Thanks for your answer.
But I know this way.
hwmgr name can deleted, But hwmgr component can't deleted.

HWID : 47 is orignal (deleted, But recreate after reboot)
HWID : n/a is new (hwmgr -add command).

# hwmgr -show name

HWID: NAME HOSTNAME PERSIST TYPE PERSIST AT
--------------------------------------------------------------------------------
33: ata0 opcwp22 BUS pci0 slot 13
47: fta0 opcwp22 CONTROLLER pci0 slot 14
n/a: fta1 opcwp22 CONTROLLER pci0 slot 14


#hwmgr -show com
HWID: HOSTNAME FLAGS SERVICE COMPONENT NAME
-----------------------------------------------
44: opcwp22 r---- none pci0slot14
47: opcwp22 r---- none fta0


# ifconfig -a
fta0: flags=8c22

lo0: flags=100c89
inet 127.0.0.1 netmask ff000000 ipmtu 4096

sl0: flags=10

tu0: flags=c63
inet 130.1.1.22 netmask ffff0000 broadcast 130.15.255.255 ipmtu 1500

tu1: flags=c63
inet 192.168.2.101 netmask ffffff00 broadcast 192.168.2.255 ipmtu 1500

#

I think that problem is follow error.
Component is never deleted.
# hwmgr -delete com -id 47
hwmgr: Error (95) Cannot start operation.




Han Pilmeyer
Esteemed Contributor
Solution

Re: Device name change...

The "hwmgr: Error (95) Cannot start operation." message typically means that there is some pending operation on it. This could be one of the failing hwmgr commands that you gave before.

The commands I gave should work just fine. I just verified it with a network device. And it worked fine. Here's the log:

octo1# ifconfig -a
ee0: flags=c63

ee1: flags=1000c63
inet 10.1.0.1 netmask ffffff00 broadcast 10.1.0.255 ipmtu 1500

ics0: flags=1100063
inet 10.0.0.1 netmask ffffff00 broadcast 10.0.0.255 ipmtu 7000

lo0: flags=100c89
inet 127.0.0.1 netmask ff000000 ipmtu 4096

sl0: flags=10

tu0: flags=c63
inet 172.16.30.151 netmask ffff0000 broadcast 172.16.255.255 ipmtu 1500

tu1: flags=c63

tun0: flags=80

tun1: flags=80

octo1# hwmgr -show name

HWID: NAME HOSTNAME PERSIST TYPE PERSIST AT
-------------------------------------------------------------------------------- 990: ata0 octo1 BUS pci0 slot 13
1001: ee1 octo1 CONTROLLER pci1 slot 5
1000: ee0 octo1 CONTROLLER pci1 slot 4
1004: emx2 octo1 BUS pci0 slot 17
1002: emx0 octo1 BUS pci0 slot 16
993: mchan0 octo1 CONTROLLER pci0 slot 14
995: pci1 octo1 BUS pci0 slot 15
958: pci0 octo1 BUS nexus
1005: scsi3 octo1 CONTROLLER emx2 slot 0
1003: scsi2 octo1 CONTROLLER emx0 slot 0
992: scsi1 octo1 CONTROLLER ata0 slot 1
991: scsi0 octo1 CONTROLLER ata0 slot 0
989: tu1 octo1 CONTROLLER pci0 slot 11
988: tu0 octo1 CONTROLLER pci0 slot 9
octo1# hwmgr -remove name -entry tu1
octo1# hwmgr -add name -component_name tu -component_num 2 -component_type CONTROLLER -parent_name pci -parent_num 0 -slot 11
octo1# hwmgr -show name

HWID: NAME HOSTNAME PERSIST TYPE PERSIST AT
-------------------------------------------------------------------------------- 990: ata0 octo1 BUS pci0 slot 13
1001: ee1 octo1 CONTROLLER pci1 slot 5
1000: ee0 octo1 CONTROLLER pci1 slot 4
1004: emx2 octo1 BUS pci0 slot 17
1002: emx0 octo1 BUS pci0 slot 16
993: mchan0 octo1 CONTROLLER pci0 slot 14
995: pci1 octo1 BUS pci0 slot 15
958: pci0 octo1 BUS nexus
1005: scsi3 octo1 CONTROLLER emx2 slot 0
1003: scsi2 octo1 CONTROLLER emx0 slot 0
992: scsi1 octo1 CONTROLLER ata0 slot 1
991: scsi0 octo1 CONTROLLER ata0 slot 0
n/a: tu2 octo1 CONTROLLER pci0 slot 11
988: tu0 octo1 CONTROLLER pci0 slot 9

And after a reboot of the system:

octo1# hwmgr -show name

HWID: NAME HOSTNAME PERSIST TYPE PERSIST AT
-------------------------------------------------------------------------------- 990: ata0 octo1 BUS pci0 slot 13
1001: ee1 octo1 CONTROLLER pci1 slot 5
1000: ee0 octo1 CONTROLLER pci1 slot 4
1004: emx2 octo1 BUS pci0 slot 17
1002: emx0 octo1 BUS pci0 slot 16
993: mchan0 octo1 CONTROLLER pci0 slot 14
995: pci1 octo1 BUS pci0 slot 15
958: pci0 octo1 BUS nexus
1005: scsi3 octo1 CONTROLLER emx2 slot 0
1003: scsi2 octo1 CONTROLLER emx0 slot 0
992: scsi1 octo1 CONTROLLER ata0 slot 1
991: scsi0 octo1 CONTROLLER ata0 slot 0
2668: tu2 octo1 CONTROLLER pci0 slot 11
988: tu0 octo1 CONTROLLER pci0 slot 9
Seungchan,Mook
Occasional Contributor

Re: Device name change...

Thanks for your answer.
I changed device name after kerner rebuild.
Have a nice day.