MCPcopy Create free account

hub / github.com/DingGuodong/LinuxBashShellScriptForOps / functions

Functions1,705 in github.com/DingGuodong/LinuxBashShellScriptForOps

↓ 1 callersFunctionprintPurple
(text)
functions/others/ui/console/pyPrintColorToConsoleOnLinux.py:83
↓ 1 callersFunctionprintRed
(text)
functions/others/ui/console/pyPrintColorToConsoleOnLinux.py:43
↓ 1 callersFunctionprintRed
(mess)
functions/others/ui/console/pyPrintColorToConsoleOnWindows.py:200
↓ 1 callersFunctionprintSkyBlue
(mess)
functions/others/ui/console/pyPrintColorToConsoleOnWindows.py:192
↓ 1 callersFunctionprintWhite
(mess)
functions/others/ui/console/pyPrintColorToConsoleOnWindows.py:224
↓ 1 callersFunctionprintWhiteBlack
(mess)
functions/others/ui/console/pyPrintColorToConsoleOnWindows.py:232
↓ 1 callersFunctionprintWhiteBlack_2
(mess)
functions/others/ui/console/pyPrintColorToConsoleOnWindows.py:240
↓ 1 callersFunctionprintYellow
(text)
functions/others/ui/console/pyPrintColorToConsoleOnLinux.py:63
↓ 1 callersFunctionprintYellow
(mess)
functions/others/ui/console/pyPrintColorToConsoleOnWindows.py:216
↓ 1 callersFunctionprintYellowRed
(mess)
functions/others/ui/console/pyPrintColorToConsoleOnWindows.py:248
↓ 1 callersFunctionprint_conns_by_proc_pid
(pid)
functions/string/statisticsanalyse/pyNetstatStatistic.py:27
↓ 1 callersMethodprint_failed
(self)
functions/net/icmp/another-ping.py:229
↓ 1 callersFunctionprint_first_last_line
(path)
functions/file/getFileLastLine.py:35
↓ 1 callersFunctionprint_header
Print system-related info, above the process list.
functions/system/top.py:129
↓ 1 callersFunctionprint_letters_table
()
functions/string/get-position-of-letter.py:52
↓ 1 callersFunctionprint_some_times_ts
()
functions/others/scheduler/sched-quick-start.py:46
↓ 1 callersMethodprint_start
(self)
functions/net/icmp/another-ping.py:191
↓ 1 callersMethodprint_success
(self, delay, ip, packet_size, ip_header, icmp_header)
functions/net/icmp/another-ping.py:210
↓ 1 callersFunctionprint_tree
(parent, tree, indent='')
functions/system/pstree.py:38
↓ 1 callersMethodprint_unknown_host
(self, e)
functions/net/icmp/another-ping.py:198
↓ 1 callersFunctionprinter_watchdog
()
projects/WindowsSystemOps/Services/pyAutoResetPrinterWin32.py:132
↓ 1 callersFunctionprocess_more_than_one_not_fixed_para_with_key
(num, *args, **kwargs)
functions/options/simpleSysArgsExamples.py:23
↓ 1 callersFunctionprocess_more_than_one_not_fixed_para_without_key
(num, *args)
functions/options/simpleSysArgsExamples.py:19
↓ 1 callersFunctionprocess_one_fixed_para
(num)
functions/options/simpleSysArgsExamples.py:15
↓ 1 callersFunctionpull
()
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyFabricAndStrictCapistrano.py:207
↓ 1 callersFunctionput_file_over_ssh
Upload file to remote host using SSH sample sftp, scp with paramiko :param src: :param dst: :return:
projects/backupOps/python-backup-mysql-and-files.py:78
↓ 1 callersFunctionput_file_over_ssh
Upload file to remote host using SSH sample sftp, scp with paramiko :param src: :param dst: :return:
projects/backupOps/MySQL/backup-mysql-to-remote-over-ssh.py:175
↓ 1 callersFunctionput_file_to_ftp
(ftp, src, dst)
functions/net/tcp/sftp/py-ftps-client-ops.py:93
↓ 1 callersFunctionquery_dns_rr
query ip address of given domain name :param qname: domain name :param rdtype: A, CNAME, MX, TXT, NS, SRV, ... :param nameserver:
functions/net/dns/query-dns-rr.py:30
↓ 1 callersFunctionquery_dns_rr
(qname, rdtype="A", nameserver="8.8.8.8", debug=False)
functions/net/tcp/http/pyCheckWebsitesStatus.py:77
↓ 1 callersFunctionreadDataIntegrity
(filename)
functions/security/checkDataIntegrity.py:109
↓ 1 callersFunctionread_from_filesystem_storage
()
functions/string/genSerializedUniqueNumber.py:61
↓ 1 callersFunctionread_meta
(filename)
functions/string/py-tail-following-filename.py:61
↓ 1 callersFunctionreceive_one_ping
receive the ping from the socket.
functions/net/icmp/py-ping.py:142
↓ 1 callersFunctionreceive_one_ping
Receive the ping from the socket.
functions/net/icmp/python-ping.py:154
↓ 1 callersMethodreceive_one_ping
Receive the ping from the socket. timeout = in ms
functions/net/icmp/another-ping.py:420
↓ 1 callersFunctionredis_conn_qt
(host, port, db=0, password=None, show_reason=False)
functions/nosql/cache/pyRedisConnectivityQuickTest.py:32
↓ 1 callersFunctionrefresh_window
Print results on screen by using curses.
functions/system/iotop.py:145
↓ 1 callersFunctionrefresh_window
Print stats on screen.
functions/system/nettop.py:109
↓ 1 callersFunctionrefresh_window
Print results on screen by using curses.
functions/system/top.py:180
↓ 1 callersFunctionremakeDataIntegrity
(filename)
functions/security/checkDataIntegrity.py:119
↓ 1 callersFunctionremove
(path, ending, recursive=False)
functions/locale_i18n/always-using-unicode.py:60
↓ 1 callersFunctionremove_biz_type
(company_name)
functions/string/convert-chinese-to-pinyin.py:47
↓ 1 callersFunctionremove_file
(path)
projects/WindowsSystemOps/Filesystem/remove-backup-files-to-keep-disk-usable.py:105
↓ 1 callersFunctionrender_file
render "nginx-install-update.sh", replace old versions with latest versions :param versions: tuple or list which has 4 items :return:
projects/LinuxSystemOps/SoftwareManagement/nginx/get_nginx_resoures.py:201
↓ 1 callersFunctionrenew_and_update_conn
renew ipconfig of connection name :return:
projects/WindowsSystemOps/Services/pyResetOpenVPNServiceWhenNetworkIsDown.py:65
↓ 1 callersFunctionreplace_gbk_file_content
(path)
projects/WindowsSystemOps/Software/Microsoft/IIS/replace-multilines.py:155
↓ 1 callersFunctionrequest_ip_port_80
request a url with redirect :return:
functions/net/tcp/http/request-web-server-and-get-title.py:52
↓ 1 callersFunctionrequests_post_example_1
()
functions/net/tcp/http/pythonHTTPSOps_requests.py:60
↓ 1 callersFunctionresetColorToDarkWhite
()
functions/others/ui/console/pyPrintColorToConsoleOnWindows.py:101
↓ 1 callersFunctionreset_network_interface_card
reset NIC(Network Interface Card) adapter :return:
projects/WindowsSystemOps/Services/pyResetOpenVPNServiceWhenNetworkIsDown.py:74
↓ 1 callersFunctionreset_printer
Note: administrator privilege is required this function do three things: 1. stop Print Spooler service 2. delete all job files 3
projects/WindowsSystemOps/Services/resetPrinterSpoolerService.py:41
↓ 1 callersFunctionreset_ssh_public_host_key
First job to run Reset ssh public host key after clone from one same virtual machine template Repeat do this will disable ssh connect bet
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/ProvisionDockerEngineByFabric.py:154
↓ 1 callersFunctionreset_ssh_public_host_key
First job to run Reset ssh public host key after clone from one same virtual machine template Repeat do this will disable ssh connect bet
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyLinuxHostsSSHKeyInitialization.py:150
↓ 1 callersMethodrestart
Restart the daemon
projects/PythonDaemon/pydaemon.py:155
↓ 1 callersFunctionrestart_openvpn_service
restart service named "OpenVPNService" :return:
projects/WindowsSystemOps/Services/pyResetOpenVPNServiceWhenNetworkIsDown.py:55
↓ 1 callersFunctionrestart_service
(service_name='TermService')
projects/WindowsSystemOps/Services/pyRestartExchangeServices.py:149
↓ 1 callersFunctionretrieve_data_by_pyodbc
()
functions/nosql/database/sqlserver/retrieve-data-from-sql-server.py:83
↓ 1 callersFunctionrollback_code
Rolls back to the previously deployed version
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyFabricAndCapistrano.py:255
↓ 1 callersFunctionrollback_code
Rolls back to the previously deployed version
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyFabricAndStrictCapistrano.py:319
↓ 1 callersFunctionrun
(pid, verbose=False)
functions/system/procinfo.py:147
↓ 1 callersFunctionrun
(command, capture_stdout=False, suppress_stdout=False)
functions/system/command/pyRunSystemCommand.py:62
↓ 1 callersFunctionrun
(command)
functions/system/command/runSystemCommand.py:45
↓ 1 callersMethodrun
(self)
projects/PythonDaemon/pydaemon2.py:24
↓ 1 callersMethodrun
You should override this method when you subclass Daemon. It will be called after the process has been daemonized by start() or resta
projects/PythonDaemon/pydaemon.py:162
↓ 1 callersFunctionrun_ascii_command
()
functions/system/command/pyRunPowershellCommand.py:34
↓ 1 callersFunctionrun_command
run system command by subprocess.Popen in silent :param executable: executable command :return: return_code, stdout, stderr
projects/LinuxSystemOps/Services/service-starter.py:262
↓ 1 callersFunctionrun_command
(executable, use_sudo=True)
projects/LinuxSystemOps/AutoDevOps/Ansible/pyAnsibleGatheringFacts.py:171
↓ 1 callersFunctionrun_command
run system command by subprocess.Popen in silent :param executable: executable command :return: return_code, stdout, stderr
projects/WindowsSystemOps/Filesystem/compress-backup-files.py:143
↓ 1 callersFunctionrun_command
(executable)
projects/backupOps/MySQL/backup-mysql-to-remote-over-ssh.py:94
↓ 1 callersFunctionrun_command_over_ssh
execute command on remote host over SSH :param executable: :return:
projects/backupOps/MySQL/backup-mysql-to-remote-over-ssh.py:101
↓ 1 callersFunctionrun_service
()
projects/WindowsSystemOps/Software/pyDistributeFileAndConf/pyInstallZabbixAgentWin.py:159
↓ 1 callersFunctionrun_unicode_command
when command or script contains chinese characters, we should use the -EncodedCommand parameter to avoid encoding issue 当命令或脚本中包含中文字符时,应该
functions/system/command/pyRunPowershellCommand.py:63
↓ 1 callersFunctionsample_data
()
projects/LinuxSystemOps/AutoDevOps/Ansible/pyAnsibleGatheringFacts.py:147
↓ 1 callersMethodsaveBrief
(content, save_dir, name, speed_time)
functions/net/tcp/http/spider/pySpiderSeleniumPhantomjs.py:157
↓ 1 callersFunctionsaveDataIntegrity
(data, filename)
functions/security/checkDataIntegrity.py:100
↓ 1 callersMethodsaveIcon
(self, url, save_dir, name)
functions/net/tcp/http/spider/pySpiderSeleniumPhantomjs.py:137
↓ 1 callersMethodsaveImages
(self, images, name)
functions/net/tcp/http/spider/pySpiderSeleniumPhantomjs.py:122
↓ 1 callersFunctionsave_picture_from_weixin
save picture to local :param link: URL link :type link: str :param index: number :type index: int :return: None :rtype: N
functions/string/html/python-get-resource-from-weixin-mp.py:70
↓ 1 callersFunctionscan_host_ssh_public_key
Third and last job to run scan all host's public key, then inject to /root/.ssh/authorized_keys :return:
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/ProvisionDockerEngineByFabric.py:193
↓ 1 callersFunctionscan_host_ssh_public_key
Third and last job to run scan all host's public key, then inject to /root/.ssh/authorized_keys :return:
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyLinuxHostsSSHKeyInitialization.py:189
↓ 1 callersFunctionscan_port
(ip)
functions/net/tcp/port/getOpenedPortsOnRemoteHost.py:45
↓ 1 callersFunctionscan_port_alive
(ip)
functions/net/tcp/ssh/pySshPortScanner.py:54
↓ 1 callersFunctionscan_ssh_port_alive
()
functions/net/tcp/ssh/pySshPortScanner.py:98
↓ 1 callersFunctionscp_files
Remote Backup: send backups to remote host :return:
projects/backupOps/python-backup-mysql-and-files.py:141
↓ 1 callersFunctionscp_files
Remote Backup: send backups to remote host :return:
projects/backupOps/MySQL/backup-mysql-to-remote-over-ssh.py:228
↓ 1 callersMethodself_trust
(self)
functions/net/tcp/ssh/pySettingSSHTrust.py:164
↓ 1 callersMethodsend
该方法不同于企业微信机器人,此方法是将信息通过企业微信管理后台中"应用管理"中创建的"应用", 发送给该应用中的成员,成员名称使用该成员在企业微信中的账号名(并非显示名称),账号名可以在企业微信后台查到 :return: :rtype
projects/WeChatOps/pySendMessageByWeChatWithoutSQL/sendMessageByWeChatApi.py:152
↓ 1 callersMethodsend
该方法不同于企业微信机器人,此方法是将信息通过企业微信管理后台中"应用管理"中创建的"应用", 发送给该应用中的成员,成员名称使用该成员在企业微信中的账号名(并非显示名称),账号名可以在企业微信后台查到 :return: :rtype
functions/monitor/send_message/send-zabbix-alert-msg-to-weixin-work.py:162
↓ 1 callersFunctionsend_message
(access_token, title, content, mobile, enable_at_all=False)
functions/monitor/send_message/pySendMessageByDingTalk.py:54
↓ 1 callersFunctionsend_one_ping
Send one ping to the given >dest_addr<.
functions/net/icmp/py-ping.py:176
↓ 1 callersFunctionsend_one_ping
Send one ping to the given >dest_addr<.
functions/net/icmp/python-ping.py:182
↓ 1 callersMethodsend_one_ping
Send one ICMP ECHO_REQUEST
functions/net/icmp/another-ping.py:380
↓ 1 callersMethodsender_config
:param content: :type content: :param to_user: 成员名称使用该成员在企业微信中的账号名(并非显示名称),账号名可以在企业微信后台查到 :type to_user: str
projects/WeChatOps/pySendMessageByWeChatWithoutSQL/sendMessageByWeChatApi.py:121
↓ 1 callersMethodsender_config
:param content: text: 消息内容,最长不超过2048个字节,注意:主页型应用推送的文本消息在微信端最多只显示20个字(包含中英文) :type content: :param to
functions/monitor/send_message/send-zabbix-alert-msg-to-weixin-work.py:124
↓ 1 callersFunctionsendmail
(send_from, send_to, subject, text, files=None, cc=None)
functions/net/tcp/email/sendEmailWithAttachments.py:50
↓ 1 callersFunctionsetNameServer
(server=None)
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/fabfile.py:190
↓ 1 callersFunctionsetRemoteDesktopPortNumber
(port)
projects/WindowsSystemOps/Software/Microsoft/pyRemoteDesktopOps.py:64
↓ 1 callersFunctionset_current
Sets the current directory to the new release
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyFabricAndCapistrano.py:226
↓ 1 callersFunctionset_current
Sets the current directory to the new release
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyFabricAndStrictCapistrano.py:273
← previousnext →901–1,000 of 1,705, ranked by callers