Skip to main content

trisbashrc

This is a set of very useful bash aliases available for both hub and probe. Our engineers use it all the time to navigate various directories and view logs etc.

How to use

The script adds certain bash commands and bash aliases to your shell environment. It is available on both hub and probe nodes.

on probe node

Usage

source /usr/local/share/trisul-probe/trisbashrc [domain] [probe] [contextname]
# default domain = domain0, probe=probe0, context=context0

For setting the environment to the default trisul context, context0

source /usr/local/share/trisul-probe/trisbashrc 

For setting the environment to context named 10gige

source /usr/local/share/trisul-probe/trisbashrc 10gig3

For setting the environment to context named 10gige on probeEAST

source /usr/local/share/trisul-probe/trisbashrc domain0 probeEAST 10gig3

Commands

CommandsPathDescription
cd.l/usr/local/var/log/trisul-probe/domain0/probe0/context0/probe log
cd.locallua/usr/local/var/lib/trisul-probe/domain0/probe0/context0/config/local-lua
cd.root/usr/local/var/lib/trisul-probe/domain0/probe0/context0Probe db root directory
cd.run/usr/local/var/lib/trisul-probe/domain0/probe0/context0/runProbe run state directory
cd.s/usr/local/share/trisul-probe/Probe share data directory
cd.x/usr/local/etc/trisul-probe/domain0/probe0/context0Probe configuration file directory
rat.af/usr/local/bin/rat /usr/local/etc/trisul-probe/domain0/probe0/context0/trisulProbeConfig.xml afpFilter monitor for online_afpacket run mode
rat.ffpcap/usr/local/bin/rat /usr/local/etc/trisul-probe/domain0/probe0/context0/trisulProbeConfig.xml ffpcapFilter monitor
rat.lp/usr/local/bin/rat /usr/local/etc/trisul-probe/domain0/probe0/context0/trisulProbeConfig.xml lpcapFilter monitor for online_lipcap run mode
rat.pf/usr/local/bin/rat /usr/local/etc/trisul-probe/domain0/probe0/context0/trisulProbeConfig.xml pfringFilter monitor for online_pfring run mode
rat.rx/usr/local/bin/rat /usr/local/etc/trisul-probe/domain0/probe0/context0/trisulProbeConfig.xml rxringFilter monitor for online_rxring run mode
sl/usr/local/bin/shellConnect to the SQLite3 db. Example shell < dbname >
sl.c/usr/local/var/lib/trisul-probe/domain0/probe0/context0/config/TRISULCONFIG.SQDBLocation of the configuration database.
tailf.ns/usr/local/var/log/trisul-probe/domain0/probe0/context0/ns-000.logfollow the growth of a probe log file
tp/usr/local/bin/trisulctl_probetrisulctl_probe command path
vi.xusr/local/etc/trisul-probe/domain0/probe0/context0/trisulProbeConfig.xmltrisul probe configuration file

on hub node

Usage

source /usr/local/share/trisul-hub/trisbashrc [domain] [hub] [contextname]
# default domain = domain0, hub=hub0, context=context0

For setting the environment to the default trisul context, context0

source /usr/local/share/trisul-hub/trisbashrc 

For setting the environment to context named 10gige

source /usr/local/share/trisul-hub/trisbashrc domain0 hub0 10gig3

Commands

CommandsPathDescription
cd.l/usr/local/var/log/trisul-hub/domain0/hub0/context0context0 hub log directory
cd.m/usr/local/var/lib/trisul-hub/domain0/hub0/context0/metersConetext0 data db root directory
cd.s/usr/local/share/trisul-hubHub share data directory
cd.w/usr/local/share/webtrisulWebtrisul direcroty
cd.wl/usr/local/var/log/trisul-hub/webtrisulWebtrisul production log directory
cd.x/usr/local/etc/trisul-hub/domain0/hub0/context0context0 db root directory
sl/usr/local/bin/shellConnect to the SQLite3 db. Example shell < dbname >
sl.c/usr/local/var/lib/trisul-config/domain0/context0/profile0/TRISULCONFIG.SQDBLocation of the configuration database.
sl.mdump/shell /usr/local/var/lib/trisul-hub/domain0/hub0/context0/meters/METASLICE.SQDB “.dump”’dumps sqlite3 metaslice db rows
tailf.fs/usr/local/var/log/trisul-hub/domain0/hub0/context0/fs-000.logFollow the growth of a flusher log file
tailf.qs/usr/local/var/log/trisul-hub/domain0/hub0/context0/qs-000.logFollow the growth of a trp log file
tailf.ws/usr/local/var/log/trisul-hub/webtrisul/production.logFollow the growth of a webtrisul production log file
th/usr/local/bin/trisulctl_hubtrisulctl_hub command path
vi.x/usr/local/etc/trisul-hub/domain0/hub0/context0/trisulHubConfig.xmltrisul hub context0 configuration file