cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1023
Views
5
Helpful
2
Replies

Arguments using Wild Card in Shell Command Authorization

cypher.jay
Level 1
Level 1

Does the Shell Command Authorization Set allow the use of wild card?

For example, under shell command authorization set, what do i put in under arguments if I want to permit the command show interface fastethernet 0/1 to 24 to be executed?

And also, what do i put in as the argument for an ip address if I want to permit "ping x.x.x.x"?

Thanks in advance.

1 Accepted Solution

Accepted Solutions

nchopra
Level 1
Level 1

hi,

there are two wildcards used under Shell Command Authorization the first one is "^" sign which denotes whatever comes after this is accepted and the second wildcard is "$" which denotes whatever is before. In your case, you can use

Interface FastEthernet 0 1 ^

and

Ping ^

These commands would allow access to every Fastethernet and ping to any IP Addresss.

View solution in original post

2 Replies 2

nchopra
Level 1
Level 1

hi,

there are two wildcards used under Shell Command Authorization the first one is "^" sign which denotes whatever comes after this is accepted and the second wildcard is "$" which denotes whatever is before. In your case, you can use

Interface FastEthernet 0 1 ^

and

Ping ^

These commands would allow access to every Fastethernet and ping to any IP Addresss.

Hi,

Thanks. Just what i needed.