Operating System - HP-UX
1834604 Members
4000 Online
110069 Solutions
New Discussion

Re: how to set ifadminStatus=down on unused NIC (HP-UX 11i-v1)

 
Antonio Cardoso_1
Trusted Contributor

how to set ifadminStatus=down on unused NIC (HP-UX 11i-v1)

I've some unused NICs on a rp4440, and found no way to set the ifAdminStatus=down on them.
- ifconfig down doesn't make it
- SAM disable NIC also not.

Any way to do it?

thanks.
6 REPLIES 6
Robert-Jan Goossens
Honored Contributor

Re: how to set ifadminStatus=down on unused NIC (HP-UX 11i-v1)

Hi Antonio,

Is your server in run-level 3?

Could please post the complete commands you used?

Please also post the output of

# lanscan

# ioscan -fnClan

regards,
Robert-Jan
Antonio Cardoso_1
Trusted Contributor

Re: how to set ifadminStatus=down on unused NIC (HP-UX 11i-v1)

Yes, run-level is 3:
# who -r
. run-level 3 Apr 10 18:38 3 0 S

results of ioscan/lanscan (lan3 and 4 not used):

# ioscan -fnClan
Class I H/W Path Driver S/W State H/W Type Description
========================================================================
lan 0 0/1/2/0 igelan CLAIMED INTERFACE HP A6825-60101 PCI 1000Base-T Adapter
lan 1 0/6/1/0/4/0 btlan CLAIMED INTERFACE HP A5506B PCI 10/100Base-TX 4 Port
/dev/diag/lan1 /dev/ether1 /dev/lan1
lan 2 0/6/1/0/5/0 btlan CLAIMED INTERFACE HP A5506B PCI 10/100Base-TX 4 Port
/dev/diag/lan2 /dev/ether2 /dev/lan2
lan 3 0/6/1/0/6/0 btlan CLAIMED INTERFACE HP A5506B PCI 10/100Base-TX 4 Port
/dev/diag/lan3 /dev/ether3 /dev/lan3
lan 4 0/6/1/0/7/0 btlan CLAIMED INTERFACE HP A5506B PCI 10/100Base-TX 4 Port
/dev/diag/lan4 /dev/ether4 /dev/lan4

isan:root # lanscan -v
-------------------------------------------------------------------------------
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
0/1/2/0 0x00306EF42EF6 0 UP lan0 snap0 1 ETHER Yes 119

Extended Station LLC Encapsulation
Address Methods
0x00306EF42EF6 IEEE HPEXTIEEE SNAP ETHER NOVELL

Driver Specific Information
igelan
-------------------------------------------------------------------------------
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
0/6/1/0/4/0 0x001185C76D30 1 UP lan1 snap1 2 ETHER Yes 119

Extended Station LLC Encapsulation
Address Methods
0x001185C76D30 IEEE HPEXTIEEE SNAP ETHER NOVELL

Driver Specific Information
btlan
-------------------------------------------------------------------------------
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
0/6/1/0/5/0 0x001185C76D31 2 UP lan2 snap2 3 ETHER Yes 119

Extended Station LLC Encapsulation
Address Methods
0x001185C76D31 IEEE HPEXTIEEE SNAP ETHER NOVELL

Driver Specific Information
btlan
-------------------------------------------------------------------------------
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
0/6/1/0/6/0 0x001185C76D32 3 UP lan3 snap3 4 ETHER Yes 119

Extended Station LLC Encapsulation
Address Methods
0x001185C76D32 IEEE HPEXTIEEE SNAP ETHER NOVELL

Driver Specific Information
btlan
-------------------------------------------------------------------------------
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
0/6/1/0/7/0 0x001185C76D33 4 UP lan4 snap4 5 ETHER Yes 119

Extended Station LLC Encapsulation
Address Methods
0x001185C76D33 IEEE HPEXTIEEE SNAP ETHER NOVELL

Driver Specific Information
btlan
-------------------------------------------------------------------------------

thanks.

Re: how to set ifadminStatus=down on unused NIC (HP-UX 11i-v1)

Antonio,

Why do you care that adminstatus is up?

I wouldn't normally worry about this.

ifconfig is an IP level tool, not a physical interface level tool, so the most you can do there is tear down the IP stack on the interface with:

ifconfig lanX unplumb

obviously replacing lanX with a specific interface.

I suspect the disable interface function in SAM just does that as well.

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Robert-Jan Goossens
Honored Contributor

Re: how to set ifadminStatus=down on unused NIC (HP-UX 11i-v1)

Hi,

# ifconfig lan3 0.0.0.0

# ifconfig lan3 unplumb

# ifconfig lan4 0.0.0.0

# ifconfig lan4 unplumb

Regards,
Robert-Jan
Antonio Cardoso_1
Trusted Contributor

Re: how to set ifadminStatus=down on unused NIC (HP-UX 11i-v1)

All,
I'm looking at this status, because monitoring ifTable to generate some alarms, and I want to ignore administratively locked interfaces.

I get:
interfaces.ifTable.ifEntry.ifAdminStatus.1 = up(1)
interfaces.ifTable.ifEntry.ifAdminStatus.2 = up(1)
interfaces.ifTable.ifEntry.ifAdminStatus.3 = up(1)
interfaces.ifTable.ifEntry.ifAdminStatus.4 = up(1)
interfaces.ifTable.ifEntry.ifAdminStatus.5 = up(1)
interfaces.ifTable.ifEntry.ifAdminStatus.6 = up(1)
interfaces.ifTable.ifEntry.ifOperStatus.1 = up(1)
interfaces.ifTable.ifEntry.ifOperStatus.2 = up(1)
interfaces.ifTable.ifEntry.ifOperStatus.3 = up(1)
interfaces.ifTable.ifEntry.ifOperStatus.4 = down(2)
interfaces.ifTable.ifEntry.ifOperStatus.5 = down(2)
interfaces.ifTable.ifEntry.ifOperStatus.6 = up(1)

Re: how to set ifadminStatus=down on unused NIC (HP-UX 11i-v1)

Antonio,

So you're using some sort of SNMP tool to collect the info?

If that's the case you should be able to just use a snmpset to set ifAdmin to DOWN (as long as you have a suitable set community name defined in snmpd.conf)

HTH

Duncan

I am an HPE Employee
Accept or Kudo