12-16-2016 07:24 AM - edited 03-05-2019 07:41 AM
Hi, Regard command "commit label PostN" in ASR9K has two meanings. One is to commit, and second is its label. My question is how to use its second meaning "label PostN"? Thank you
Solved! Go to Solution.
12-16-2016 08:12 AM
Hello,
I hope I correctly understand what you are asking.
If you just use 'commit', the resulting commit ID (as shown when you execute the 'show configuration commit list') is just a sequential numeric value. The optional label just allows you to give a name to the commit ID, which makes it easier to identify later on.
So let's say you change the router name from 'Router' to 'Router_Hub':
RP/0/RSP0/CPU0:Router# configure
RP/0/RSP0/CPU0:Router(config)# hostname Router_Hub
RP/0/RSP0/CPU0:Router(config)# commit
and you use just the 'commit' command, the commit ID will look like this:
RP/0/RSP0/CPU0:Router_Hub# show configuration commit list
SNo. Label/ID User Line Client Time Stamp
~~~~ ~~~~~~~~ ~~~~ ~~~~ ~~~~~~ ~~~~~~~~~~
1 1000000456 user_admin con0_RSPs1_C CLI 17:11:27 UTC Fri Dec 16 2016
If instead you specify a label:
RP/0/RSP0/CPU0:Router# configure
RP/0/RSP0/CPU0:Router(config)# hostname Router_Hub
RP/0/RSP0/CPU0:Router(config)# commit label PostN
the commit ID will reflect that name:
RP/0/RSP0/CPU0:Router_Hub# show configuration commit list
SNo. Label/ID User Line Client Time Stamp
~~~~ ~~~~~~~~ ~~~~ ~~~~ ~~~~~~ ~~~~~~~~~~
1 PostN user_admin con0_RSPs1_C CLI 17:11:27 UTC Fri Dec 16 2016
12-16-2016 08:12 AM
Hello,
I hope I correctly understand what you are asking.
If you just use 'commit', the resulting commit ID (as shown when you execute the 'show configuration commit list') is just a sequential numeric value. The optional label just allows you to give a name to the commit ID, which makes it easier to identify later on.
So let's say you change the router name from 'Router' to 'Router_Hub':
RP/0/RSP0/CPU0:Router# configure
RP/0/RSP0/CPU0:Router(config)# hostname Router_Hub
RP/0/RSP0/CPU0:Router(config)# commit
and you use just the 'commit' command, the commit ID will look like this:
RP/0/RSP0/CPU0:Router_Hub# show configuration commit list
SNo. Label/ID User Line Client Time Stamp
~~~~ ~~~~~~~~ ~~~~ ~~~~ ~~~~~~ ~~~~~~~~~~
1 1000000456 user_admin con0_RSPs1_C CLI 17:11:27 UTC Fri Dec 16 2016
If instead you specify a label:
RP/0/RSP0/CPU0:Router# configure
RP/0/RSP0/CPU0:Router(config)# hostname Router_Hub
RP/0/RSP0/CPU0:Router(config)# commit label PostN
the commit ID will reflect that name:
RP/0/RSP0/CPU0:Router_Hub# show configuration commit list
SNo. Label/ID User Line Client Time Stamp
~~~~ ~~~~~~~~ ~~~~ ~~~~ ~~~~~~ ~~~~~~~~~~
1 PostN user_admin con0_RSPs1_C CLI 17:11:27 UTC Fri Dec 16 2016
12-16-2016 08:49 AM
Great! Thank you
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide