Skip to content

Latest commit

 

History

History
488 lines (485 loc) · 24.5 KB

PSSFrameCommand.md

File metadata and controls

488 lines (485 loc) · 24.5 KB

Pss framework console command group

1.command struct

The PSS framework supports instruction sets that operate on the internal health of the framework.
These instructions include framework plug-in management, worker thread state management, framework basic parameter query, connection number list, server port management, IP management, and so on.

Command format:

ezample:
b freeeyes ShowServerInfo -a&
b: The output is output as a binary result, and if you want to output as a text structure, you can use **( for example, under telnet )
freeeyes: Username, this is required, the PSS framework will verify the user, specific verification settings in **main.xml **(set username) and **consolecommand.xml **( set corresponding permissions ) have permissions to be executed.
ShowServerInfo: Command name.
-a: Command params.
&: Command terminator is required.

##2.Support command introduction (Returns as a binary result output)

Command sample Explain Returns the data structure
ShowServerInfo -a Obtain the basic operating parameters of the framework Type Explain
uint16Return command ID
uint16Server ID
uint8Server name length
charServer name
uint8Server version code length
charServer version code
uint16Server logic plugin count
uint16Server work thread count
uint16Server packet version
uint8Server word order large or small, 0 small 1 large
uint8Server word sequence 0 host sequence 1 network sequence
ShowModule -a View all the plug-ins that the framework is running Type Explain
uint16Return command ID
uint32Number of plug-ins currently running
uint8Plug - in filename length
charPlug - in file name
uint8Plug - in name length
charPlug - in name
uint8Plug - in path length
charPlug - in path
uint8Plug - in startup parameter length
charPlug - in startup parameter
uint8Plug - in description length
charPlug - in description
uint8Plug - in load time length
charPlug - in load time
uint8Plug - in current running status word 0 is ok
uint32Plug - in currently running error code 0 is ok
LoadModule ./,TcpTest.so,Param Load a plug - in, tcptest.so is the file name,. / is the path of the plug-in on the server, param is the plug-in startup parameter Type Explain
uint16Return command ID
uint8Plugin startup result 0 succeeded 1 failed
UnLoadModule TestTcp Uninstall a plug - in, testtcp is the plug-in 's own name ( note that it is not a file name, it is a name set inside the plug - in ) Type Explain
uint16Return command ID
uint8Plugin startup result 0 succeeded 1 failed
ReLoadModule TestTcp Reload a plug - in, testtcp is the plug-in 's own name ( note that it is not a file name, it is a name set inside the plug - in ) Type Explain
uint16Return command ID
uint8Plugin startup result 0 succeeded 1 failed
ClientCount -cp Current number of client connections Type Explain
uint16Return command ID
uint32Total number of current client connections
uint32Current total number of client connection pool remaining
uint32Total number of current client connection pools
CommandInfo 0x1000 Query the specified message information, 0x1000 for message hexadecimal id Type Explain
uint16Return command ID
uint32Number of message
uint16Current number of message
uint16Message id
uint32Message execute counts
uint64Total time that Message has been performed,In seconds
CommandTimeout -a Query all timeout message lists Type Explain
uint16Return command ID
uint32Timeout message count
uint16Timeout message ID
uint32Timeout message occurrence
uint32Timeout message run times
CommandTimeoutclr -a Clear the timeout message list Type Explain
uint16Return command ID
uint8Execution state 0 succeeded
CommandDataLog -a save CommandDataLog Type Explain
uint16Return command ID
uint8Execution state 0 succeeded
WorkThreadState -s View worker thread status Type Explain
uint16Return command ID
uint8Work thread count
uint8Work thread ID
uint32The last run time of the worker thread, in the format 1970-01-01 to the current second value
uint32Worker thread start time, in the format 1970-01-01 to the current seconds
uint8Current state of worker thread
uint32工Total number packets currently processed by work thread
uint16The message id that that worker thread is currently run
uint16Average packet processing time, in milliseconds, for worker threads
uint16Number of packets processed by worker threads in the last minute
ConnectClient -a Information for the current TCP client link Type Explain
uint16Return command ID
uint32Total number of current connections
uint8Connection name string length
charConnection name string, the default is the connection of the client IP, can also be set
uint32Connect ID
uint32Connect recv packet counts
uint32Connect send packet counts
uint32Connect recv packet sizes
uint32Connect send packet sizes
uint32Connection creation time, in the format 1970-01-01 to the current second value
uint32Connection active time in seconds
uint32Total number of connection receive queue packets
uint64Total connection reception elapsed time
uint64Total elapsed time for connection transmission
UDPConnectClient -a Information for the current UDP client link Type Explain
uint16Return command ID
uint32Total number of current connections
uint8Connection name string length
charConnection name string, the default is the connection of the client IP, can also be set
uint32Connect ID
uint32Connect recv packet counts
uint32Connect send packet counts
uint32Connect recv packet sizes
uint32Connect send packet sizes
uint32Connection creation time, in the format 1970-01-01 to the current second value
uint32Connection active time in seconds
uint32Total number of connection receive queue packets
uint64Total connection reception elapsed time
uint64Total elapsed time for connection transmission
CloseClient 1 The client connection 1 that closes the specified connectid is connectid Type Explain
uint16Return command ID
uint8Execution state 0 succeeded
ForbiddenIP -c 127.0.0.2 -t 1 -s 30 Disable the specified IP connection server, - c is IP, - t is type0 temporary 1 permanent - s is the blocking time, in seconds Type Explain
uint16Return command ID
uint8Execution state 0 succeeded
ShowForbiddenIP -a View the banned IP list Type Explain
uint16Return command ID
uint32banned IP counts
uint8banned IP length
charbanned IP
uint8banned IP type 0 temporary 1 permanent
uint32Block start time, in the format 1970-01-01 to the current seconds
uint32Blocked seconds
LiftedIP 127.0.0.2 Unblock IP Type Explain
uint16Return command ID
uint8Execution state 0 succeeded
ServerConnectTCP -a Inter - server communication ( TCP ) Type Explain
uint16Return command ID
uint32Total number of connections between servers
uint8Remote server IP length
charRemote server IP
uint8Connection current state 0 is connected 1 is not connected
uint32Connect ID
uint32Connect recv packet counts
uint32Connect send packet counts
uint32Connect recv packet sizes
uint32Connect send packet sizes
uint32Connection creation time, in the format 1970-01-01 to the current second value
uint32Connection active time in seconds
uint32Total number of connection receive queue packets
uint64Total connection reception elapsed time
uint64Total elapsed time for connection transmission
ServerConnectUDP -a Inter - server communication ( UDP ) Type Explain
uint16Return command ID
uint32Total number of connections between servers
uint8Remote server IP length
charRemote server IP
uint8Connection current state 0 is connected 1 is not connected
uint32Connect ID
uint32Connect recv packet counts
uint32Connect send packet counts
uint32Connect recv packet sizes
uint32Connect send packet sizes
uint32Connection creation time, in the format 1970-01-01 to the current second value
uint32Connection active time in seconds
uint32Total number of connection receive queue packets
uint64Total connection reception elapsed time
uint64Total elapsed time for connection transmission
ShowCurrProcessInfo -a View the current CPU, memory, and network health status of the server framework Type Explain
uint16Return command ID
uint32Cpu operation ratio
uint32Current number of memory bytes occupied
uint8Flow switch status, 0 is off, 1 is on
uint32Server network throughput for the current minute(in)
uint32Server network throughput for the current minute(out)
ShowAllCommand -a View all message run information Type Explain
uint16Return command ID
uint32Total number of message
uint8Module name length
charModule name
uint16Message ID
uint32Total current message processing
uint32Total current message processing time, in milliseconds
ReConnectServer -s 172.0.10.1 Reconnect remote connection - s IP address of the remote server Type Explain
uint16Return command ID
uint8Execution state 0 succeeded
SetDebug -s 0 Set debug file output status -s 0 on 1 off Type Explain
uint16Return command ID
uint8Execution state 0 succeeded
ShowDebug -a Query debug file output status -s 0 on 1 off Type Explain
uint16Return command ID
uint80 open 1 close
GetConnectIPInfo -s 1 The relevant IP information 1 obtain through that connectid is the connectid Type Explain
uint16Return command ID
uint160The corresponding IP information 1 was found and no corresponding IP information was found
uint8Current IP description length
charCurrent IP description
uint32IP port
GetLogInfo -a Get current log information Type Explain
uint16Return command ID
uint32Number of logs
uint32Current log level
uint16Log ID
uint8Server name length
charServer name
uint8Log name length
charLog name
uint8Log output type 0 write file 1 write screen
SetLogLevel -l 1 Set the log level -1 for level 1 or higher logs are not output Type Explain
uint16Return command ID
uint8Execution state 0 succeeded
GetWorkThreadAI -a Get AI configuration information for thread Type Explain
uint16Return command ID
uint16Current number of threads
uint32Work thread ID
uint8AI status 0 close 1 open
uint32Message packet dispose timeout seconds
uint32work thread timeout,in seconds
uint32work thread timeout counts limited
uint32stop message dispose time,in second
GetWorkThreadTO -a Gets all timeout packet information for thread Type Explain
uint16Return command ID
uint16Current number of threads
uint32Work thread ID
uint16timeout message ID
uint32Timeout current time, in seconds since 1970-01-01
uint32Command execution time, in milliseconds
SetWorkThreadAI -i 1,1000,2000,10 Set the configuration information for threadai, 1 to on, 1000 processing time limit 2000 check time limit 10 times to stop Type Explain
uint16Return command ID
uint8Execution state 0 succeeded
GetNickNameInfo -n 127.0.0.1 Obtain client IP information through IP alias Type Explain
uint32IP counts
uint32Corresponding commandid
uint8IP length
charIP
uint32IP port
uint8Alias length
charAlias
uint8Does the front connection log open 0 not open 1 open
SetConnectLog -n 1 -f 0 Set connection log on state - n is connectid - f is 0 on 1 off Type Explain
uint16Return command ID
uint8Execution state 0 succeeded
SetMaxConnectCount -n 20000 Sets the maximum number of connections allowed for the current server - n is the number of connections Type Explain
uint16Return command ID
uint8Execution state 0 succeeded
AddListen -i 127.0.0.1 -p 10003 -t 1 -n 1 Dynamically open a new listening port -i ip -p port -t 1 tcp 2 udp -n corresponding packet parseid on the server Type Explain
uint16Return command ID
uint8Execution state 0 succeeded
DelListen -i 127.0.0.1 -p 10003 -t 1 Dynamically shut down the listening port -i ip -p port -t 1 tcp 2 udp on the server Type Explain
uint16Return command ID
uint8Execution state 0 succeeded
ShowListen -a View existing open server port information Type Explain
uint16Return command ID
uint32Number of listeners
uint8IP length
charIP
uint32IP port
TestFileStart -f a.xml Execute file pressure measurement instruction - f specifies the pressure measurement file name Type Explain
uint16Return command ID
uint8Execution state 0 succeeded
TestFileStop -a Stop file pressure measurement Type Explain
uint16Return command ID
uint8Execution state 0 succeeded
SetTrackIP -i 127.0.0.1 -c 5 Dyes the data for the specified client IP, -i is the client IP, -c is the number of dyed packets Type Explain
uint16Return command ID
uint8Execution state 0 succeeded
SetTrackCommand -i 0x1000 -c 5 Dyes the data for the specified message id, -i message id in the format 0xxxxxx, -c is the number of dyed packets Type Explain
uint16Return command ID
uint8Execution state 0 succeeded,1 failed
GetTrackCommandInfo -a View the message execution information for the current dye Type Explain
uint16Return command ID
uint8Current number of message
uint16messageID
uint16Number of currently dyed message ( processed )
uint16Total number of dyes required for message