Home › Forums › YumaPro User Forum › yuma yangcli help needed regarding cli commands
Tagged: cli
- This topic has 6 replies, 3 voices, and was last updated 3 years, 4 months ago by JamesG.
-
AuthorPosts
-
-
May 16, 2021 at 11:17 pm #19791himmy619Participant
I have connected to netconf server running on localhost from yangcli. On connecting to netconf server my yangcli prompt changes to user@localhost prompt.
To create any command [e.g. static-route ip-address 10.10.10.10] i give
user@localhost# create /staticroute/static-route/ip-address value=10.10.10.10
RPC OK Reply 2 for session 3:But i want the command to be entered like this below
user@localhost# static-route ip-address 10.10.10.10How do i do that ??
Please help me with above problem. Also no config command is appearing at user@localhost# prompt -
May 17, 2021 at 7:20 am #19792andyKeymaster
> config term
#-
May 18, 2021 at 1:28 am #19793himmy619Participant
hello i typed the above command as you said but it is giving error .
yangcli eshna@localhost> config term
Error: Ambiguous command name: ‘config’
On tab completion also i am not seeing any config command. Following are the command which are visible on tab completion
yangcli eshna@localhost>
Display all 69 possibilities? (y or n)
alias copy-config elif get-config insert log-info pwd run show unset
aliases create else get-locks kill-session log-warn quit save shutdown uservars
cancel-commit create-subscription end get-my-session list merge recall set-current-datetime start-timer validate
cd delete eval get-schema load mgrload release-locks set-log-level stop-timer while
close-session delete-config eventlog help lock no-op remove set-my-session system-restart xget
commit discard-changes fill history log-debug partial-lock replace sget system-shutdown xget-config
connect edit-config get if log-error partial-unlock restart sget-config unlock
-
-
June 1, 2021 at 9:53 am #19799JamesGParticipant
Hi,
Based on what commands are available to you when you hit <TAB> it looks like you are not connected to a NETCONF server.
Config term mode can only be used when yangcli-pro is connected to a server.
-
June 1, 2021 at 10:04 am #19800JamesGParticipant
Hi,
What server are you using? It’s possible the server you are connecting to does not support config-term mode.
-
June 1, 2021 at 9:28 pm #19801himmy619Participant
hello,
i used the localhost NETCONF server to connect from yangcli client ad below:himanshu# yangcli
<yangcli>connect user=him server=localhost password=him123
<him@localhost># [here after connecting to NETCONF server i am not seeing any cpnfig command].NOTE: I am using yangcli client not yangcli-pro client.
-
June 2, 2021 at 2:37 pm #19802JamesGParticipant
NOTE: I am using yangcli client not yangcli-pro client.
That is your problem. Config term mode is a feature that is not available in the open source yangcli client.
Try downloading YumaPro Client which includes yangcli-pro.
-
-
-
AuthorPosts
- You must be logged in to reply to this topic.