LPSM Commands
snmpwalk
snmpwalkExecute the snmpwalk command to to retrieve the information of multiple components, services, and processes of LPSM using their respective OIDs. Refer to the System Monitoring via SNMP section for details.
Example:
snmpwalkadd-snmpv3-user
add-snmpv3-userThe add-snmpv3-user command allows you to add SNMP users in LPSM.
Example:
add-snmpv3-userEnter a unique username, password, and key.
change-snmpv3-key
change-snmpv3-keyExecute the change-snmpv3-key command to change the DES encryption key for SNMPv3 authentication.
Example:
change-snmpv3-keyA list of existing users is displayed.
Select a username.
Enter and re-enter the new key.
change-snmpv3-passwd
change-snmpv3-passwdExecute the change-snmpv3-passwd command to change the password of the SNMPv3 authentication.
Example:
A list of existing users is displayed.
Select a username.
Enter and re-enter the new password.
delete-snmpv3-user
delete-snmpv3-userThe delete-snmpv3-user command allows you to delete the existing users.
Example:
Enter the username of the user to delete.
legacy-snmp
legacy-snmpExecute the legacy-snmp command to disable or enable SNMPv2.
Syntax:
Options:
Option
Description
disable
To disable SNMPv2
enable
To enable SNMPv2
Example:
list-backups
list-backupsExecute the list-backups command to list all available LPSM backup files with their corresponding filename, backup name, date, and LPSM machine version.
Syntax:
Options:
Option
Description
To list all available backups
-v, –version
To list backups of a particular LPSM version
-h, –help
To get help
Example:
restore-backup
restore-backupExecute the restore-backup command to restore a particular LPSM backup file.
Syntax:
Options:
Option
Description
<filename>
To restore a particular LPSM backup file
-h, –help
To get help
Example:
mds-fix
mds-fixExecute the mds-fix command to disable or enable the Microarchitectural Data Sampling fix.
Syntax:
Options:
Option
Description
disable
To disable the Microarchitectural Data Sampling fix
enable
To enable the Microarchitectural Data Sampling fix
Example:
update-incoherent-config
update-incoherent-configExecute the update-incoherent-config command to update the LPSM with the latest configuration of the newly added Fabric-enabled LogPoint.
Syntax:
Options:
Option
Description
To update the configuration of the newly added Fabric-enabled LogPoint
-h, –help
To get help
Example:
spectre2-fix
spectre2-fixExecute the spectre2-fix command to disable or enable the Spectre Variant II fix.
Syntax:
Options:
Option
Description
disable
To disable the Spectre Variant II fix
enable
To enable the Spectre Variant II fix
Example:
meltdown-fix
meltdown-fixExecute the meltdown-fix command to disable the Meltdown fix.
Syntax:
Options:
Option
Description
disable
To disable the Meltdown fix
enable
To enable the Meltdown fix
Example:
reboot
rebootExecute the reboot command to restart the LogPoint Director setup.
Example:
poweroff
poweroffExecute the poweroff command to power off the system.
Example:
change-ip
change-ipExecute the change-ip command to change the system IP.
Example:
change-date
change-dateExecute the change-date command to change/reset the date of the system.
Example:
start-support
start-supportExecute the start-support command to start a remote connection for support and keep the support-port open for a specified time period.
Syntax:
Options:
Option
Description
1
To start a support connection with a one hour timeout
15
To start a support connection with a 15 hour timeout
infinite
To start a support connection with no timeout
Example:
stop-support
stop-supportExecute the stop-support command to terminate the support connection.
Example:
route
routeExecute the route command to show and manipulate the IP routing table.
Example:
tcpdump
tcpdumpExecute the tcpdump command to analyze the traffic on a network.
Example:
iptables
iptablesExecute the iptables command to grant sudo rights to iptables.
Example:
change-rsyslogip
change-rsyslogipExecute the change-rsyslogip command to change the IP address of remote syslog server where the audit logs should be sent.
Example:
uploadpatch
uploadpatchExecute the uploadpatch command to upload a large sized patch of LPSM. You can use this command when patches are not uploaded from the GUI due to timeout limits.
Example:
mount
mountExecute the mount command to attach the filesystem found on a device to the big file tree.
Example:
umount
umountExecute the umount command to detach or free the loop device (if any) associated with the mount.
Example:
ifup
ifupExecute the ifup command to bring a network interface up, making it available to transmit and receive data.
Syntax:
Example:
ifdown
ifdownExecute the ifdown command to take a network interface down, and place it in a state where it cannot transmit or receive data.
Syntax:
Example:
gdisk/sgdisk
gdisk/sgdiskYou can create partitions in case the HDD is replaced in the server using either the gdisk or the sgdisk command.
Example:
grub-install
grub-installAfter replacing the HDD, you can make it bootable again using the grub-install command. Use this command when the first disk, where grub resides, crashes.
Example:
fabric-auth
fabric-authExecute the fabric-auth command when the Fabric Storage connection is interrupted due to an internal server error.
Example:
zfs
zfsExecute the zfs command to configure the ZFS file systems and datasets within a ZFS storage pool.
Example:
zpool
zpoolExecute the zpool command to configure the ZFS storage pools.
Example:
netplan-apply
netplan-applyExecute the netplan-apply command to migrate Logpoint instances to Netplan for network configuration. The command uses YAML configuration files to specify the necessary network settings for Logpoint.
After migrating Logpoint to Netplan, you can also use the command to update the existing network configuration.
Syntax:
Example:
Firewall Management using lpsmfw-cli
lpsmfw-cliYou can use the lpsmfw-cli command with the iptables sub-command to:
Add new firewall rules
Remove firewall rules
View firewall rules for all three chains (INPUT, OUTPUT, and FORWARD)
View firewall rules for a particular chain (INPUT, OUTPUT, or FORWARD)
Flush firewall rules
Reload flushed firewall rules
View firewall policies for all three chains (INPUT, OUTPUT, and FORWARD)
View firewall policies for a particular chain (INPUT, OUTPUT, or FORWARD)
Add new firewall rules
Execute the lpsmfw-cli command to add and remove firewall ports. The command works with IP addresses/networks and numeric ports, but does not support domain names.
You can add new firewall rules to LPSM using the lpsmfw-cli iptables add command.
Syntax:
The <direction> can be in, out, or fwd for INPUT, OUTPUT, or FORWARD respectively.
The list of options and their expected parameters are listed below:
Option
Expected parameter
Description
-s or –source
IP address or IP network
Source IP address
-d or –destination
IP address or IP network
Destination IP address
-p or –protocol
tcp or udp
Indicates the protocol used. Required if –sport or –dport option is used.
-i or –in-interface
Network interface name
Indicates the input interface. Not required when the direction is out.
-o or –out-interface
Network interface name
Indicates the output interface. Not required when the direction is in.
-j or –jump
Either ACCEPT or DROP
Policy or action to take with the rule. This flag is required.
-m or –multiport
None
Flag used to enable the multiport option. When this option is enabled, multiple sources or destination ports are supported.
–sport
Integer in the range of 0-65535
Source port. If this option is enabled, protocol -p is required.
–dport
Integer in the range of 0-65535
Destination port. If this option is enabled, protocol -p is required.
Examples:
Allowing inbound connection from a host with IP 10.10.10.10 to communicate on port 443 over TCP:
Allowing inbound connections from all hosts on port 443 over TCP
Remove firewall rules
You can remove firewall rules from LPSM using the lpsmfw-cli iptables rm command. The options that can be used with this command are identical to the lpsmfw-cli iptables add command.
Syntax:
Examples:
Removing allowed inbound connection from a host with IP 10.10.10.10 to communicate on port 443 over TCP
Removing allowed inbound connections from all hosts on port 443 over TCP
View firewall rules for all three chains (INPUT, OUTPUT, and FORWARD)
You can view the firewall rules for all three chains (INPUT, OUTPUT, and FORWARD) using the lpsmfw-cli iptables show command.
Syntax:
Example:
View firewall rules for a particular chain (INPUT, OUTPUT, or FORWARD)
You can view the firewall rules for a particular chain (INPUT, OUTPUT, or FORWARD) using the lpsmfw-cli iptables show <chain_type> command.
Syntax:
The <chain_type> can be input, output, or forward for INPUT, OUTPUT, or FORWARD respectively.
Example:
Flush firewall rules
You can first set the default firewall policy to ACCEPT for all three chains (INPUT, OUTPUT, and FORWARD) and then flush the firewall rules using the lpsmfw-cli iptables flush command.
Syntax:
Example:
Reload flushed firewall rules
You can reload flushed firewall rules using the lpsmfw-cli iptables reload command.
Syntax:
Example:
View firewall policies for all three chains (INPUT, OUTPUT, or FORWARD)
You can view the firewall policies (ACCEPT or DROP) for all three chains (INPUT, OUTPUT, and FORWARD) using the lpsmfw-cli iptables policy command.
Syntax:
Example:
View firewall policies for a particular chain (INPUT, OUTPUT, or FORWARD)
You can view the firewall policies (ACCEPT or DROP) for a particular chain (INPUT, OUTPUT, or FORWARD) using the lpsmfw-cli iptables policy <chain_type> command.
Syntax:
The <chain_type> can be input, output, or forward for INPUT, OUTPUT, or FORWARD respectively.
Example:
Last updated
Was this helpful?