pysap.SAPIGS module¶
- class pysap.SAPIGS.SAPIGS(_pkt, /, *, function=b'', listener=b'ListenerX', hostname=b'pysap', id=b'1234', padd1=b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', todo1=1, padd2=b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', todo2=8, padd3=b'\x00\x00\x00\x00\x00\x00', eye_catch=b'TransMagic', padd4=b'\x00\x00', codepage=b'4103', offset_content=b'', packet_size=b'')[source]¶
Bases:
PacketSAP Internet Graphic Server call packet
This packet is used for the Remote IGS Function Call protocol.
- aliastypes = [<class 'pysap.SAPIGS.SAPIGS'>, <class 'scapy.packet.Packet'>]¶
- fields_desc: List[AnyField] = [<StrFixedLenPaddedField (SAPIGS).function>, <StrFixedLenPaddedField (SAPIGS).listener>, <StrFixedLenPaddedField (SAPIGS).hostname>, <StrFixedLenPaddedField (SAPIGS).id>, <StrFixedLenPaddedField (SAPIGS).padd1>, <ByteField (SAPIGS).todo1>, <StrFixedLenPaddedField (SAPIGS).padd2>, <ByteField (SAPIGS).todo2>, <StrFixedLenPaddedField (SAPIGS).padd3>, <StrFixedLenField (SAPIGS).eye_catch>, <StrFixedLenPaddedField (SAPIGS).padd4>, <StrFixedLenField (SAPIGS).codepage>, <StrFixedLenPaddedField (SAPIGS).offset_content>, <StrFixedLenPaddedField (SAPIGS).packet_size>]¶
- static http(host, port, interpreter, files=None, tls=False, method='POST')[source]¶
HTTP request for IGS
This method build a http(s) request for IGS HTTP Multiplexer service instead of Remote IGS Function Call
- Parameters:
host (
string) – remote host to connect toport (
int) – remote port to connect tointerpreter (
string) – interpreter of function to callfiles (
dict) – list of files to send in case of multipart/form-datatls (
bool) – using https or notmethod (
string) – HTTP request method to use
- Returns:
the HTTP request to send as raw
- Return type:
string- Raises:
ImportError – if the requests library can’t be imported
- class pysap.SAPIGS.SAPIGSTable(_pkt, /, *, version_label=b'VERS', version=b' 1.0', table_name_label=b'TBNM', table_name=b'', table_line_label=b'TBLN', table_line=b'', table_width_label=b'TBWD', table_width=b'', table_column_label=b'TBCL', table_column=b'', column_name_label=b'CLNM', column_name=b'', column_width_label=b'CLWD', column_width=b'')[source]¶
Bases:
PacketSAP IGS table description
Mandatory for RFC call type. This describes table name/width/length where content will be stored.
- static add_entry(t_name, t_line, t_width, t_column, c_name, c_width, **kwargs)[source]¶
Add an entry into Table description
This where custom content is stored Entry must be write from the end like : ‘ abcd’
- Parameters:
t_name (
string) – name of tablet_line (
int) – number of linet_width (
int) – width of tablet_column (
int) – number of columnc_name (
string) – name of columnc_width (
int) – width of column
- Returns:
SAP IGS Table
- Return type:
- aliastypes = [<class 'pysap.SAPIGS.SAPIGSTable'>, <class 'scapy.packet.Packet'>]¶
- fields_desc: List[AnyField] = [<StrFixedLenPaddedField (SAPIGSTable).version_label>, <StrFixedLenPaddedField (SAPIGSTable).version>, <StrFixedLenPaddedField (SAPIGSTable).table_name_label>, <StrFixedLenPaddedField (SAPIGSTable).table_name>, <StrFixedLenPaddedField (SAPIGSTable).table_line_label>, <StrFixedLenPaddedField (SAPIGSTable).table_line>, <StrFixedLenPaddedField (SAPIGSTable).table_width_label>, <StrFixedLenPaddedField (SAPIGSTable).table_width>, <StrFixedLenPaddedField (SAPIGSTable).table_column_label>, <StrFixedLenPaddedField (SAPIGSTable).table_column>, <StrFixedLenPaddedField (SAPIGSTable).column_name_label>, <StrFixedLenPaddedField (SAPIGSTable).column_name>, <StrFixedLenPaddedField (SAPIGSTable).column_width_label>, <StrFixedLenPaddedField (SAPIGSTable).column_width>]¶
- pysap.SAPIGS.igs_req_adm = {1: 'ADM:REGPW', 2: 'ADM:UNREGPW', 3: 'ADM:REGIP', 4: 'ADM:UNREGIP', 5: 'ADM:FREEIP', 6: 'ADM:ILLBEBACK', 7: 'ADM:ABORT', 8: 'ADM:PING', 9: 'ADM:PONG', 10: 'ADM:SHUTDOWNIGS', 11: 'ADM:SHUTDOWNPW', 12: 'ADM:CHECKCONSUMER', 13: 'ADM:FREECONSUMER', 14: 'ADM:GETLOGFILE', 15: 'ADM:GETCONFIGFILE', 16: 'ADM:GETDUMP', 17: 'ADM:DELETEDUMP', 18: 'ADM:INSTALL', 19: 'ADM:SWITCH', 20: 'ADM:GETVERSION', 21: 'ADM:STATUS', 22: 'ADM:STATISTIC', 23: 'ADM:STATISTICNEW', 24: 'ADM:GETSTATCHART', 25: 'ADM:SIM'}¶
IGS Request Administrator function
- pysap.SAPIGS.igs_req_interpreter = {1: 'ZIPPER', 2: 'IMGCONV', 3: 'RSPOCONNECTOR', 4: 'XMLCHART', 5: 'CHART', 6: 'BWGIS', 7: 'SAPGISXML'}¶
IGS Request Interpreter