Skip to main content

Netstat Command.

Geek Commands: -
Commands save you during application load test :)

netstat | findstr ESTABLISHED
netstat | findstr LISTEN
netstat | findstr CLOSE_WAIT
netstat | findstr TIME_WAIT

Showing PID used by Port
netstat –o | findstr $portnumber

Protocol statistics
You are working on Protocol statistics for either any of this protocol
(IPv4, IPv6, ICMPv4, ICMPv6, TCP or UDP)
netstat –s
netstat -s |Findstr Errors

Getting routing Information
This command will show us entire routing table.
netstat –r

Interface statistics: (sent and received details)
netstat-e

Getting Fully Qualified Domain Name of foreign address (remote host)
netstat –f

Finally finding port number for “Exe” or service This command can give you real time information about which exe is using which port and communicating on which foreign ip address.
Command: - netstat -v -b


Comments

Popular posts from this blog

"kerberos: the specified credentials were rejected by the server", "unreachable": true" Ansible

Hello Friends, I was getting following Error while deploying my Ansible script, Basically my credential were getting rejected by server. SSH password: PLAY [Playbook_Name] ***************************************************************02:00:30 TASK [Gathering Facts] *********************************************************02:00:30 fatal: [Server_Inventory_Name]: UNREACHABLE! => {"changed": false, "msg": "kerberos: the specified credentials were rejected by the server", "unreachable": true} PLAY RECAP *********************************************************************02:00:30 Server_Inventory_Name    : ok=0    changed=0    unreachable=1   failed=0  It was resolved using one additional parameter in Inventory  i.e  "ansible_winrm_server_cert_vaildation:ignore"

NBSUTIL commands

Frustrated with syntax finding hence decided to post all NBSTLUTIL related commands so people will not face same problem. Common SLP Related Commands Show EMM Image list of Images that were backed up to an SLP STU [ -I / -U ] nbstlutil list nbstlutil list –lifecycle <name> nbstlutil list –backupid <id_value> nbstlutil list -image_state <value> nbstlutil list -copy_state <value> nbstlutil list -frag_state <value> nbstlutil list –mediaid <media_id>_–state 3 Activate /Inactivate SLP operations nbstlutil inactive –lifecycle <lifecycle name> nbstlutil inactive –backupid <backupid> nbstlutil active –lifecycle <lifecycle name> nbstlutil active –backupid <backupid> Cancel pending operations on selected image nbstlutil cancel -backupid <backupid> nbstlutil cancel -lifecycle <lifecycle> Show status on Incomplete copies of Lifecycle Managed images nbstlutil stlilist –lifecycle <lifecycle name> nbstlutil stlil...

Configure Timeout and Reconnection Settings for Remote Desktop Services Sessions

Configure Timeout and Reconnection Settings for Remote Desktop Services Sessions On the RD Session Host server, open Remote Desktop Session Host Configuration. To open Remote Desktop Session Host Configuration, click  Start , point to  Administrative Tools , point to  Remote Desktop Services , and then click  Remote Desktop Session Host Configuration . Under  Connections , right-click the name of the connection, and then click  Properties . In the  Properties  dialog box for the connection, on the  Sessions  tab, select the following options as necessary: Select the  Override user settings  check box, and then set timeout settings for  End a disconnected session ,  Active session limit , and  Idle session limit . Select the  Override user settings  check box, and then select one of the following reconnection settings:  Disconnect from session  or  End session . Cli...