...
get_command_output, Get the last output from a command for a node
Requries Requires node=node_name command="command name" and returns output collected from the last run of this command
...
Code Block |
---|
./opconfig-cli.pl act=export_policy name=cisco file=/tmp/policies2.txt ./opconfig-cli.pl act=import_policy name=cisco file=/tmp/policies2.txt ./opconfig-cli.pl act=list_policies ./opconfig-cli.pl act=export_config_status node=NODENAME file=/tmp/configstatus.txt ./opconfig-cli.pl act=update_config_status node=NODENAME force=1 ./opconfig-cli.pl act=check_compliance name=cisco node=NODENAME debug=1 |
Credential sets
Credential sets can also be managed from opConfig version 4.3.2.
All the operations are defined in the following guide.
Refresh OS Info
As part of Discovering OS Info, you can refresh the information of OS's for nodes in the "Node and IP information", "Node reports" and Node pages with the opConfig CLI tool:
Code Block |
---|
# Refresh OS Info for all nodes
./opconfig-cli.pl act=refresh_os_info
# Refresh OS Info for a particular node
./opconfig-cli.pl act=refresh_os_info node=node_name
# Refresh OS Info for only newly imported/created nodes
./opconfig-cli.pl act=refresh_os_info only_new=y
|
Create Compliance Report
Generate a compliance report, in csv format, which shows compliance to Compliance Policies.
Code Block |
---|
# Command to create compliance report
./opconfig-cli.pl act=create_compliance_report file=/tmp/all_nodes_compliance.csv |