cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
725
Views
0
Helpful
2
Replies

Regard command "commit label PostN" in ASR9K

wfqk
Level 5
Level 5

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

1 Accepted Solution

Accepted Solutions

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

View solution in original post

2 Replies 2

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

Great! Thank you