Tier1Btest Flashcards
pass test get skills make more money. Getr my 2.00
ethtool - networking
allows you to query and change your NIC settings.
miitool - networking
view, manipulate,
media independent interface
fdisk - networking
manipulates disk partition table
mountsmb - networking
used to mount smb drives
su - networking
switch user ID during a login session
dig -networking
Domain Information Groper Prints DNS information txt mx records
ping - networking
Send ICMP packets
ifconfig - networking
Interface configuration - used to configure and print interface information
telnet - networking
used to communicate with another host using the telnet protocol
tcpdump - networking
Transmission control protocol dump - used to capture packets and save to files
traceroute - networking
displays route and transfer delays of packets across an IP network to a given host
netstat - networking
network statistics - shows current connections and shows open ports being used
arp - networking
address resolution protocol - resolves an IP address of a system to a MAC address.
route - networking
prints and configures IP routing table
curl - networking
client URL - used to transfer data to and from servers
iptables - networking
configures the kernel firewall chains and rules to manage inbound/outbound mail
nmap -networking
network map - network application tool and security/port scanner
df - performance
disk free - displays available disk space
du - performance
disk usage - file space usage
top - performance
displays processes q
ps - performance
process status - provides info on currently running processes
kill -performance
kill - terminate a process
killall - performance
killall - kills all processes by name
vmstat - performance
virtual memory statistics - IO/CPU/MEM monitoring utility
strace - performance
strace - trace system calls and signals
cp - files, folders, scripts
copy files and directories
scp - files, folders, scripts
secure copy - copy over ssh
mvless - files, folders, scripts
move files from one place to another
less - files, folders, scripts
used to read contents of a file one page at a time
cat - files, folders, scripts
concatenate - reads data from files and outputs their content
chmod - files, folders, scripts
change mode - change access mode of a file (permissions)
chown - files, folders, scripts
change owner - change the owner of a file or directory
file - files, folders, scripts
determines file type
find - files, folders, scripts
searches in real-time, slower but more up to date
ls - files, folders, scripts
list files/directories within a current working directory
ll - files, folders, scripts
long list
lsof - files, folders, scripts
list open files
locate - files, folders, scripts
searches using previously generated database. much faster that “locate” but uses an older database.
mkdir - files, folders, scripts
make directory - creates directories
tail - files, folders, scripts
prints last lines of a file
tar - files, folders, scripts
creates a compressed file called a tarball
head - folders, files, scripts
prints first lines of a file
gzip - files, folders, scripts
compresses files
gunzip - files, folders, scripts
expands compressed gzip files
diff - files, folders, scripts
used in comparing the differences in files line by line
rm - files, folders, scripts
remove files and directories
emacs - files, folders, scripts
family of text editors
vi - files, folders, scripts
visual instrument - text editor for programs and scripts
zcat - files, folders, scripts
compress or expand files
touch - files, folders, scripts
creates a file
wc - files, folders, scripts
word count
which - files, folders, scripts
identify the location of executables and shows full path of the shell commands
md5sum - files, folders, scripts
calculates and verifies 128 bit MD5 hashes
stdin - files, folders, scripts
standard input - carries data from a user to a program
stdout - files, folders, scripts
standard output - writes data that was generated by a program
stderr - files, programs, scripts
standard error - errors generated by a program that failed at some point
awk - general linux
pattern scanning and processing message
dmesg - general linux
print or control the kernel ring buffer
screen - general linux
allows split screen running several processes at once
cd - general Linux
change directory - change working directory
pwd - general Linux
print working directory
sudo - general Linux
superuser do - give specific users permission to run specific system commands at the root level
uptime - general Linux
prints device uptime - how long the system has been running, number of logged on users and system load averages
wall - general Linux
write to all - displays/sends msg to all logged in users
history - general Linux
shows previous commands used by a user
halt - general Linux
stops processes- instructs the HW to stop all CPU functions
hostname - general Linux
prints system hostname
reboot - general Linux
sends signal to reboot, halt, or power off.
shutdown - general Linux
send a shutdown signal - schedules a time for system to power down
watch - general Linux
execute a program periodically
grep - general Linux
global regular expression print - searches a file for a specific pattern and displays all lines that contain it
egrep - general Linux
extended global regular expression print - when you need to use the extended version of grep but with some extra metacharacters
zgrep - general Linux
grep for compressed files
date - general Linux
displays system date and time or used to change system time
reiserfsck - general Linux
file system check for Reiser file systems
fsck.xfs - general Linux
file system check for xfs file system
mount - general Linux
mount a file system also for SD card, USB storage etc
ntpdate - general Linux
used to sync date to an NTP server
whoami - general Linux
print user ID
uname - general Linux
print system information
last - general Linux
shows the list of the last users logged into the system
man - general Linux
manual - shows the manual pages for programs and commands
requeue inbound mail - specific to ESG
postsuper -r ALL
delete all messages from the queue - specific to ESG
postsuper -c /home/emailswitch/code/firmware/current/etc/ -d ALL
config_change - specific to ESG
modifies entries in MySQL database
config_read - specific to ESG
prints entries in MySQL database
count_in - specific to ESG
displays number of messages in inbound queue
count_out - specific to ESG
displays number of messages in outbound queue
ldapwalk.pl - specific to ESG
used for testing LDAP settings, connections, looks for a user on a connected server.
fadctl - specific to ESG
used for checking .fad RBL files
ldapsearch- specific to ESG
used for testing and pulling LDAP information
support-tunnel.cgi - specific to ESG
used for managing and configuring support tunnels. opening them from a browser or keeping them open
tunnels.pl - specific to ESG
used to iterate over each system in a cluster and opens a tunnel
revert.pl - specific to ESG
used to revert back to a previous definition
service - specific to ESG
use for calling a service and changing its state/config
bstat - specific to ESG
used to check Bayesian database stats
bscore - specific to ESG
used to check for Bayesian database global or user score
remove_invalid.pl - specific to ESG
used to remove duplicate or invalid config entries
mod_hash.util - specific to ESG
used for custom rule lookups like RBL listings
deliver_mstore.pl - specific to ESG
redelivers messages stored in /email/mstore
mstoreforward.pl - specific to ESG
redelivers single message to specific email address
postsuper - specific to ESG
used to requeue messages
qm.pl - specific to ESG
queue management tool- used to delete, hold, or move message between in and out queue
& - special characters used in bash and shell
ampersand - run processes in the background
- special characters used in bash and shell
pipe - sends the output of one program to another program for further processing.
>
- special characters used in bash and shell
redirection operator - used to overwrite
> >
- special characters used in bash and shell
redirection operator - used to append (add/attach)
’ - special characters used in bash and shell
single quote
single quote - enclosing characters in a single quote preserves their literal value
” - special characters used in bash and shell
double quote
double quote - preserves the literal value of all the characters in the quote
` - special characters used in bash and shell
backtick
back tick - is executed by the shell before the main command
smtpctl - responsibilities of each service
SMTP service
smctl - responsibilities of each service
SSH master
httpctl - responsibilities of each service
webserver
intentctl - responsibilities of each service
intent analysis
lmctl - responsibilities of each service
log monitor
qhctl - responsibilities of each service
quarantine helper
rverifyctl - responsibilities of each service
recipient verification
sasctl - responsibilities of each service
SASL Auth Service
stunnelctl - responsibilities of each service
support tunnel service
throttlectl - responsibilities of each service
rate control service
apache - responsibilities of each service
web service agent
How to address the following situations -
Restart recipient verification while in debug mode
verifyctl -D restart
How to address the following situations -
Ensure recipient verification always starts when in debug mode
vi /home/emailswitch/code/firmware/current/sbin/reverifyctl
change line 12 to DEBUG=1
How to address the following situations -
How to turn on and off web debugging on firmware versions 4.x and below.
touch /tmp/web.debug
/etc/init.d/apache restart
tail -f /tmp/web_error_log
How to address the following situations -
why would you decrease an MTU?
max transmission unit - because of slower packet delivery and needing to resend the entire packet. Decreasing it speeds the packet delivery
How to address the following situations -
When would a smarthost be used?
when a customer needs outbound mail relay set up
How to address the following situations -
Explain to a customer what a default gateway is.
serves as a default forwarding host to other networks when no other route info matches the destination IP of the packet.
How to address the following situations -
Copy an SSL cert from 1 ESG to another.
cat /home/emailswitch/code/config/ssl_signed_cert.pem
hightlight and copy everything
vi /home/emailswitch/code/config/ssl_signed_cert.pem
paste
Then mtactl restart, smtpctl restart, service apache restart
How to address the following situations -
Configure emails to be blocked based on given scenario
anything in the block/accept tab
How to address the following situations -
Turn on Energizer Updates
Basic > Status - to activate subscription
Advanced > Energize Updates - to update
How to address the following situations -
Configure an ESG to use TLS
Advanced > Secure Admin
Upload cert > copy and paste into
/home/emailswitch/code/config/ssl_signed_cert.pem
Advanced > Email Protocol (then SMTP over TLS)
How to address the following situations -
Configure a cluster
Advanced > Clustering
> needs to be same model number and same firmware
> make sure both ESGs have same clustered shared secret
> Make sure ports 443, 8000, 8002 are open between the 2 ESGs
> Add the IP address of the first ESG into the Join Cluster field on the Advanced/Clustering page of the 2nd ESG’s interface
> then click join cluster option.
How to address the following situations -
Restart a service
service restart
How to address the following situations -
Errors noticed when reading tcpdump - wireshark
locating failed connections - look for SYNS, ACKS, FINS
Malformed packets, window sizes being out of whack, connecting interruptions, etc.
Wireshark - color codes packets black and red which usually means a bad sign.
How to address the following situations -
Identify actions that would be taken from mail servers connecting to ESG
Initial connection greeting ehlo/helo TLS negotiation recipient verification mail transfer
Type of Info Found in the Following Logs -
/home/product
config, definitions, firmware,
cdf
Type of Info Found in the Following Logs -
/mail/log/info
processed mail information
pmi
Type of Info Found in the Following Logs -
/mail/log/warnings
warning log for processed mail - hardware errors
Type of Info Found in the Following Logs -
/mail/log/errors
error log for processed mail - service logs entries
Type of Info Found in the Following Logs -
/home/emailswitch/code/firmware/current/web/cgi-bin
/home/emailswitch/code/firmware/current/web/cgi-bin -
reloads the config database
Type of Info Found in the Following Logs -
What is the difference between a Hub and a Switch?
A hub is dumb. Plug computers into a hub for a LAN.
A switch can do the same thing but is smarter and with software it can learn.