Accessing compliance checks

To access compliance checks through SA, set up the Live Network Connector (LNc), set up SA to work with the connector, and download/import the LNc security streams. Security streams include security.cc_library, security.cc_* streams, security.vc_* streams, security.ec_* streams and security.security_scanner.

The wildcards used in defining the streams here are provided only as examples. Do not use wildcards in commands. The streams have dependencies that need to be manually checked in order to avoid errors caused by missing dependencies.

For details on setting up the Live Network Connector, refer the HPE Live Network Connector User Guide available at https://lnast01pcache.saas.hpe.com/asset/resources/co/1284/10f1459953792/HPELN_LNc_Users_Guide.pdf.

The following sections provide an example of configuring LNc for being able to download and import the compliance checks into SA.

Setting up the LNc

The LNc and its associated binaries are usually installed with the SA core. The LNc is located in the /opt/opsware/hpln/ directory, and the binaries in /opt/opsware/hpln/lnc/bin/.

Viewing the current configuration settings

Use the read-config option in the following command to view current LNc configuration settings:

/opt/opsware/hpln/lnc/bin/live-network-connector read-config

Configuring LNc

Use the following commands to configure the LNc:

Passport credentials

/opt/opsware/hpln/lnc/bin/live-network-connector write-config --username=<HPE Passport_username> --password=<HPE Passport_password>

Production server URL

/opt/opsware/hpln/lnc/bin/live-network-connector write-config --url=<server_URL> --index=protected/dist

Proxy

/opt/opsware/hpln/lnc/bin/live-network-connector write-config --http-proxy=<proxy_server>:<port_number>

Setting up SA

To set up SA to work with the LNc, use the following commands:

List existing products

/opt/opsware/hpln/lnc/bin/live-network-connector list-products

Set products to SA

/opt/opsware/hpln/lnc/bin/live-network-connector write-config --product=sas

Set SA core credentials

/opt/opsware/hpln/lnc/bin/live-network-connector write-config --setting=sas.sas_user=<SA_username> --setting=sas.sas_pass=<SA_password>

Setting up streams

Use the following commands to set up your streams:

Check possible streams for your product

/opt/opsware/hpln/lnc/bin/live-network-connector list-streams

Enable a security stream

/opt/opsware/hpln/lnc/bin/live-network-connector write-config --stream=security.cc_library --enable

Disable a security Stream

/opt/opsware/hpln/lnc/bin/live-network-connector write-config --stream=security.cc_library --disable

Downloading and importing content

After you set up LNc and SA, use the following commands to download and import content through LNc:

Download and import SA content for a specific stream

/opt/opsware/hpln/lnc/bin/live-network-connector download-import -s content.software_discovery -–debug

Download and import SA content for all enabled streams (you can check what you have enabled on a core using the read-config option; the default value for all streams is disabled)

/opt/opsware/hpln/lnc/bin/live-network-connector download-import

After you download and import content:

Check status for a specific stream

/opt/opsware/hpln/lnc/bin/live-network-connector list-status -s content.software_discovery

Check status for all streams

/opt/opsware/hpln/lnc/bin/live-network-connector list-status