Blog Posts
Useful AIX 5.3 commands
Commands I’ve found using frequently. Change network adapter
|
1 |
smit mktcpip |
mktcpip[1]http://www-01.ibm.com/support/knowledgecenter/P8DEA/p8hcg/p8hcg_mktcpip.htm can be used itself in CLI. HA! Only 1 command! Notes & References[+] Notes & References ↑1 http://www-01.ibm.com/support/knowledgecenter/P8DEA/p8hcg/p8hcg_mktcpip.htm
Useful pfSense commands
Compiled list of pfsense commands that I use as my cheat sheet.
PFSense – won’t boot after power failure
Problem: I left on vacation and I left all my devices plugged in and online. During my absence the wonderful Florida power grid did it’s thing and intermittently decided to work. This brought my firewall down dirty and offline never to be seen again. Model: NetGate APU4 I had to […]
GUIDE and UniData structured files
GUIDE which can be run on the server that analyzes files, generates statistics and provides suggestions for optimizing file sizes and ensuring data integrity. While GUIDE is running, it will sit at the prompt, there’s no output while it’s working on true U2 files.
PFSense 503 – Service Not Available
Recently I attempted to log into a nanobsd pfsense 2.2.3 firewall webGUI. Was not having any issues with the firewall other than not being able to access the webGUI.
Error:
503 – Service Not Available
AIX 5.3 Performance Diagnostics
This is a list of useful AIX commands do diagnose performance issues with the host. TOPAS VMSTAT svmon -G GUIDE for filesystems NMON script and analyzing filemon – Performance statistics for files, logical/physical volumes and virtual memory segments fileplace – Placement of a file’s blocks within a file system lsps […]
Finding active ports using netstat
very simple. make a note of the sqlsrvr.exe PID from taskmanager then run this command:
netstat -ano | findstr *PID*
it will show TCP and UDP connections of your SQL server (including ports) standard is 1433 for TCP and 1434 for UDP
Useful Exchange Powershell Commands
Exchange 2007 Exchange 2007 view database sizes
|
1 |
Get-MailboxDatabase | foreach-object {add-member -inputobject $_ -membertype noteproperty -name mailboxdbsizeinGB -value ([math]::Round(([int64](get-wmiobject cim_datafile -computername $_.server -filter ('name=''' + $_.edbfilepath.pathname.replace("\","\\") + '''')).filesize / 1GB),2)) -passthru} | Sort-Object mailboxdbsizeinGB -Descending | format-table identity,mailboxdbsizeinGB |
List all AD users in the domain and export to CSV:
|
1 |
Get-ADUser -filter * -properties emailAddress | Select SamAccountName | Export-CSV c:\temp.csv -notype |
Exchange 2010 Check if database is mounted:
|
1 |
get-mailboxdatabase -status | format-table Name,Mounted |
Check database name/server/size.
|
1 |
Get-MailboxDatabase -Status | select ServerName,Name,DatabaseSize |
Display the existing state of the queue (exports)
|
1 |
get-mailboxexportrequest | get-mailboxexportrequeststatistics |
Display database that the user is a member of: […]
AIX 5.3 Kill Proc
I began receiving alerts that my CPU utilization was peaking 1.25. Obviously this was not common for my build and I began inspecting. I ran the first command
|
1 |
Ps -ef |
Output:
|
1 2 3 4 5 6 7 8 9 10 11 |
# ps -ef UID PID PPID C STIME TTY TIME CMD root 1 0 0 Mar 03 - 2:52 /etc/init root 86212 1 0 Mar 03 - 2:57 /APP/ud/bin/smm -t 60 root 94284 1 0 Mar 03 - 0:00 /usr/ccs/bin/shlap64 root 118898 1 0 Mar 03 - 16:59 /storis/ud/bin/sbcs -r root 122964 1 0 Mar 03 - 0:00 /usr/lib/errdemon root 135406 176260 0 Mar 03 - 0:00 /usr/sbin/rpc.lockd -d 0 root 139502 1 0 Mar 03 - 555:55 /usr/sbin/syncd 60 root 163958 1 0 Mar 03 - 4:50 /APP/ud/bin/cleanupd -m 10 -t 20 root 172122 1 0 Mar 03 - 0:08 /APP/ud/unishared/unirpc/unirpcd |
If you wanted to sort it by the top 10 processes you can use the following:
|
1 |
# ps -e -o pcpu -o ruser -o args|sort -nr|grep -v %CPU|head -10 |
Output:
|
1 2 3 4 5 6 7 8 9 10 |
# ps -e -o pcpu -o ruser -o args|sort -nr|grep -v %CPU|head -10 24.5 billybob03 udserver 4 3600 0 0.2 billybob02 udt 0.1 int udt 0.1 int udt 0.1 int udt 0.1 int udt 0.1 int udt 0.1 int udt 0.1 billybob01 udt |
[…]
Foot Traffic & Up Tracking
Retail Traffic Analytics & Intelligence Modern Foot Traffic Solutions for Furniture Retailers Are you still tracking customer visits with clipboard tallies or spreadsheets? Let me help your furniture showroom leverage cutting-edge traffic intelligence that integrates seamlessly with your Storis Retail ERP. From Guesswork to Data-Driven Decisions As a specialized consultant […]