|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.sysmgt.switchmgt.SwitchIdentifier
This class holds and collects identifing information about switch modules.
Field Summary | |
---|---|
static java.lang.String |
MGMT_APP_TELNET_INTERFACE
Switch System Management Application definition for Telnet |
static java.lang.String |
MGMT_APP_WEB_INTERFACE
Switch System Management Application definition for WebClient |
Constructor Summary | |
---|---|
protected |
SwitchIdentifier()
Internal instantiation method |
|
SwitchIdentifier(ChassisSubsystemInfo vpd,
java.lang.String sysObjectId,
java.lang.String[] clientServices)
External Instantiation |
Method Summary | |
---|---|
protected static java.lang.String[] |
breakDownMgmtParam(java.lang.String parm)
Break down a potential muilti-param string into its separate parts. |
static long |
getChassisId(long switchId)
Get the enclosing chassis's moid from a member switch moid |
long |
getChassisMoid()
ChassisSubsystemInfo - chassis Moid |
java.lang.String |
getFRU()
ChassisVPDAttributes - FRU |
java.lang.String |
getIPAddressString()
ChassisVPDAttributes - ip address |
int |
getLocationID()
ChassisSubsystemInfo - location/slot ID (1..4) |
java.lang.String |
getMACAddressString()
ChassisVPDAttributes - mac address |
java.lang.String |
getMachineTypeModel()
ChassisVPDAttributes - machine type model |
java.lang.String |
getManufacturer()
Get switch manufacturer property |
java.lang.String |
getMfgId()
ChassisVPDAttributes - manufacturing id (4 Characters) |
int |
getMfgVersionNumber()
ChassisVPDAttributes - switch manufacturer version number |
java.lang.String[] |
getMgtApplications()
Get switch management applications property |
long |
getMoid()
ChassisSubsystemInfo - switch Moid |
java.lang.String |
getName()
ChassisVPDAttributes - name |
java.lang.String |
getPartNumber()
ChassisVPDAttributes - part number |
int |
getPOSId()
ChassisVPDAttributes - machine type model |
java.lang.String |
getSerialNumber()
ChassisVPDAttributes - serial number |
java.lang.String[] |
getServices()
Get switch services property Switch services are used for binding tasks to managed objects and as a general means of identification |
int |
getSizeID()
ChassisSubsystemInfo - slot occupation count |
static SwitchIdentifier[] |
getSwitchDefinitions()
Retrieve switch property file definitions |
static SwitchIdentifier |
getSwitchIdentifier(long switchId)
Retrieve chassis switch identifier |
static SwitchIdentifier |
getSwitchIdentifier(long chassisId,
int switchSlot)
Retrieve chassis switch identifier |
java.lang.String |
getSysObjectId()
Get switch MIB2 SystemObjectID property |
java.lang.String |
getUniqueTypeId()
Get switch type identifier. |
java.lang.String |
getUUIDString()
ChassisVPDAttributes - uuid |
ChassisSubsystemInfo |
getVpd()
Get reference to the vpd data structure |
int |
getVPDId()
ChassisVPDAttributes - machine type model |
protected static void |
initializeSN()
Check for need todo lazy servicenode creation |
protected static boolean |
ipcSend(Command cmd)
IPC send method Create a ServiceNode for server connectivity |
boolean |
isOccupied()
ChassisSubsystemInfo - Is switch in slot |
protected static SMAppLauncher |
loadCustomMgtLauncher(java.lang.String qualifiedClassName)
Load an implementation of the SMAppLauncher custom module management class. |
static boolean |
loadSwitchMOAttributes(long switchId,
SwitchIdentifier sm)
Load switch managed object attribute set |
static boolean |
loadSwitchVpd(long chassisId,
int slot,
SwitchIdentifier sm)
Load switch subsystem vital product data |
static boolean |
loadSwitchVpd(long chassisId,
long switchId,
SwitchIdentifier sm)
Load switch subsystem vital product data |
static boolean |
loadSystemMgmtData(SwitchIdentifier sm)
Load switch system management definition data. |
protected void |
setMachineTypeModel(java.lang.String mtm)
ChassisVPDAttributes -- Set machine type model number |
protected void |
setManufacturer(java.lang.String manufacturer)
Set switch manufacturer property |
protected void |
setMfgId(java.lang.String mfgId)
ChassisVPDAttributes -- Set MfgId |
protected void |
setMgtApplications(java.lang.String[] mgtApplications)
Set switch management applications property |
protected void |
setName(java.lang.String name)
set the name |
void |
setPOSId(int x)
ChassisVPDAttributes - machine type model |
protected void |
setServices(java.lang.String[] services)
Set switch services property Switch services are used for binding tasks to managed objects and as a general means of identification |
protected void |
setSysObjectId(java.lang.String sysObjectId)
Set MIB2 SystemObjectID property |
protected void |
setUniqueTypeId(java.lang.String uniqueTypeId)
Set the unique switch id value. |
protected void |
setVpd(ChassisSubsystemInfo vpd)
Set the vpd data structure |
void |
setVPDId(int x)
ChassisVPDAttributes - machine type model |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String MGMT_APP_WEB_INTERFACE
public static final java.lang.String MGMT_APP_TELNET_INTERFACE
Constructor Detail |
protected SwitchIdentifier()
public SwitchIdentifier(ChassisSubsystemInfo vpd, java.lang.String sysObjectId, java.lang.String[] clientServices)
vpd
- ModuleVPDsysObjectId
- MIB2 system object IDclientServices
- Client service identifier listMethod Detail |
public static SwitchIdentifier getSwitchIdentifier(long switchId)
switchId
- Director switch managed object id
SwitchIdentifier
based on id match, else null
for failurepublic static SwitchIdentifier getSwitchIdentifier(long chassisId, int switchSlot)
chassisId
- Director chassis managed object idswitchSlot
- Switch slot/location in chassis (1..4)
SwitchIdentifier
else null
for failurepublic static SwitchIdentifier[] getSwitchDefinitions()
SwitchIdentifier[]
else null
for failurepublic ChassisSubsystemInfo getVpd()
protected void setVpd(ChassisSubsystemInfo vpd)
vpd
- Switch vpd data objectprotected void setName(java.lang.String name)
name
- protected void setManufacturer(java.lang.String manufacturer)
manufacturer
- Displayable switch manufacturerprotected void setUniqueTypeId(java.lang.String uniqueTypeId)
protected void setMfgId(java.lang.String mfgId)
mfgId
- Manufacture Id (4 Characters)protected void setMachineTypeModel(java.lang.String mtm)
mtm
- Machine type model valueprotected void setSysObjectId(java.lang.String sysObjectId)
protected void setServices(java.lang.String[] services)
services
- Client services definitionprotected void setMgtApplications(java.lang.String[] mgtApplications)
mgtApplications
- Switch management applicationspublic java.lang.String getManufacturer()
public java.lang.String getSysObjectId()
public java.lang.String getUniqueTypeId()
This value was created due to flux (via hardware development or whatever) which has occurred in MIB 2 sysObjectId, vpd manufacturer, and vpd machineTypemodel making them unsuitable as a long term mechanism of specific switch type identification.
public java.lang.String[] getServices()
public java.lang.String[] getMgtApplications()
public long getChassisMoid()
public int getLocationID()
public int getSizeID()
public boolean isOccupied()
public long getMoid()
public java.lang.String getUUIDString()
public java.lang.String getName()
public java.lang.String getFRU()
public java.lang.String getSerialNumber()
public java.lang.String getMfgId()
public int getVPDId()
public int getPOSId()
public void setVPDId(int x)
public void setPOSId(int x)
public java.lang.String getMachineTypeModel()
public java.lang.String getPartNumber()
public java.lang.String getMACAddressString()
public java.lang.String getIPAddressString()
public int getMfgVersionNumber()
protected static SMAppLauncher loadCustomMgtLauncher(java.lang.String qualifiedClassName)
SMAppLauncher
custom module management class.
qualifiedClassName
- Fully qualified SMAppLauncher
implementation
return instantiated custum module management class, null
for failureprotected static java.lang.String[] breakDownMgmtParam(java.lang.String parm)
The typical format will be as: qualifiedClassName arg1 arg2 arg3
parm
- Management sting including qualified management class and potential arguments
return Tokens from parm stringpublic static boolean loadSwitchMOAttributes(long switchId, SwitchIdentifier sm)
switchId
- switch managed object idsm
- switch-module identifier class container (object to update)
true
for success, false
for failurepublic static long getChassisId(long switchId)
switchId
- Director switch object identifier
public static boolean loadSwitchVpd(long chassisId, long switchId, SwitchIdentifier sm)
chassisId
- Director chassis object id which contains the switchswitchId
- Director switch object identifiersm
- Switch-module identifier class container
true
for success, false
for failurepublic static boolean loadSwitchVpd(long chassisId, int slot, SwitchIdentifier sm)
chassisId
- Director chassis object id which contains the switchslot
- Switch location in chassis (1..4)sm
- Switch-module identifier class container (object to update)
true
for success, false
for failurepublic static boolean loadSystemMgmtData(SwitchIdentifier sm)
sm
- Switch-module identifier class container (object to update)
object must have either the MIB2 SystemObjectID, MachineTypeModel, or services
populated for the method to complete successfully
true
for success, false
for failureprotected static final void initializeSN()
protected static final boolean ipcSend(Command cmd)
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |