Smarts NCM or VoyenceControl: How do I use preset aliases for common Linux commands used in Smarts NCM/VoyenceControl?
search cancel

Smarts NCM or VoyenceControl: How do I use preset aliases for common Linux commands used in Smarts NCM/VoyenceControl?

book

Article ID: 313081

calendar_today

Updated On:

Products

VMware

Environment

VMware Smart Assurance - NCM

Resolution

How do I use preset aliases for common Linux commands used with Smarts NCM or VoyenceControl?



To use the Smarts NCM snmpWalk command and run the snmpWalk tool, do the following:
  1. On an NCM Application Server (AS) or Combination Server (CS), log in to a Linux shell as root   .
  2. Source the NCM installed scripts that create aliases and environment variables in one of the following two ways:

    • Run the following commands:

    source /etc/voyence.conf
    source $VOYENCE_HOME/tools/voyencedev_bash_profile

    • Navigate to the NCM product home directory, then run the following command (where <Product Home> is the directory where NCM was installed):

    source <Product Home>/tools/voyencedev_bash_profile

    Note: The voyencedev_bash_profile script will automatically source the /etc/voyence.conf script to create appropriate enviornment variables including VOYENCE_HOME. This makes it unnecessary to run the source /etc/voyence.conf command separately.



Additional Information

Examples

Preset alias to navigate to the NCM product home directory:

Alias: cdv="cd $VOYENCE_HOME"

Sample usage and output:

[root@sample_domain /]#cdv

[root@sample_domain ionix-ncm]#

Preset alias to launch the PostgreSQL client:

Alias: pg = "su - pgdba"

Sample usage and output:

[root@sample_domain /]#pg

-bash-3.2$

Preset alias to a show all records in the master cflist infrastructure database that contain a specified string:

Alias: cfg = "$VOYENCE_HOME/cgi-bin/clist.cgi " grep "

Sample usage and output:

[root@sample_domain /]#cfg "POP 1000"

POP 1000 "sample_domain.smartsupport.local" NetList= RsrcList= DevList=1001,1002 EmsList= : ADDR="<IP address redacted>" AGE_DAYS=730 CLEANUP_DAYS=90 AD_ENABLE=0 AD_ARPCACHE=0 AD_DFLTROUTE=0 AD_AUTO_RESOURCE=0 AD_DEFAULT_POLL=0 SNMP_TIMEOUT=500 SNMP_RETRY=3 CM_DEBUGSESSION=1 SORTCONFIG=1 CM_MAXMAINTASKS=20 CM_PULLTIMER=1200 CUTTHRU_PULLTIMER=10 MAX_COMM_ATTEMPTS="5" CM_SMGR_CACHING_ENABLED=1 CM_SMGR_SESSION_TIMEOUT=60 CM_SMGR_SESSIONS_PER_DEVICE=4 AD_BATCHSIZE=1000 AD_NUMHOP=10 AD_TIMEOUT=10 AD_LOOPCNT=2 CM_NATTEDIP_LOOKUP=1 RECORDVER="1.0"
[root@sample_domain /]#

For a complete list of preset aliases created by the $VOYENCE_HOME/tools/voyencedev_bash_profile script, review the contents of the file in any text editor.