Module shellutils :: Class VIOShell
[hide private]

Class VIOShell

source code

Shell --+    
        |    
UnixShell --+
            |
           VIOShell

Shell for Virtual I/O Server ( part of the IBM eServer p5 Advanced Power Virtualization hardware feature)

Instance Methods [hide private]
 
__prepareCmd(self, cmdLine)
Prepare passed command line to run as padmin user
source code
 
execIoscliCmd(self, cmdLine, *args, **kwargs)
Run command as padmin user, using command ioscli
source code
 
_getOsType(self)
Get OS type
source code
 
_getOsVersion(self)
Get OS version
source code

Inherited from UnixShell: __init__, fsObjectExists, getAvailableEngLocale, getShell, getShellStatusVar, isSudoConfigured, isWinOs, rebuildPath, safecat, setSessionLocale

Inherited from UnixShell (private): _execute, _getOsLanguageDiscoverer

Inherited from Shell: canCopyFile, closeClient, createOutputHandler, determineOsLanguage, execAlternateCmds, execAlternateCmdsList, execCmd, execCmdAsBytes, executeCommandAndDecode, executeCommandAndDecodeByMatcher, getCharsetName, getClientType, getCommandSeparator, getCredentialId, getDefaultCommandTimeout, getLastCmdReturnCode, getOsLanguage, getOsType, getOsVersion, getPort, getShellCmdSeperator, getXML, isWindowsWithCygwin, resolveHost, resolveIp, useCharset

Class Variables [hide private]

Inherited from UnixShell: ERROR_CODE_PREFIX, ONLY_SUDO_POLICY, ONLY_SU_POLICY, SUDO_SU_POLICY

Inherited from Shell: NO_CMD_RETURN_CODE_ERR_NUMBER

Method Details [hide private]

_getOsType(self)

source code 

Get OS type

Raises:
  • Exception - Failed getting machine OS type.
Overrides: Shell._getOsType

_getOsVersion(self)

source code 

Get OS version

Raises:
  • Exception - Failed getting OS version.
Overrides: Shell._getOsVersion