public String showSwitchWwn() throws NetworkDeviceControllerException {
  SSHPrompt[] prompts={SSHPrompt.POUND,SSHPrompt.GREATER_THAN,SSHPrompt.MDS_CONFIG,SSHPrompt.MDS_CONFIG_IVR_ZONE,SSHPrompt.MDS_CONFIG_IVR_ZONESET};
  StringBuilder buf=new StringBuilder();
  sendWaitFor(MDSDialogProperties.getString("MDSDialog.show.wwn.switch.cmd"),defaultTimeout,prompts,buf);
  String[] lines=getLines(buf);
  String[] regex={MDSDialogProperties.getString("MDSDialog.show.wwn.switch.match")};
  String switchWwn=null;
  String[] groups=new String[10];
  for (  String line : lines) {
    int index=match(line,regex,groups);
switch (index) {
case 0:
      switchWwn=groups[0];
    break;
}
if (switchWwn != null) {
  break;
}
}
return switchWwn;
}

public String showSwitchWwn ( ) throws NetworkDeviceControllerException { SSHPrompt [ ] prompts = { SSHPrompt . POUND , SSHPrompt . GREATER_THAN , SSHPrompt . MDS_CONFIG , SSHPrompt . MDS_CONFIG_IVR_ZONE , SSHPrompt . MDS_CONFIG_IVR_ZONESET } ; StringBuilder buf = new StringBuilder ( ) ; sendWaitFor ( MDSDialogProperties . getString ( "MDSDialog.show.wwn.switch.cmd" ) , defaultTimeout , prompts , buf ) ; String [ ] lines = getLines ( buf ) ; String [ ] regex = { MDSDialogProperties . getString ( "MDSDialog.show.wwn.switch.match" ) } ; String switchWwn = null ; String [ ] groups = new String [ 10 ] ; for ( String line : lines ) { int index = match ( line , regex , groups ) ; switch ( index ) { case 0 : switchWwn = groups [ 0 ] ; break ; } if ( switchWwn != null ) { break ; } } return switchWwn ; }
get switch ' s wwn
