In this example we would be extracting the serial number and nvram size from the devices.
Building the scenario
Create a new scenario named Parsing_test1
(1)Operate -> Scenarios -> (2) New (3) Name:Parsing_test1-> (4) Text:
<%cmd> = Parse_cmd -n <node> -r "show version" -t show_ver
log -m "Serial number of the <node> is <serial_no%cmd>"
log -m "NVRAM size of the <node> is <nvram%cmd>"
(5) Save
Executing the Scenario
(1) Operate -> New Jobs -> CMDB/YCE Jobs (based on the type of the node) -> (2) Select the node -> (3) Add list -> (4) Next
(1) Change the task name to Parse_cmd_test1 -> (2) Save Job as: Give an appropriate name to the Job -> (3) Save -> (4) now -> (5) Schedule
Verifying output
To verify the output we need to access the job logs. Open a duplicate or another tab.
(1) Operate -> Job Status -> Job logs -> (2) Refer to the files on nyeve of the job.
This pop-ups a new page of Job log file. If we scroll through the <job_id> log file, we can see the serial number and nvram values retrieved from the node using the parsing command.