This function performs a SNMP get request Location of target host SNMP request version Directory server SNMP hostname or IP address Directory server SNMP port number SNMP OID to query SNMP community/context SNMP user used for v3 requests SNMP security level used for v3 requests Path to the SNMP security file Expected status of the SNMP request Check if the values returned for the OIDs are correct Perform a walk request Expected return code value. Default value is 0 Wildcard 'noCheck' to not check the RC '%s %s' % (STAFCmd, STAFCmdParams) { 'name' : 'SNMP Get' , 'command' : '%s/bin/java' % JAVA_HOME , 'arguments' : '%s %s' % (STAFCmd, STAFCmdParams) , 'location' : location , 'path' : '%s/snmp' % remote.java , 'envCmd' : env , 'expectedRC' : expectedRC } STAXResult This function performs a SNMP Set request Location of target host SNMP request version Directory server SNMP hostname or IP address Directory server SNMP port number SNMP OID to query SNMP community/context SNMP user used for v3 requests SNMP security level used for v3 requests Path to the SNMP security file Expected status of the SNMP request Check if the values returned for the OIDs are correct Expected return code value. Default value is 0 Wildcard 'noCheck' to not check the RC '%s %s' % (STAFCmd, STAFCmdParams) { 'name' : 'SNMP Set' , 'command' : '%s/bin/java' % JAVA_HOME , 'arguments' : '%s %s' % (STAFCmd, STAFCmdParams) , 'location' : location , 'path' : '%s/snmp' % remote.java , 'envCmd' : env , 'expectedRC' : expectedRC } STAXResult This function performs a SNMP Set request Location of target host Directory server SNMP port number Directory server SNMP port number SNMP trap community Number of expected traps File to which the output should be written Expected return code value. Default value is 0 Wildcard 'noCheck' to not check the RC Known issue. Corresponds to an issue number. '%s %s' % (STAFCmd, STAFCmdParams) { 'name' : 'SNMP Trap Listener' , 'command' : '%s/bin/java' % JAVA_HOME , 'arguments' : '%s %s' % (STAFCmd, STAFCmdParams) , 'location' : location , 'path' : snmpPath , 'envCmd' : env , 'outputFile' : outputFile , 'expectedRC' : expectedRC , 'knownIssue' : knownIssue } STAXResult This function restart the SNMP Connection Handler using dsconfig Location of target host Pathname to installation root Directory server hostname or IP address Directory server admin port number Bind DN Bind password Expected return code value. Default value is 0. Wildcard 'noCheck' to not check the RC Known issue. Corresponds to an issue number. { 'name' : 'Disable the SNMP Connection Handler' , 'location' : location , 'command' : STAFCmd , 'arguments' : '%s --set enabled:false' % STAFCmdParams , 'expectedRC': expectedRC } { 'name' : 'Enable the SNMP Connection Handler' , 'location' : location , 'command' : STAFCmd , 'arguments' : '%s --set enabled:true' % STAFCmdParams , 'expectedRC': expectedRC , 'knownIssue': knownIssue } STAXResult This function compare SNMP Values Location of target host Directory server hostname or IP address Directory server SNMP port number SNMP community/context Index for the out/in bytes check Known issue. Corresponds to an issue number. Expected return code value. Default value is 0 Wildcard 'noCheck' to not check the RC 'get the current mib values' { 'location' : location , 'snmpVersion' : '1', 'snmpHost' : snmpHost , 'snmpPort' : snmpPort , 'snmpCommunity' : snmpCommunity , 'snmpOIDs' : '' , 'snmpStatus' : 'noError' , 'snmpWalk' : 'True' , 'expectedRC' : expectedRC } 'result: %s' % result { 'expectedString' : 'ERROR' , 'returnString' : result , 'knownIssue' : knownIssue , 'expectedRC' : 1 } STAXResult This function compare SNMP Values Location of target host File containing output Timer duration Return code value of the timer Issue id. Corresponds to an issue number. 'Process TrapListener ended before timer duration: %s' \ % timerDuration location 'FS' 'DELETE ENTRY %s CONFIRM' % outputFile { 'issueId' : issue } 'Process TrapListener still running after timer duration: %s' \ % timerDuration location 'FS' 'GET FILE %s' % outputFile 'Output:%s' % STAFResult location 'FS' 'DELETE ENTRY %s CONFIRM' % outputFile 'STAF %s FS GET FILE %s failed with RC=%s Result=%s' % \ (location, outputFile, RC, STAFResult) 'Delete event from the trap listener' { 'location' : location , 'name' : 'SNMPTrapListener/Ready' } 'Delete event from the trap listener' { 'location' : location , 'name' : 'SendTrap/Complete' }